Chrome do not handle $ajax based jquery mobile single page navigation model
Hi,
I'm an entrepreneur from Madrid working on a social startup.
I'm using jqueryMobile framework + phonegap to develop an app.
I'm dynamically injecting pages using href="" into the DOM but it seems that Chrome do not handle $ajax based JM single page navigation model. I get an error loading page message and this error from the tool developer console while clicking on the navMenu:
XMLHttpRequest cannot load file:///C:/git/app/myapp/assets/www/html/page2.html. Origin null is not allowed by Access-Control-Allow-Origin.
Probably it has to do with cross-border petitions, but I can't find how to solve it.
I don't want to disable $ajax petitions because then it won't auto generate some useful functionality like DOM size management (avoid device slowdown that causes crash), <back> button and transitions.
Please, let me know If there is a way to fix it.
Thanks!