Set UsePolling = true (line 605 for me) in the Cordova Javascript file!
It took me a week to solve this bug!
--
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
Might there be a jQuery solution? I'll rewrite my calls in standard JS as a last ditch resort, but that would be an inelegant solution given the nature of my app. I would think there must be something I can do with jqXHR.status.I'm just trying to avoid rewriting a good bit of code when the issue is isolated to the web view of a single version of one OS.
--
All I'm saying is to try to load the file using plain vanilla XHR first. If that works we've narrowed it down to a jQuery issue and we can go from there.
Simon Mac Donald
http://hi.im/simonmacdonald
On Wed, Apr 11, 2012 at 11:12 AM, Tom <tderk...@gmail.com> wrote:
Might there be a jQuery solution? I'll rewrite my calls in standard JS as a last ditch resort, but that would be an inelegant solution given the nature of my app. I would think there must be something I can do with jqXHR.status.I'm just trying to avoid rewriting a good bit of code when the issue is isolated to the web view of a single version of one OS.
--
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
var request = new XMLHttpRequest();
request.open("GET", "http://search.twitter.com/search.json?q=phonegap", true);
request.onreadystatechange = function(){//Call a function when the state changes.
console.log("state = " + request.readyState);
if (request.readyState == 4) {
if (request.status == 200 || request.status == 0) {
console.log("*" + request.responseText + "*");
}
}
}
request.send();
Same problem here. Works fine with iOS and Android < 4.0.3, but with Android 4.0.3 just the "pure" XMLhttprequest with the handling for the status code 0 works. Has anyone already fixed the jQuery or Phonegap source files for this problem?
Thanks
06-13 15:14:19.257: W/webcore(563): java.lang.Throwable: EventHub.removeMessages(int what = 107) is not supported before the WebViewCore is set up.06-13 15:14:19.257: W/webcore(563): at android.webkit.WebViewCore$EventHub.removeMessages(WebViewCore.java:1683)06-13 15:14:19.257: W/webcore(563): at android.webkit.WebViewCore$EventHub.access$7900(WebViewCore.java:926)06-13 15:14:19.257: W/webcore(563): at android.webkit.WebViewCore.removeMessages(WebViewCore.java:1795)06-13 15:14:19.257: W/webcore(563): at android.webkit.WebView.sendOurVisibleRect(WebView.java:2917)06-13 15:14:19.257: W/webcore(563): at android.webkit.ZoomManager.setZoomScale(ZoomManager.java:593)06-13 15:14:19.257: W/webcore(563): at android.webkit.ZoomManager.access$1700(ZoomManager.java:49)06-13 15:14:19.257: W/webcore(563): at android.webkit.ZoomManager$PostScale.run(ZoomManager.java:984)06-13 15:14:19.257: W/webcore(563): at android.os.Handler.handleCallback(Handler.java:605)06-13 15:14:19.257: W/webcore(563): at android.os.Handler.dispatchMessage(Handler.java:92)06-13 15:14:19.257: W/webcore(563): at android.os.Looper.loop(Looper.java:137)06-13 15:14:19.257: W/webcore(563): at android.app.ActivityThread.main(ActivityThread.java:4424)06-13 15:14:19.257: W/webcore(563): at java.lang.reflect.Method.invokeNative(Native Method)06-13 15:14:19.257: W/webcore(563): at java.lang.reflect.Method.invoke(Method.java:511)06-13 15:14:19.257: W/webcore(563): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)06-13 15:14:19.257: W/webcore(563): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)06-13 15:14:19.257: W/webcore(563): at dalvik.system.NativeStart.main(Native Method)
Thanks
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
--
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