OK guys- I'm not sure who else to turn to on this one...
I'm using the following jquery script in a .js file:
$(document).ready(function() {
$.ajax({
type: "POST",
url: "
http://localhost/dddev/ddcode.aspx/HelloWorld",
contentType: "application/json; charset=utf-8",
data: "{}",
dataType: "json",
success: function() {
alert('worked');
},
error: function(){
alert('failed');
}
});
});
When it runs, it always returns failed. Anyone have any ideas why this would not be working?
I verified that jQuery is working b/c when I run the code:
$(document).ready(function() {
alert('worked');
},
});
The page load generates a alert box that says "worked"
But when I attempt to run the code using $.ajax it's not working, it always returns failed.
Any help would be appreciated!!!
Thank you,
Jones