I want to use jquery to implement ajax response from perl script on the server.But when I use such code, I got nothing. I can get the result from the url in a browser, so I don't know where is wrong.
$(document).ready(function(){
$("button").click(function(){
$.ajax({
'type': 'GET',
'url': 'http://XXXX/cgi-bin/XXX.pl?title=dd',
'async': true,
'success': function(data) {
alert(data);
}
});
});
});