Google Chrome: jquery.ajax fails within onclick-event ("failed to load resource") -
i use google chrome 7.0.x , have following javascript-function gets called when user clicks button:
function myfunction(myid) { $("#" + myid).click(function() { $.ajax({ type: "post", url: "myurl", success: function(msg){ alert (msg); } }); });
alert() gets never called, instead "failed load resource" when lock @ console. doing wrong?
you forgot return false
in end of click
handler, didn't you?
Comments
Post a Comment