$.ajax({
url:'',
data:'',
type:'get',
cache:false,
dataType:'json',
success:function(a)
{
alert('success');
}
error:function(a)
{
alert('error');
}
the above code when run on IE its always execute the error block on success of ajax call for slove it use dataType:'jsonp' at the place of dataType='json'

Be the first to comment.