Ajax calling
- by admin
- 0
Ajax calling once a button or link with function teamstationchange() clicked:
In js file add following code:
function teamstationchange(station,url){
jQuery.ajax({
method:”POST”, // method to pass the parameters ( you need to call this method in ajax file to retrieve the values.
url:url, // Ajax url
data:{data1:value,data2:value}, // parameters
success: function(result){
alert(result);// steps after success execution of method.
},
error: function(){
alert(‘failure’);
}
});
}
Ajax calling once a button or link with function teamstationchange() clicked: In js file add following code: function teamstationchange(station,url){ jQuery.ajax({ method:”POST”, // method to pass the parameters ( you need to call this method in ajax file to retrieve the values. url:url, // Ajax url data:{data1:value,data2:value}, // parameters success: function(result){ alert(result);// steps after success execution…
Ajax calling once a button or link with function teamstationchange() clicked: In js file add following code: function teamstationchange(station,url){ jQuery.ajax({ method:”POST”, // method to pass the parameters ( you need to call this method in ajax file to retrieve the values. url:url, // Ajax url data:{data1:value,data2:value}, // parameters success: function(result){ alert(result);// steps after success execution…