This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Undefined is null or not an object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Undefined is null or not an object" Watch "Undefined is null or not an object" New topic
Author

Undefined is null or not an object

m brymer
Ranch Hand

Joined: Jan 04, 2005
Posts: 64
Hi,
I have been staring at this for far to long and can't seem to see the problem. I keep getting the error message "undefined is null or not an object" when I run this piece of script. It is supposed to populate a 3rd select box based on the selection in the first select box from an array. Can someone look at my code an possibly tell me what I am not seeing?
Thanks!
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Sounds like you are not passing the correct information to part of the script. The error usually means that the element is not there on the page or it has not loaded.

I would highly recoomend that you download Mozilla or Firefox. They have a JavaScript debugging window that shows you the errors with a better description.

Eric
m brymer
Ranch Hand

Joined: Jan 04, 2005
Posts: 64
Thanks Eric, javascript is still much of mystery to me
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Undefined is null or not an object