PDA

View Full Version : Help needed with popup windows



Mattie
September 9th, 2001, 13:41
In my site I use 1 page (lexicon.htm) which contains an explanation for all "difficult" terms.
People can access this page in 2 ways:
1. by clicking a button which opens the lexicon.htm maximized in the mainFrame.
2. by clicking on reference links.

On each page where a term is used which is explained in lexicon.htm, the visitor can click on that link. I then open a small popup window, just large enough to show the text which explains that term.
This is how such a reference link looks:
<a onclick=
"popupWindow('Lexicon.htm#smartcard','Jargon','scrollbars=yes ,width=450,height=200')">
smart card</a>

Now I run into the following problem:
When I click a link the first time, the popup window is opened in the foreground as it should. If I then close the popup, the next time I click a link, the popup is shown again in the foreground. So far so good. But then.
If I do NOT close the popup window, but instead click anywhere in the main window (even on another link in the main window) the popup window is sent to the background. It is updated as it should, but it is invisible behind the main window.

Is there a way to force the popup window to the foreground every time I click a link, regardless of whether it is closed or open in the background?

And can I do that without introducing other problems to the 1st method of opening the lexicon.htm?

Thanks for any advice
Mattie

webspaceseeker
September 10th, 2001, 22:58
How often did you post this theme?
Please shorten your text. I cannot read that much at a time (do not have so much time).

Mattie
September 11th, 2001, 03:16
Problem solved, topic may be closed.
Thanks

LastActionHero
September 11th, 2001, 06:12
How did you solve the problem? You window.onfocus or window.blur or something like that?

Mattie
September 11th, 2001, 07:11
Well, I have created a temporary test/demo site F.Y.I.
http://satinfo.tvheaven.com/

Here you can have a look how it works and you can even download the whole site to study the systematics off line.

Success
Mattie

LastActionHero
September 11th, 2001, 07:15
ok. thanks.