Back to Top

solution for ajax call on IE

Updated 29 February 2024

$.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'

Start your headless eCommerce
now.
Find out More
. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

Back to Top

Message Sent!

If you have more details or questions, you can reply to the received confirmation email.

Back to Home