none
Is there any alternative way to make ajax request work properly in IE-10 instead of setting ajax reponseType to msxml-document RRS feed

  • Question

  • As per the MS post http://blogs.msdn.com/b/ie/archive/2012/07/19/xmlhttprequest-responsexml-in-ie10-release-preview.aspx , tony said that they made changes so that ajax request returns native xml document by default and if you want to get MSXML-specific  document you need to set the responseType as 'msxml-document'...

    I have an web app which has number of ajax calls in it and they are expecting the response as MSXML.. to make my app work properly in IE-10 I tried the above mentioned steps in one place and its working .... but there are number of ajax calls throughout the application , I can't use the above procedure in every place to make my application work properly in IE-10.....

    First thing I didn't get is, why MS has shown interest in making changes in ajax response... and why they didn't think once that there might be sites which are fully based on ajax....

    We can't keep on testing our app in the upcoming new versions of IE for any regression issues.... that are purely occured bcoz u made some changes at programming level...

    Do anybody knows the alternative way to make the ajax enabled app works properly in IE-10 instead of setting the responseType in each and every place wherever ajax call is there ???

    Tuesday, October 22, 2013 11:58 AM

Answers

All replies

  • Hi,

    IE10 Standards mode renders <xml> data islands as html.

    see http://msdn.microsoft.com/library/ms766512.aspx

    Use a meta or response x-ua of IE=9 to force your pages to use legacy features... assuming that you have a valid document type declaration.

    Post questions about html, css and scripting for web site development to the MSDN IE Web Development forum. Include a link to your website with your questions.

    This forum is for questions about IEAK and GPO administration and configuration of IE on domain networks.

    Regards.


    Rob^_^

    Wednesday, October 23, 2013 12:05 AM
  • Hi Rob, thanks for ur reply... I tried the way you suggested by properly using a meta tag of x-ua-compatible with content IE=9 in my page, but its of no use.. still ajax doesn't works in IE-10

    But I think its not recommended to use x-ua-compatible meta tag to display my site in older versions of browsers, then what's the purpose of releasing new versions in the market.. and microsoft also reminds you about the cons of using the above meta tag in IE-11... here is the post http://msdn.microsoft.com/en-us/library/ie/bg182625(v=vs.85).aspx

    do you have any other way or tweaks to handle the ajax calls without actual source code change in my app ???

    Wednesday, October 23, 2013 10:28 AM
  • Hi,

    you probably don't have a valid Document type declaration on your page (validator.w3.org)

    please post a link to your site or a mashup to the appropriate forum...

    http://social.msdn.microsoft.com/Forums/ie/en-US/home?forum=iewebdevelopment


    Rob^_^

    Wednesday, October 23, 2013 11:39 PM