Google Answers Logo
View Question
 
Q: Javascript code to show two windows on top of the original window. ( No Answer,   5 Comments )
Question  
Subject: Javascript code to show two windows on top of the original window.
Category: Miscellaneous
Asked by: jpalme-ga
List Price: $10.00
Posted: 08 Jul 2003 11:15 PDT
Expires: 07 Aug 2003 11:15 PDT
Question ID: 226604
Can someone who knows Javascript help me modify the page
http://web4health.info/en/answers/psy-drug-interaction.htm so that the
two windows you can open by clicking on "interaction calculator"
and "medical dictionary" are shown both of them, and not one of them
hidden by the original web page you started from.

Request for Question Clarification by alexander-ga on 08 Jul 2003 15:19 PDT
Sorry, what do you want to happen? Do you want both links to open in
the same "new" window? So if you click on the first link, a new window
opens, and if you then click on the second link, it loads into the
window containing the first link's page?

Request for Question Clarification by larre-ga on 08 Jul 2003 21:46 PDT
You want the two windows to be fully visible at the same time, not
overlapping or hidden behind one another, is that correct? And you
wish them both to stay on top of the original page until closed?

--- larre

Clarification of Question by jpalme-ga on 10 Jul 2003 03:50 PDT
As it works now, if a person visits
http://web4health.info/en/answers/psy-drug-interaction.htm  and clicks
first on "interaction calculator"
and then clicks on "medical dictionary", then the first subwindow is
hidden behind the window you started with. I want both the two
subwindows visible. Of course it would be an extra benefit if they do
not overlap, bút that may not be possible, depends on the size of the
screen. I am happy if at least part of all three windows (start window
and two subwindows) are visible at the same time.
Answer  
There is no answer at this time.

Comments  
Subject: Re: Javascript code to show two windows on top of the original window.
From: hammer-ga on 11 Jul 2003 09:51 PDT
 
Note to Researchers:
This customer does not have the ability to change the content which
appears in the popups. Any answer must require editing of the main
page only.

- Hammer
Subject: Re: Javascript code to show two windows on top of the original window.
From: jpalme-ga on 12 Jul 2003 10:47 PDT
 
One solution, not very neat, would be that I create two pages of my
own, which include the pop-up-window content in frames within it. I
will try to do it that way, unless someone else has some better idea.
Subject: Re: Javascript code to show two windows on top of the original window.
From: jpalme-ga on 12 Jul 2003 10:51 PDT
 
Someone seems to have removed the solution to my problem which was
posted earlier. Unfortunately I did not make a copy of it, I do not
understand why the answer has been deleted. It did contain a solution
which I might get working, by using frames in the pop-up-windows, but
now the answer is not there any more, and I did not make any copy of
it!

I never thought of the idea that the solution to my problem would be
removed from Google Answers! Otherwise I would have made a copy of it
before it disappeared!
Subject: Re: Javascript code to show two windows on top of the original window.
From: hammer-ga on 13 Jul 2003 05:18 PDT
 
JPalme,

I requested that my answer be removed because you indicated that it
would not solve your problem and I didn't want you to be billed for an
unhelpful answer. Here is the link to the FAQ code I posted in my
answer:

IRT.org
Q1338 How can I keep two popup windows in focus?
http://developer.irt.org/script/1338.htm

Here is the rest of the IRT.org Javascript Window FAQ. There may be
other snippets that will help you.

irt.org - JavaScript Windows FAQ Knowledge Base
http://developer.irt.org/script/window.htm

Another Researcher may provide the additional code you need to use the
window handles returned from window.open. I simply ran out of time to
work on this. I apologize for any inconvenience caused by withdrawing
my answer.

- Hammer
Subject: Re: Javascript code to show two windows on top of the original window.
From: jpalme-ga on 14 Jul 2003 02:23 PDT
 
I have experimented a little with the Javascript code you suggested.
But it does not work. Its effect is to force this popup window to
always be in front, so that the user cannot even do something in any
other window.

What I want is the following:
When people click on "interaction calculator" a pop-up window opens.
When people after that click on "medicfal dictionary", then a second
pop-up window opens, and **after** that, the first pop-up window is
brought in focus.

All in reference to my page at
http://web4health.info/en/answers/psy-drug-interaction.htm

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy