-
Jun 29th, 2012, 05:38 PM
#1
PowerPoster
Javascript Error???
Can someone please tell me what is the cause of this error (see attached screen shot).
Thanks,
-
Jun 29th, 2012, 06:01 PM
#2
Re: Javascript Error???
The if(document.getElementById) you have - what is that supposed to do??
Are you trying to see if "boxdescription" exists as an element?
If so you would want to do if(document.GetElementById("boxdescription")) instead.
But regardless - that error is saying that .innerHTML is not an object on what is to the "left of it".
I use FIREBUG to debug the JAVASCRIPT while running in the browser - so these types of issues are easy to see in the WATCH and CONSOLE windows...
-
Jun 29th, 2012, 10:43 PM
#3
PowerPoster
Re: Javascript Error???
I removed the "value" and got the same error. No difference!
-
Jun 30th, 2012, 08:01 AM
#4
Re: Javascript Error???
How is boxdescription defined on your page?
-
Jun 30th, 2012, 08:24 AM
#5
Re: Javascript Error???
Is that IF statement helping you be cross-browser?
Why not use jQuery for that - it's really helpful in that regard.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules