Sending a Pdf & goning to another page

View: New views
4 Messages — Rating Filter:   Alert me  

Sending a Pdf & goning to another page

by Norbert Pfaff-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

normaly I send a page with halfway the result. There I have also a  
button for loading a PDF.

Now a customer wants a checkbox for instantly loading the PDF when the  
entered data are correct.
Now how to send the PDF and directly after send the page? I think the  
problem is there is only one request, so also one answer.

Is there a normal way to do this or maybe a trick?


Norbert Pfaff


Norbert Pfaff
Mannheimer Str. 24b
67098 Bad Dürkheim
Germany
Fon: 06322 66185

_______________________________________________
Active4D-dev mailing list
Active4D-dev@...
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Re: Sending a Pdf & goning to another page

by Steve Alex-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Jun 23, 2008, at 5:49 AM, Norbert Pfaff wrote:

> normaly I send a page with halfway the result. There I have also a  
> button for loading a PDF.
>
> Now a customer wants a checkbox for instantly loading the PDF when  
> the entered data are correct.
> Now how to send the PDF and directly after send the page? I think  
> the problem is there is only one request, so also one answer.

You are right it then you can't send both a PDF and a confirmation  
page at the same time - but  you certainly can send a PDF instead of a  
confirmation page if the checkbox is checked and there are no errors.


>
>
> Is there a normal way to do this or maybe a trick?

You should also be able to do some AJAX javascript stuff.  Submit the  
form with AJAX and if ok, send the PDF request. Not sure what they  
buys you though.


Steve Alex
_______________________________________________
Active4D-dev mailing list
Active4D-dev@...
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

RE: Sending a Pdf & goning to another page

by CDonahue :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Norbert,

Not sure if this is what you're asking, but ...

When you are creating the confirmation page, do a check to see if the
checkbox was submitted. If so, append a hidden <iframe> somewhere in the
page that has its URL set to the PDF's path. That way, when the
confirmation page is loaded, the <iframe> will load the PDF.

Hope this helps,
- Clayton
_______________________________________________
Active4D-dev mailing list
Active4D-dev@...
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Re: Sending a Pdf & goning to another page

by Norbert Pfaff-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Clayton,

this has worked for me.
Many thanks.

Norbert


Am 23.06.2008 um 15:06 schrieb Donahue, Clayton L.:

> Hi Norbert,
>
> Not sure if this is what you're asking, but ...
>
> When you are creating the confirmation page, do a check to see if the
> checkbox was submitted. If so, append a hidden <iframe> somewhere in  
> the
> page that has its URL set to the PDF's path. That way, when the
> confirmation page is loaded, the <iframe> will load the PDF.
>
> Hope this helps,
> - Clayton
> _______________________________________________
> Active4D-dev mailing list
> Active4D-dev@...
> http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
> Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/



Norbert Pfaff
Mannheimer Str. 24b
67098 Bad Dürkheim
Fon: 06322 66185

_______________________________________________
Active4D-dev mailing list
Active4D-dev@...
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/
LightInTheBox - Buy quality products at wholesale price