PDA

View Full Version : document.all error in popup window code


Francofille
08-30-2002, 02:26 PM
Hello,

Newbie here. Can anyone tell me why I get an error message "'document.all(...)' is null or not an object" from the attached code? It is used to create popup windows in one document that's part of a frameset.

Thanks for your help!
Jennifer

ShriekForth
08-30-2002, 04:45 PM
As it tries to execute the source change, it can't find the image. You need to pass the image name, in the case of the sample provided you are passing 1,2,3,4. This is fine as it is unique, but it concatinates it with pic, so pic1, pic2, pic3, pic4, then tries to adjust the source. Those images do not exist, so they are null or not an object. That is the why.

To fix it name your images uniquely. Right now they are all the closed image, and named "closed". Name them pic1, pic2.... corresponding to the toggle function used in each div. Then you are good to go.

ShriekForth