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
Post a Comment