Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Window showing URL??

Status
Not open for further replies.

kirkham999

Programmer
Joined
Aug 7, 2006
Messages
1
Location
GB
Hi,

I am designing a website where if they select a MENU option it opens a New webpage called Results.htm AND that page has an ONLOAD to display a POPUP window that display a PDF document in that window.

I have setup the PDF to use Acrobats Link tool to link/when clicked to a webpage (called TRAGET.HTM as pdf CANT specify TARGET='_BLANK' etc. So the Target.htm also has another POPUP to display "another" small popup.

The 2nd POPUP appears OK BUT the problem is the first popup goes BLANK and displays in the URL section the URL of the 2nd Popup?? How can I keep the first popup to keep its contents ?

In summary I have a maths website that they select a subject and a PDF popup appears then if they select a link within that PDF it opens up another popup (via linking to another page with onload etc). The page should still display both POPUPS ...

Any help would be most appreciated...Martin
 
You need to give each popup window a unique window name for it to pop up in a fresh window each time. This happens for free when you use target="_blank" in your HTML... and in javascript it's the second parameter in the window.open() function (and in javascript I would append the time (in seconds) to the window name to ensure each popup has a new name... this is called cache-busting).

I imagine that Acrobat uses javascript to talk back to the browser (no idea about that... just guessing)... and so it would need to pass in something different as the window name for each popup it generates. Maybe it doesn't. I would suggest asking in the Acrobat Forum if nobody else replies.

Cheers,
Jeff

[tt]Jeff's Page @ Code Couch
[/tt]

What is Javascript? FAQ216-6094
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top