ajax - jQuery.get() works on IE, but jQuery.post() does not -
i have strange problem. i'm making pretty standard ajax-call jquery, refuses work internet explorer 7.
the code following:
$.ajax({ url: updateurl, cache: false, type: 'post', data: params, success: function(data){ handleresponse(data); } }); the weird part that, if change type 'get' works correctly. have determined 'post' ie not send server @ all.
i'm setting kind of headers prevent caching, have no effect on 'post' problem.
just know, according docs $.post() (which shorthand ajax call):
pages fetched post never cached
try setting datatype returned data , add error handler alert errors:
$.ajax({ url: updateurl, cache: false, type: 'post', data: params, success: function(data){ handleresponse(data); }, error: function(xhr,textstatus){ alert(textstatus); } }); also, sure page it's posting getting post variables , not variables?
Comments
Post a Comment