I have a javascript file that I created that creates Modal Pop ups within a browser. As I went with it, it got more and more advanced, but nonetheless I've run into a minor snag.
Basically, the script initiates a certain layer--if it does not exist, it will create the pop up with the set parameters in the function. However, if it does exist, it won't create it, it will just show the pop up and the whole nine yards.
My problem is with determining if the pop up--a DIV--exists already in FireFox. The script seems to function as I want it to in IE, but not in FireFox so I know I must be doing something majorly wrong for that to happen.
So my question is, in FireFox, how can you tell if an object exists? In this case, a layer?
Question
keitheronie
Hey all.
I have a javascript file that I created that creates Modal Pop ups within a browser. As I went with it, it got more and more advanced, but nonetheless I've run into a minor snag.
Basically, the script initiates a certain layer--if it does not exist, it will create the pop up with the set parameters in the function. However, if it does exist, it won't create it, it will just show the pop up and the whole nine yards.
My problem is with determining if the pop up--a DIV--exists already in FireFox. The script seems to function as I want it to in IE, but not in FireFox so I know I must be doing something majorly wrong for that to happen.
So my question is, in FireFox, how can you tell if an object exists? In this case, a layer?
Thanks for your help.
Link to comment
Share on other sites
4 answers to this question
Recommended Posts