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

  • SEARCH
  • Home
  • 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 8262923
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T03:55:23+00:00 2026-06-08T03:55:23+00:00

I wrote a widget that includes javascript from one site, on another. The code

  • 0

I wrote a widget that includes javascript from one site, on another. The code is:

<script type="text/javascript" src="http://www.easionline.com/min/?f=widget.js"></script> 

In IE9, everything displays perfectly, but in IE8, I get this error:

Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2;
.NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0;
InfoPath.2)

Timestamp: Fri, 13 Jul 2012 07:20:30 UTC

Message: Access is denied.

Line: 7
Char: 73
Code: 0
URI: http://www.easionline.com/min/?f=widget.js

Anybody know why IE8 would give me a message denied problem? If you want to see a site where the widget is implemented, visit http://www.ham.co.za

If you execute it without the minifying:

<script type="text/javascript" src="http://www.easionline.com/widget.js"></script> 

I get this error:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2;
.NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0;
InfoPath.2)

Timestamp: Fri, 13 Jul 2012 07:49:41 UTC
Message: Access is denied.

Line: 98
Char: 3
Code: 0
URI: http://www.easionline.com/widget.js

Line with the error says:

96: var ajaxUrl = site_root+"ajax/widget/"+affid+"/"+category+"/"+numproducts;
97: 
98: obj.open("GET",ajaxUrl,true);
99: obj.send(null);

Please note, for various reasons I am avoiding Jquery for this task. So the question really boils down to: Why does this ajax call work in IE9 but not IE8?

  • 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-06-08T03:55:25+00:00Added an answer on June 8, 2026 at 3:55 am

    This solved my problem: Access denied to jQuery script on IE

    Basically, IE requires you to use XDomainRequest instead of XHR. So I replaced:

    obj=pullAjax();
      obj.onreadystatechange=function() {
        if(obj.readyState==4) {
            // etc
        }
    }
    obj.open("GET",ajaxUrl,true);
    obj.send(null);
    

    With:

    xdr = new XDomainRequest(); 
    xdr.onload=function()
    {
        // etc
    }
    xdr.open("GET", thisUrl); 
    xdr.send([data]); 
    

    … BUT only for IE. I had to use Javascript to detect if it is IE because I can’t use jQuery for this specific project. So I used this:

    var browserName=navigator.appName; 
    if (browserName=="Microsoft Internet Explorer") ...
    

    src: http://www.pageresource.com/jscript/jbrowse.htm

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

Sidebar

Related Questions

This is my code : <script src=http://widgets.twimg.com/j/2/widget.js></script><script>new TWTR.Widget({version: 2,type: profile,rpp: 4,interval: 30000,width: 650,height: 202,theme:
I wrote a widget that can call numbers directly with one click. It works
I wrote a simple Tkinter based Python application that reads text from a serial
I wrote code that looked like the following: template<typename CocoaWidget> class Widget : boost::noncopyable
I am trying to write a text viewer widget with PyGTK that displays line
I originally wrote my Wordpress 3.0 widget http://codex.wordpress.org/Widgets_API for editing on the widget page
We have written a data store / grid widget system in JavaScript that automatically
I'm using Django and Apache to serve webpages. My JavaScript code currently includes a
I'm writing an application using gtkmm. I wrote a simple widget class, that I
I have some code that I wrote to implement a vertical swipe on a

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.