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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

open page in pop up window 1

Status
Not open for further replies.

optjco

IS-IT--Management
Apr 13, 2004
185
GB
I have a page that is made up of three frames Top,Main and Bottom.

The following code is in a page that shows in the bottom frame and when the file name is clicked it goes away and opens a PDF however it is opening the page in the bottom frame.

could someone explain how I could get the PDF to either open in the Main Frame or alternatively open in a pop up window

Any help would be greatly appreciated

Regards

Olly
 
Olly, this is some really basic HTML stuff. Seriously, not to be rude, but you really should go through a couple of tutorials. This forum and Tek-Tips in general is for questions that can't be Googled in 5 seconds.

To have it open in a specific frame, you add target="frameNameHere" to the link (in the <a> tag). To have it open in a new window you add target="_new" to the link.
 
genimuse,
I am sorry about that but I had tried that in the following line but it did not work however I will do as you suggest

Code:
 Response.Write "<td><a href=""\\ukgopsf002\common\Key Print Data\Print cards\" &  File.Name & """>" & File.Name & "</a>" & "</td>"

Regards

Olly
 
I don't understand. Did you add the target already and it didn't work? Here's that same line with a target in it:
Code:
Response.Write "<td><a href=""\\ukgopsf002\common\Key Print Data\Print cards\" &  File.Name & """ target=""_new"">" & File.Name & "</a>" & "</td>"
If you wanted the new window, that would work. If you wanted it in a specific frame you'd replace the _new with the name of the frame you want it to appear in.

Let me also suggest -- and do NOT give this post or any of mine a star (seriously, do not give this a star) -- that you look into how the star system works here. It's designed to reward people who answer your question, giving them a little recognition for a useful answer. It encourages people to answer more of your questions in the future.
 
genimuse,
Thank You I do really appreciate all help that is given to me on these forums and yes i do understand how the "star" system works. If you were to look at most of the threads i have started you will see that I have thanked and "starred" most of them. In answer to your question yes i had already tried to add the target in but because of my inexperience had not set the syntax correct.

Once again thanks for your help and guidance

Regards

Olly
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top