[thelist] PDF page with close button, maybe using frames? was Re: PDF page with close button

Chris Marsh thelist at cjmarsh.com
Wed Apr 5 20:10:29 CDT 2006



> If I had access to asp or php in this environment, then I 
> would not be doing this page- they would give it to someone 
> with knowledge of those environments.
>   Thanks for the response.  I will keep looking.

Take a look at the code (view source) at
<http://www.cjmarsh.com/temp/test.htm>. Try
<http://www.cjmarsh.com/temp/test.htm?id=3>, changing the value of id from 1
to 6. Outside this range, the top frame defaults to Test1.htm. Does this
point you in the right direction for a solution to your issue?

To make the solution accessible, just have a direct link to your PDF
documents from the href attribute of your anchor tag, and use javascript to
launch your framed solution, thus:

<a href='Test1.pdf' target='_blank' onclick='window.open("Frame.htm?id=1");
return false;'>Click</a><br />
<a href='Test2.pdf' target='_blank' onclick='window.open("Frame.htm?id=2");
return false;'>Click</a><br />
<a href='Test3.pdf' target='_blank' onclick='window.open("Frame.htm?id=3");
return false;'>Click</a><br />
<a href='Test4.pdf' target='_blank' onclick='window.open("Frame.htm?id=4");
return false;'>Click</a><br />



Chris Marsh

No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.3.5/302 - Release Date: 05/04/2006

More information about the thelist mailing list