var request = new XMLHttpRequest();
request.open("GET", "file:///android_asset/www/xml.xml");
request.onreadystatechange = function() {//Call a function when the state changes.
console.log("state = " + request.readyState);
if(request.readyState == 4) {
console.log("*"+request.responseXML+"*");
}
}
console.log("asking for xml");
request.send();
--
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
iOS (Mobile Safari) definitely is. I believe Android also is. Don't know
about Blackberry.
--
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
Android, iOS, and BB 6+ use WebKit as their base for their web
broswers/web views.
bespired is incorrect in his assertion that WebKit cannot read from
file://. I know it can on mobile devices.
Simon Mac Donald
http://hi.im/simonmacdonald
Simon Mac Donald
http://hi.im/simonmacdonald
> phonegap+u...@googlegroups.com
> For more options, visit this group at
Yes, if you have your Android dev kit in your path you can just do
"adb logcat" to see all the logs from the device and emulator,
including console.log.
http://developer.android.com/guide/developing/tools/adb.html#logcat
or use DDMS in Eclpse:
http://developer.android.com/guide/developing/debugging/ddms.html
Good luck with the customer issue.
Simon Mac Donald
http://hi.im/simonmacdonald
Hey,
I know I'm awesome. The people on the list know I'm awesome. Tell my wife. Please!
Seriously, glad my hint got you going.
Simon