PDA

View Full Version : Submit button perform 2 function


Jittor
11-14-2008, 05:29 PM
Is there a way to have the submit button, when clicked, send the info, redirect to a new page and open a pdf file? Right now I have it so it send the form data and then redirects to a new page but I would like it to pop up a pdf file for them to print.

Thanks,

domedia
11-14-2008, 07:03 PM
If the new page is a specific page they only see if the form is successfully sent, you can just add the open new window function to that page.
<body onLoad="open new page with JS thingy in here">

davidj
11-14-2008, 08:26 PM
aye

id do it that way

Jittor
11-14-2008, 08:34 PM
not sure I follow:

It is a page they can only get to by completing the form. So, on the page that the form redirects to add this code to the body:

<body onLoad="http://fakesite.com/documents/fakedoc.pdf">

Am I understanding that? I have a feeling I'm not.

domedia
11-14-2008, 09:23 PM
You have to add a javascript function in there, that will open a new window.
DW has the openbrowserwindow or what it was called. Look in the behaviors panel.

Jittor
11-14-2008, 09:25 PM
cool, I'll give it a shot - Thanks