Page loads with error loading page

Page loads with error loading page

Hi all,

I am developing an app using Cordova and jQM 1.3.2, I have created upto some level for android and wanted to build whatever was created and test it on iOS. Everything works fine on android, but the same loads with error when I emulate on MAC.

  1. $(document).on("pageinit", function(){
                $.mobile.changePage("pages/login.html");
            });


While loading login.html page, it shows Error Loading Page even before submitting the form, when the form is submitted, user can login without problem (logs in with same Error Loading page message), but after logging in app doesn't work, it will be on home page and doesn't navigate to anything else.


What might be the problem? Please advice!!