Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Undefined is null or not an object  RSS feed

 
m brymer
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Eric, javascript is still much of mystery to me
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!