For phonegap development:
also any suggestion for it or important link.
Ajax works no different that it does else where execept that cross domain calls are ok with phonegap,
see my other answer
Example of jquery ajax call @ http://api.jquery.com/jQuery.ajax/
Parsing xml with javascript @ http://www.w3schools.com/xml/xml_parser.asp
$.ajax({
url: "test.html",
context: document.body,
success: function(){
$(this).addClass("done");
}
});
Example of native javascript call
Ref from phonegap about ajax
(see question:
Q. I want to create an application for phonegap to access externally deployed web services via AJAX. How can i resolve the issue with the cross-domain security policy of XmlHttpRequest?)
True to life example on this site
This should be enough to get you started. Let me know if you have any other questions.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.