Re: [PHP] Re: target question

2013-03-25 Thread Tommy Pham
On Mon, Mar 25, 2013 at 10:21 AM, Jim Giner wrote: > In light of the apparent lack of any solution, I have embarked on changing > all my report choices to use multiple forms with different target attribs as > needed. For many of them not a big deal, but for several it adds a degree > of difficult

Re: [PHP] target question

2013-03-25 Thread Lester Caine
Matijn Woudt wrote: I don't see what the problem is with showing a pdf in a pop up or new tab/window, it should work just as any other. Can u perhaps show us a simple code that does not work? (under 50 lines of code, if possible). There is no problem getting it to appear as a pop-up or in a new

Re: [PHP] target question

2013-03-25 Thread Gabriel Ricci
I agree with Matjin in this one, Flash is not a good solution in this case, in fact, Flash is not a good solution in a lot of cases lately, but handling PDFs in the browser can be tricky sometimes. I remember that some time ago I had to build a system that prints a PDF after it is loaded from the

Re: [PHP] target question

2013-03-25 Thread Matijn Woudt
On Mon, Mar 25, 2013 at 7:11 PM, Lester Caine wrote: > Jim Giner wrote: > >> Thanks for the pointer - but not what I'm looking to do. Trying to make >> it >> effortless for the user so having to go and open a pdf would be another >> pia. >> > > Actually it IS worth pointing out that how the brow

Re: [PHP] target question

2013-03-25 Thread Lester Caine
Jim Giner wrote: Thanks for the pointer - but not what I'm looking to do. Trying to make it effortless for the user so having to go and open a pdf would be another pia. Actually it IS worth pointing out that how the browser handles a pdf file is very much controlled by the browser itself? Ope

[PHP] Re: target question

2013-03-25 Thread Jim Giner
In light of the apparent lack of any solution, I have embarked on changing all my report choices to use multiple forms with different target attribs as needed. For many of them not a big deal, but for several it adds a degree of difficulty since I have to copy the values of any input fields in

Re: [PHP] target question

2013-03-25 Thread Jim Giner
On 3/25/2013 1:12 PM, Samuel Lopes Grigolato wrote: With the header "Content-Disposition: attachment" the browser will offer the response as a regular file download (with save/open options). Your original page (menu) will remain intact. Please note that this solution will not present the PDF dir

Re: [PHP] target question

2013-03-25 Thread Samuel Lopes Grigolato
With the header "Content-Disposition: attachment" the browser will offer the response as a regular file download (with save/open options). Your original page (menu) will remain intact. Please note that this solution will not present the PDF directly to the user (as it would with a popup window), i

Re: [PHP] target question

2013-03-25 Thread Paul M Foster
On Mon, Mar 25, 2013 at 04:37:50PM +, Stuart Dallas wrote: > On 25 Mar 2013, at 16:35, "Ford, Mike" wrote: > > >> -Original Message- > >> From: Paul M Foster [mailto:pa...@quillandmouse.com] > >> Sent: 25 March 2013 16:09 > >> > >> This behavior of the browser actually conforms to t

Re: [PHP] target question

2013-03-25 Thread Stuart Dallas
On 25 Mar 2013, at 16:35, "Ford, Mike" wrote: >> -Original Message- >> From: Paul M Foster [mailto:pa...@quillandmouse.com] >> Sent: 25 March 2013 16:09 >> >> This behavior of the browser actually conforms to the standard as >> far as >> I know. The "target" attribute is attached only to

RE: [PHP] target question

2013-03-25 Thread Ford, Mike
> -Original Message- > From: Paul M Foster [mailto:pa...@quillandmouse.com] > Sent: 25 March 2013 16:09 > > This behavior of the browser actually conforms to the standard as > far as > I know. The "target" attribute is attached only to the tag, > according to w3schools.com Actually, the

Re: [PHP] target question

2013-03-25 Thread Paul M Foster
On Mon, Mar 25, 2013 at 10:01:03AM -0400, Jim Giner wrote: > target as in the form attribute > > In my appl devl I utilize an extra window when my current form is > asked to generate a pdf report. Works well since that way the user > can generate one report into a new window, read it, close it,

Re: [PHP] target question

2013-03-25 Thread Jim Giner
On 3/25/2013 10:13 AM, Samuel Lopes Grigolato wrote: Have you tried to set a Content-Disposition header in the PHP script that creates the PDF, asking the browser to "attach" the download? This way you don't even need a new window. Example from php.net/manual: // It will be called downloaded.pd

Re: [PHP] target question

2013-03-25 Thread Samuel Lopes Grigolato
Have you tried to set a Content-Disposition header in the PHP script that creates the PDF, asking the browser to "attach" the download? This way you don't even need a new window. Example from php.net/manual: // It will be called downloaded.pdf header('Content-Disposition: attachment; filename="do

[PHP] target question

2013-03-25 Thread Jim Giner
target as in the form attribute In my appl devl I utilize an extra window when my current form is asked to generate a pdf report. Works well since that way the user can generate one report into a new window, read it, close it, and still have the reports menu in front of him/her and generate a