Using $.get method to get xml data from asmx page

ZressE

New Member
I am trying to use $.get method to get the xml data from this web service:http://www.webservicex.net/currencyconvertor.asmx?op=ConversionRateI am getting error when i try getting the data.Sample code:\[code\]var FromCurrency = "USD";var ToCurrency = "JMD";var url = "www.webservicex.net/currencyconvertor.asmx/ConversionRate?FromCurrency="+FromCurrency+"&ToCurrency="+ToCurrency;var jqXHR;alert(url);jqXHR = $jQuery.get(url,function(data){ alert(data);}).success(function() { alert("second success"); }).error(function() { alert("error"); }).complete(function() { alert("complete"); });// Do something here// Set another completion function for the request abovejqXHR.complete(function(){ alert("second complete"); });\[/code\]
 
Back
Top