Saturday, January 5, 2013

jQuery Ajax not calling in IE8!

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 ,

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: