I am trying to make an asynchronous call to a server in the following way
$(document).ready(function(){
$.ajax({
cache: true,
async: true,
dataType: "script",
url:"www.xyz.com/yyy?host_name=abc.com&size=S&use_flash=YES&use_transparent=YES&lang=en",
success: function(data) {
$("#verified").append(data);
console.log("data is "+data);
loading = false;
}
});
});
However the script is not being loaded asynchronously.What exactly am I missing? Any help would be appreciated!
successto retrieve response from the server!