I have a phonegap 2.5 app that works fine.. using jquery mobile and jquery ajax to pull json content.I upgraded 2.5 to 2.6, then 2.6 to 2.7 following guides on the website.Now when I go to pull the json I get this error in the console...--
2013-05-02 10:08:13.214 App[8896:c07] CDVWebViewDelegate: Navigation started when state=1
2013-05-02 10:08:13.215 App[8896:c07] Failed to load webpage with error: (null)
I checked the whitelist and its set to *, I checked that my server side php is sending the correct json and again havent made any changes to it.
I did also upgrade jquery to 1.9.1 and jquery mobile to 1.3.1
I'm also using localstorage to supply the varibles in the URL to get the json, not sure if that makes a difference though.
Thanks in advance,
Matt Enderle
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
For more info on PhoneGap or to download the code go to www.phonegap.com
To compile in the cloud, check out build.phonegap.com
---
You received this message because you are subscribed to the Google Groups "phonegap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phonegap+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Yup, same error messages for me.Also upgraded Cordova from 2.5 -> 2.6 -> 2.7Also running jQuery Mobile (1.3.1).My app doesn't make any ajax requests though. For me the messages are triggered when I call $.mobile.changePage() to navigate to an internal page.When calling $.mobile.changePage, under the hood jQuery Mobile is changing the browser location URL. I suppose that could be what is triggering Cordova to show this message.
I am getting the same error with 2.7.0. My app crashes after getting this error. The problem is:CDVWebViewDelegate.m: shouldStartLoadWithRequest(): default: passing nil as error code
Error code is being passed as nil and in CDVInAppBrowser.m: didFailLoadWithError() function, error.localizedDescription is being referenced, which causes a crash.
For now, i added a check in the above function to put default values for error code if the error object is nil.
Can we log this as a bug somewhere? I couldn't find any bug report link for PhoneGap
On Saturday, 25 May 2013 15:40:35 UTC+5:30, Antonio Sala wrote:Im getting the same problem too.Anyone found a solution
Hello Everyone, I am also getting this error , but this time as a result of calling $.mobile.changePage using exactly the same components. Ideas from anyone?
If it helps (I couldn't wait for a proper fix) :in CDVWebViewDelegate.m, I commented the lines 199 to 201 and it seems to stop breaking the reloading :// if ([_delegate respondsToSelector:@selector(webView:didFailLoadWithError:)]) {
// [_delegate webView:webView didFailLoadWithError:nil];
// }This worked for me!