Advertisement
Lucassim

ajax jquery

Jan 8th, 2013
297
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  $.ajax({
  2.             type: "GET",
  3.             url: "http://10.211.2.219:8080/SampleWebService/sample.do",
  4.             dataType: "jsonp",
  5.             success: function (xml) {
  6.                 alert(xml.data[0].city);
  7.                 result = xml.code;
  8.                 document.myform.result1.value = result;
  9.             },
  10.         });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement