Results 1 to 3 of 3

Thread: Open a PDF file in a table cell located on the same page as the hyperlink

  1. #1
    Join Date
    Apr 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Open a PDF file in a table cell located on the same page as the hyperlink

    Hi there, this one should test you because I searched for over an hour and came up with nothing.

    Can anyone tell how I can have a PDF file open in a table cell located on the same page as the hyperlink? (for IE6)

    All help is very appreciated. Thank you.
    Kind Regards
    Toddzy.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Even if it is possible, it might not be that good of an idea. Have you seen this done on the web? If so, where? You might be able to target a frame for this but, I am skeptical. Whenever I click on a hyperlink for a PDF it launches Acrobat in a new window. It is this behavior, launching Acrobat (which is probably a part of my and many folks' configuration), that would make this difficult. You might be able to target an Iframe in a table cell. One thing that could be done is to launch the PDF's content as HTML within an Iframe in the table cell.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Apr 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Success!

    Yes thank you jscheuer1, IFRAME did work. The next step was to have each link in my javascript menu link to a pdf document and have it insert the pdf document into the iframe of a table cell adjacent to the table cell the menu is in.

    Thanks to everyone's help I've been able to figure out how to do it!! WHAAHOO!

    The format of the following line of code is: ("Text to show","Link","optional image","number of sub levels","height","width").
    Menu5=new Array("Miscellaneous","javascript:NewWin=parent.frames['if1'].location='philpsy/Miscellaneous.pdf';window['if1'].focus()","",0,20,138);

    if1 = the id of the iframe i.e. <IFRAME id="if1" ...>

    I have a feeling this line of javascript is not completely accurate or true to the correct coding for what I want, but it still works!!!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •