PDA

View Full Version : Having some trouble with my pop-ups


Julie
09-25-2001, 09:19 AM
On the following page, I put some code -- my first try with pop-ups:

http://www.abtcc.com/comingevents/NATIONAL2.HTM

As you can see, the judges' names are supposed to have links to pop-up pages for their profiles. But although I've used different URLs for the pop-ups, I'm getting the same profile for each judge.

What'd I do wrong? Any help would be greatly appreciated. Thanks!

:rolleyes:

avg-joe
09-25-2001, 09:30 AM
Okay, looking at your source, I see that while you are using two seperate javascripts for each selection, I notice that both variables have the same name, "openpopup". What is happening is, since the browser reads your source top to bottom, it is only remembering the second javascript. Thus, when it looks at the "openpopup" tag, it opens the second window.

The remedy is pretty simple. Just rename the second javascript variable to "openpopup2". That way your browser can differenciate between the two and the window will open up. oh, and don't forget to change the tage at link level, too!

Hope that helps! :D

Julie
09-25-2001, 10:22 AM
Thanks SO much. You're the BEST!