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

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -