4 ms·
This stuff never works happily. I don't really trust jQuery to handle JSON/JSONP properly. It is easy enough to drop back down to calling XMLHttpRequest by han
by deltasquared 14y ago
This stuff never works happily. I don't really trust jQuery to handle JSON/JSONP properly.
It is easy enough to drop back down to calling XMLHttpRequest by hand. Sample code is here, and changes to jQuery won't break it: http://stackoverflow.com/questions/5395118/jquery-1-5-json-error-invalid-label/5403755#5403755 http://stackoverflow.com/questions/5395118/jquery-1-5-json-e...
- kamjam 14y agoWhy did you not just specify the dataType in your ajax call? http://api.jquery.com/jQuery.ajax/#data-types http://api.jquery.com/jQuery.ajax/#data-types
- deltasquared 14y agoBecause was working with jQuery 1.5, and data-types showed up in 1.5.1