Jquery mobile ajax single page navigation throws an exception at xhr.send() in jquery??
Am working on a phonegap for windows 8 application. I took the single page model of Jquery mobile and used the ajax approach for navigation between different pages. Consider I have two page as follows.
1)Page1.html
2)Page2.html
On clicking a button with event handler $.mobile.navigate("Page2.html"); on Page1.html.. I navigate to the Page2.html and on clicking another button in page2.html with event handler logic window.history.back(); I go back to Page1.html. But again when I try to navigate by clicking the button in Page1.html to Page2.html I get the following error.
"0x800c0005 - JavaScript runtime error: The system cannot locate the resource specified."
at the following line of code in the jquery-2.1.0.js file.
// Do send the request
// This may raise an exception which is actually
// handled in jQuery.ajax (so no try/catch here)
xhr.send(options.hasContent && options.data || null);
Any fix/work around/support here would be greatly appreciated.
Thanks!