You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/03/11 15:39:45 UTC

[GitHub] [cordova-plugin-wkwebview-engine] RonaldPK commented on issue #62: not working with jQuery Mobile

RonaldPK commented on issue #62: not working with jQuery Mobile
URL: https://github.com/apache/cordova-plugin-wkwebview-engine/issues/62#issuecomment-471593007
 
 
   (I found this unclosed issue while searching for a similar one. Maybe my solution will help other searchers)
   
   _links won't open and all show "Error loading page"_ suggests that you're trying to load pages from separate local files into the main `index.html`, using jQM's Ajax method. However, the WkWebView plugin does not allow for loading files over the file:// protocol with Ajax. 
   
   There is a separate plugin that solves that problem: `cordova-plugin-wkwebview-file-xhr` ([link](https://github.com/oracle/cordova-plugin-wkwebview-file-xhr))
   
   Next issue you may run into, after installing the xhr plugin, is errors like "Blocked attempt to use history.replaceState() to change session history URL from .. to ..". I solved that by setting jQM's `pushStateEnabled` to `false` ([documentation](http://api.jquerymobile.com/global-config/)). 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org