cordova - Retrieve xml data using phonegap -
i building android app using phonegap. want retrieve xml data host server android app. xml file: http://www.guitarmaddy.com/index.php?option=com_dmxmlexport&catid=8 . want tag content , display in phonegap app.
previously used:
$(document).ready(function(){
$.ajax({ type: "get", url: "www.guitarmaddy.com/index.php?option=com_dmxmlexport&catid=8", datatype: "xml", success: function(xml) { alert("reading xml"); } }); });
but not working.. alert message not coming.. please suggest me links, want know basics of retrieving xml data.
document.addeventlistener("deviceready", ondeviceready, false); function ondeviceready() { $.ajax({ type: "get", url: "www.guitarmaddy.com/index.php?option=com_dmxmlexport&catid=8", datatype: "xml", success: function(xml) { alert("reading xml"); } }); }
does solve problem?
Comments
Post a Comment