Webkul
Services
Technologies Bagisto QloApps
iOS Android SAP BigCommerce Wix
Trusted by
Samsung Intel Toyota Walmart Disney Nokia Nestlé Decathlon
See all customers
Back to Top
DOC

solution for ajax call on IE

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

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