jquery - $ajax() call works in Firefox not Webkit/Chrome -


the following $ajax() call works fine firefox returns "error" status text , '0' status in webkit. url cakephp specific controller action returns html. id passed ajax call comes option select , functioning in both browsers.

$.ajax({   type : "post",   url : "http://mysite.com/controller/controllername/action/",   datatype: 'html',   data: {'itemid':id},   success: ajaxsuccess,   error: ajaxerror,   complete: ajaxcomplete }); function ajaxcomplete(jqxhr, textstatus){   console.log("complete: " + textstatus);   console.log("complete: " + jqxhr); } function ajaxerror(jqxhr, textstatus, errorthrown){   console.log(errorthrown);   console.log(textstatus);   console.log(jqxhr); } function ajaxsuccess(result, status, jqxhr){          console.log(result); } 

does have ideas why work in firefox , not in webkit/chrome? i'm out of ideas.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -