Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4000082
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T07:44:15+00:00 2026-05-20T07:44:15+00:00

I have an iframe using the jQuery 1.4.2 script. The same iframe is injected

  • 0

I have an iframe using the jQuery 1.4.2 script. The same iframe is injected into both http and https sites. The jQuery script is included in the main HTML file as a relative path (e.g., /scripts/jquery-1.4.2.min.js).

When an AJAX call is made, Internet Explorer denies access. The AJAX is calling on another subdomain, but it’s using the right protocol. All other browsers work but Internet Explorer gives the following error:

SCRIPT5: Access is denied.
jquery-1.4.2.min.js, line 127 character 344

I heard this error is from cross-domain AJAX calls. But why is IE the only one giving me crap? Is there an IE solution?

Also, this is my AJAX:

 $.ajax({
     url: thisURL,
     dataType: "json",
     data: {cmd : 'getMessage', uurl: urlVar, t: Math.random()},
     success: function(ret){
         callback(ret)
     }
 });
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T07:44:15+00:00Added an answer on May 20, 2026 at 7:44 am

    IE requires you to use XDomainRequest instead of XHR for cross site, you can try something like…

    if ($.browser.msie && window.XDomainRequest) {
                // Use Microsoft XDR
                var xdr = new XDomainRequest();
                xdr.open("get", url);
                xdr.onload = function() {
                    // XDomainRequest doesn't provide responseXml, so if you need it:
                    var dom = new ActiveXObject("Microsoft.XMLDOM");
                    dom.async = false;
                    dom.loadXML(xdr.responseText);
                };
                xdr.send();
            } else {
                // your ajax request here
                $$.ajax({
                       url: thisURL,
                       dataType: "json",
                       data: {cmd : 'getMessage', uurl: urlVar, t: Math.random()},
                       success: function(ret){
                                   callback(ret)
                        }
                });
    
            }
    

    Reference

    http://forum.jquery.com/topic/cross-domain-ajax-and-ie

    not sure whether it fits your scenario

    xdr = new XDomainRequest(); 
    xdr.onload=function()
    {
        alert(xdr.responseText);
    }
    xdr.open("GET", thisUrl); //thisURl ->your cross domain request URL 
    //pass your data here
    xdr.send([data]); 
    

    you can find some more guidance here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using JQuery to resize an iframe to make it have the same height
Let's say I have an iframe on a HTML page: <iframe src=/script.php></frame> The iframe
I'm using the jQuery load() event to load a page into an iframe. The
I have used a tutorial http://www.devcurry.com/2010/06/load-page-dynamically-inside-jquery-ui.html to dynammically load an aspx page into a
I have an HTML page (say welcome.html) which contains an iframe to a page
I have a UI widget that needs to be put in an IFRAME both
I'm using Fancybox ( http://fancybox.net ) to pop open an iFrame. In order to
I am using jQuery and Ruby On Rails. I have an ajax call $.get()
I'm using Fancybox 1.3.4 with the iframe setting which loads in another page into
I have an iframe. The content is wider than the width I am setting

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.