AdSpeed Logo
High Performance Ad Server
Plan starts at $9.95 per month

Help Center > Troubleshooting > Problems with Ad Serving

Why do I see "Object Expected" error in Internet Explorer?

If an ad shows up properly in Firefox, Safari, Opera but an error "Object Expected" in Internet Explorer. The following scenario: an HTML file contains this inline JavaScript code to load remote.js and call a function in remote.js And in the file remote.js: You would expect the output in this order:
  1. Before loading remote.js
  2. After loading remote.js
  3. In remote function
IE gives an error message "Object Expected" because it calls the function remoteFunction() prematurely. It calls before loading the file remote.js, which contain the declaration of remoteFunction(). This is another unexpected behavior from IE. Fortunately, it can be corrected by adding the attribute defer="defer" to second script invocation. This will specifically prevent IE from executing and actually produce proper result. Other browsers are not affected by the change.
Was this information helpful? Yes / No

Other articles in Problems with Ad Serving

Cannot find an answer for your question? Ask our Customer Care team

Related articles

Client Login

Testimonials

"Thank you very much! I greatly appreciate it."
-Steve Ingels

i

Quick Poll

What do you like best about AdSpeed?





 
Support  |  Contact Us  |  Sitemap  |  Careers
Copyright © 2000-2008 AdSpeed™. All rights reserved. Privacy Statement | Terms of Service