Topic: I gotta html question, and im stuck, can anyone answer it? (Page 1 of 1) |
|
---|---|
Obsessive-Compulsive (I) Inmate From: BAtavia, Il, USA |
posted 02-24-2004 04:55
i just got into java and html and im readin through a java book and this is a exercise, i just cant get it working it looks good but wont load the other pictures, can anyone help? |
Nervous Wreck (II) Inmate From: |
posted 02-24-2004 06:32
Well, I'm not great at debugging javascript, but it appears to me that you're missing the declaration of what the images are. You have the images there, but they're not defined as anything, so that when your javascript calls for LoadCached(this), there isn't any Cached list. That or because the name for your drop down combo box is "cached" and your javscript calles for "Cached". As I said, not that great at debugging javascript, especially when I'm not warmed up. |
Paranoid (IV) Mad Scientist From: Inside THE BOX |
posted 02-24-2004 14:40 |
Maniac (V) Inmate From: under the bed |
posted 02-24-2004 19:10
Yep, Java != Javascript, and this != an HTML question |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 02-24-2004 19:17
You have a JavaScript error: line 27, unterminated string constant. Looks like you forgot the opening quotation mark in onChange=loadCached(this)". |