[PHP] Re: Die Page, Die! (Was: Preview button to show PDF without submittingpost data?)

2009-11-08 Thread Nathan Rixham
Dave M G wrote:
 Ashley,
 
 Thank you for responding.
 
 I think you do, or where else would you show the PDF? Unless you force
 the PDF to download when the user clicks the preview button, you are
 left with the default option of the users browser, which will most
 usually be to display the PDF in the browser window.
 
 No, that's not what's happening. I'm not showing the PDF in a browser
 window. It's being given to the user with the option to download or view
 in a separate application.
 
 So I am fine with the download option. That's what I'm doing now, I
 suppose. So since the user is downloading the PDF, they don't need an
 in-browser window to view it.
 
 Once the PDF is downloaded/viewed, I want the new window to die by any
 means necessary.
 
 Surely there's a way.
 

yup.. forget the new window all together, if you have it set to download
as an attachment then the user won't be taken away from the page; so no
need for a new window at all.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Die Page, Die! (Was: Preview button to show PDF without submittingpost data?)

2009-11-08 Thread Dave M G
Nathan,

Thank you for responding.

 yup.. forget the new window all together, if you have it set to download
 as an attachment then the user won't be taken away from the page; so no
 need for a new window at all.

Right... so, we're all on board with the goals.

Now... how do I do that?

The whole problem here is that I keep getting a new window even though I
don't want it.

I would have thought if I told PHP to die immediately after outputting
the PDF, it would give up on making the new window.

I've also tried JavaScript to kill the window after it's made.

*How* do I get the page to die?

-- 
Dave M G

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Die Page, Die! (Was: Preview button to show PDF without submittingpost data?)

2009-11-08 Thread Phpster




On Nov 8, 2009, at 1:20 PM, Dave M G mar...@autotelic.com wrote:


Nathan,

Thank you for responding.

yup.. forget the new window all together, if you have it set to  
download
as an attachment then the user won't be taken away from the page;  
so no

need for a new window at all.


Right... so, we're all on board with the goals.

Now... how do I do that?

The whole problem here is that I keep getting a new window even  
though I

don't want it.

I would have thought if I told PHP to die immediately after outputting
the PDF, it would give up on making the new window.

I've also tried JavaScript to kill the window after it's made.

*How* do I get the page to die?

--
Dave M G

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



If you are popping up a new window just to handle the download, what  
about using a small iframe or hidden frame to handle that instead?


Bastien

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php