By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,238 Members | 1,169 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,238 IT Pros & Developers. It's quick & easy.

Error: Object doesn't support this property or method

P: 1
I'm running the following javascript with no problem in FireFox:


Expand|Select|Wrap|Line Numbers
  1. var multiGallery = {
  2.     init: function(options){
  3.         this.overlay = new Element('div').setProperty('id','lbOverlay').injectInside(document.body).addEvent('click',this.close.bind(this));
  4.         this.gallery = new Element('div').setProperty('id','gallery').injectInside(document.body);
  5.         this.fx = {
  6.             overlay: this.overlay.effect('opacity', {duration: 250}).hide()
  7.         }
  8.     },
In IE7 I get an error that says "Microsoft JScript runtime error: Object doesn't support this property or method" on each of the "this." statements.

Anyone have any issues with this and have a fix for it?

Thanks!
Aug 19 '08 #1
Share this Question
Share on Google+
1 Reply


acoder
Expert Mod 15k+
P: 16,027
Are you using a library, e.g. jQuery?

Can you post the rest of the code (if not too much) or a link?
Aug 19 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.