Why MS IE do ignore AJAX request when loading | Community
Skip to main content
October 16, 2015
Solved

Why MS IE do ignore AJAX request when loading

  • October 16, 2015
  • 9 replies
  • 1703 views

Hi there,

When i use IE version 11.0.9600.17691is to open AEM,  but find it ignore page ajax request. please see following details:

 

1) Add a new featurn under :/libs/cq/core/content/welcome/features/myNewFeature

2)Set target value /content/globalsight/myTestPage for property sling:target

3)And in the app page myTestPage defines a ajax :

<script type="text/javascript"> $(document).ready(function() { var ipAddress; $.ajax({ type: 'GET', url:'/bin/connector', success: function(msg){ // var json = jQuery.parseJSON(msg); var json = msg; var hostName = json.HostName; var hostPort = json.HostPort; var username = json.UserName; var pwd = json.Password; var enableHttps = json.EnableHttps; var desc = json.Desc; ipAddress = json.ipAddress; $("#hostName").val(hostName); $("#hostPort").val(hostPort); $("#username").val(username); $("#password").val(pwd); $("#description").val(desc); var count = $("#enableHttps").get(0).options.length; for(var i=0;i<count;i++) { if($("#enableHttps").get(0).options[i].text == enableHttps) { $("#enableHttps").get(0).options[i].selected = true; break; } } } });

The problem is when i press the link at welcome page , the page myTestPage never run that ajax if use MS IE, but the other IE like firefox, chrome work it and run that ajax when load the page.

 

It make me confused. Anyone know how to resolve it?Thanks a lot

 

Best regards,

Brian

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Lokesh_Shivalingaiah

Hi,

Usually IE caches this. So can you add

cache: false within $.ajax{ } and try

9 replies

Lokesh_Shivalingaiah
Level 10
October 16, 2015

HI Brian,

Do you see any exception when you debug in IE browser ?

Adobe Employee
October 16, 2015

What do you mean by "never run that ajax". When you put break point in that line in developer console in IE, it doesnt break at that line? or it never makes a server call?

October 16, 2015

Not find any exception, but this ajax request could work well if use firefox and chrome IE. So i suspect if the Microsoft IE latest version not support that well.

October 16, 2015

Yes, never make a server call. but this ajax request could work well if use firefox and chrome IE. So i suspect if the Microsoft IE latest version not support that well.

Lokesh_Shivalingaiah
Level 10
October 16, 2015

Hey Brian,

If you are using IE10, try adding this in your JSP where you are calling this ajax and try

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" >

October 16, 2015

It seems not work. The IE version 11.0.9600.17691is.

Adobe Employee
October 16, 2015

Did you try in other lower versions of IE?

When you debug, till what point does it go? Does it go in to ajax functions and just hangs?

October 16, 2015

Our QA team require test that in the latest version, so need to fix it.

Lokesh_Shivalingaiah
Lokesh_ShivalingaiahAccepted solution
Level 10
October 16, 2015

Hi,

Usually IE caches this. So can you add

cache: false within $.ajax{ } and try