This is just a general question. Which is better, traditional ajax or the jquery ajax?
Because when I use the jquery ajax, it seems to do funky weird stuffs in IE. And it supposed to be a cross-browser library… So I’m a bit confused as to which one to use. Again I’m asking this because of the serial-killer IE…
The funky weird stuff, i.e. sometimes it stops sending information to the server after just a few requests, even when I put ‘cache: false’.
jQuery
$.ajax()should work fine in IE. It usesXMLHttpRequestjust like what you’d use if you were to do it yourself. But jQuery’s method has grown little hairs and stuff on it to make it work consistently between different browsers, as much as possible.Give a look to jQuery’s ajax source code. One reason it’s 593 sloc, and not just 4, is to fix and wrap all the inconsistencies between the different browsers. The comments will reveal many of these issues.