var divToBeWorkedOn = '#AjaxPlaceHolder'; var webMethod = 'http://184.106.159.143:8080/FirstGroupRailApps/services/RailAppsCAWS/getDestinationStationDashboard' var parameters = "{'crsCode':'AAP'}"; $.ajax({ type: "GET", url: webMethod, data: parameters, contentType: "application/xml; charset=utf-8", dataType: "xml", success: function(msg,xml) { alert("Hi") var responseXML = xml.documentElement; alert(responseXML); alert(msg.stationName); $(divToBeWorkedOn).html(msg.d); }, error: function(e){ alert("p") alert(e); $(divToBeWorkedOn).html("Unavailable"); } }); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)