Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript XMLHttpRequest not working in IE9

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #37905
    nutt318
    Member

    For some reason the below script doesnt work in IE9, anyway to fix it?

    Edit: looks like its getting an access denied error, the server that is running this script is different than the one in the url below that its trying to open.



    #102440
    nutt318
    Member

    So I’ve found that it has to do with cross site scripting. My server that I’m running the above code on actually calls or does a GET to a different URL or Server than the one hosting the code.

    So I’ve googled and found that IE9 doesnt like the crosssite scripting, however I cannot find a way to make the above code work.

    Any ideas?

    #102493
    SgtLegend
    Member

    The only way around this in IE is to use a server side script that allows you to create a connection to an external server while allowing the Ajax request to run normally, because you look to be using ASP simply create a new controller that handles cross domain requests but exits before the normal page content gets output to the browser.

    #102501
    nutt318
    Member

    Would you have any examples of this? I’ll also try to Google your statement and see what I can find.

    Thanks!

    #102581
    nutt318
    Member

    So I’ve modified my code as seen below and added the XDomainRequest but it doesnt seem to be working. Do I have something thats not correct?

    Any Ideas?



    #103030
    nutt318
    Member

    I still cannot figure this out, anyone have any ideas?

Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.