Saturday, January 5, 2013

jQuery Ajax not calling in IE8!

WTH!
Its due to few issue:
one: dataType: json
Never use it, instead, call:
success: function(data) {
var result = eval("(" + data + ")");

}

2nd, when passing data parameter, makesure no tailing ,
example:

data: {x:1, y:2, },
success: function(data) {

},

notice the highlighted commas above,
if the array ended with no further variables, do not add comma.


No comments: