View Full Version : this.thediv has no properties

09-15-2007, 08:42 PM
Hi, I get this error message on some of my pages, dont know y only some?

Error - object required
Line - 21
Char - 2

I know it refers to this line - this.thediv.style.visibility = startstate;

but dont know how to fix it, my homepage looks same to me but dosnt come up with error message.

www.thesentinellamalaga.com (http://www.thesentinellamalaga.com)

would appreciate any advice!!!!

09-15-2007, 09:05 PM
ive never heard of startstate as a value to the visibility object

this div must be visibly dynamic so not sure what it does

you could try this but it will probably break some functionality

this.thediv.style.visibility = visible;

09-15-2007, 09:25 PM
just get same error message. it went pete tong after i deleted the drop down menu, but dont get y some of the pages dont come up with the message, the coding looks the same to me!

09-15-2007, 10:45 PM
is this someone elses code or a template

09-15-2007, 10:52 PM
it went pete tong after i deleted the drop down menu,

i just noticed this in your post

this is the reason your getting errors because the JS is looking for an object (the dropdown) and you deleted it!

dont delete anything your not sure about

add 2 // to the line of code

like this

// this.thediv.style.visibility = visible;

09-15-2007, 11:07 PM
excellent, it works!!

thanks alot.

wot has that actually done? - //

09-16-2007, 07:13 AM
its turned that line of code into a comment which is ignored by the browser

a soft delete