Welcome to TalkGraphics.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Feb 2010
    Posts
    4

    Default Popup PDF in Web Designer

    Hi,

    I'm a newbie to webdesigner.
    Love what i see so far.

    Question - How do i do a popup pdf from a button.

    Thanks
    Primed

  2. #2
    Join Date
    Mar 2009
    Location
    SC, USA
    Posts
    186

    Default Re: Popup PDF in Web Designer

    Take a look here.
    http://www.nigraphic.com/blog/java-s...-center-screen.
    Click on "CLICK TO OPEN POPUP".
    Is this the behavior you want? If not describe more fully.
    Last edited by steve.ledger; 13 February 2010 at 04:43 AM.

  3. #3
    Join Date
    Feb 2010
    Posts
    4

    Default Re: Popup PDF in Web Designer

    Hi,
    Yep thats the function, except i want to open up a pdf.
    I also need to know where to copy the code to within web designer.

    Primed

  4. #4
    Join Date
    Mar 2009
    Location
    SC, USA
    Posts
    186

    Default Re: Popup PDF in Web Designer

    Quote Originally Posted by primed View Post
    Hi,
    Yep thats the function, except i want to open up a pdf.
    I also need to know where to copy the code to within web designer.

    Primed
    Where it says:
    The link example would be like this:
    <a href="javascript:void(0);" onclick="PopupCenter('http://www.nigraphic.com', 'myPop1',400,400);">CLICK TO OPEN POPUP</a>
    CLICK TO OPEN POPUP
    ------------
    Change the http address to the address where your pdf will be located eg.http://www.nigraphic.com/mydocument.pdf If you are new to WD I assume (bad word) you are new to publishing sites etc. If so I suggest:

    1. Read and become familiar with the methodology to publish a site.
    2. Read the help files on using placeholders and do some searches in the forum. A placeholder is what you use to implement a code snippet.
    3. Basically you will draw a box in WD the dimensions you require for the popup window (in the example shown 400,400). Then assign web properties to the box. The box will not show on the website - it will be replaced by the code you entered in the placeholder - you get to it from web properties of the box you draw.
    4. Upload the pdf file to the address you put in the placeholder. You will have to use an standalone ftp client - such as Filezilla to do that. If you're not familiar with the file setup on your host you need to be - even if relying on WD publish function. So do some reading.

    Let us know if it works. I haven't tried it.

  5. #5
    Join Date
    Feb 2010
    Posts
    4

    Default Re: Popup PDF in Web Designer

    Hi,

    No didnt work.

    I tried testing just the link to the pdf and that works fine, but when i insert the rest of the code nothing happens when i preess the button.

    Could you check your end so i know wheter it is just me or not.

    Thanks for the extra tips.

    Being playing with placeholder and downloading lots of fun stuff.

    Thanks
    Primed

  6. #6

    Default Re: Popup PDF in Web Designer

    Please remember that making a link to a PDF file whether intended for a popup window, an iframe or other means of displaying it in a browser will inevitably NOT work on a percentage of computers where the users browser of choice has not be set to open PDF's inline but rather to simply download them.

 

 

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
  •