Home > Archive > PHP Pear > March 2006 > Re: [PEAR] QF changing target of a Form at runtime
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Re: [PEAR] QF changing target of a Form at runtime
|
|
| Justin Patrin 2006-03-28, 6:59 pm |
| On 3/28/06, Webmaster@lindworm.de <webmaster@lindworm.de> wrote:
> Hello,
> I might have a problem that is not easy to understand.
>
> I have a QF page with about 30 different input fields and 4 different sen=
d
> buttons.
>
> 3 of those buttons should be sended to the same page wich is no problem a=
t
> all, also the different states of the buttons are easy to handle.
>
> The 4th button should send the data to the same page, but it should open =
a
> popup after sending.
> I did those by calling a jscript (window.open) after processing the data.
> The big problem is that because of popupblockers we gt more and more supp=
ort
> trouble.
>
> I now wonder if I can solve this issue with a little javascript wich is
> called by the sending button.
> This javascript should edit the target tag of the form to _blank, so the
> Browser itself starts an new Window.
>
> Is that solution possible? Or do you know a better ? How can the send but=
ton
> call the jscript?
>
>
Just add an onClick for the button which changes the target and then
calls the form's onSubmit.
--
Justin Patrin
| |
| Justin Patrin 2006-03-29, 7:00 pm |
| On 3/29/06, Webmaster@lindworm.de <webmaster@lindworm.de> wrote:
> Hello,
>
> thank you Justin, I thought about something like this, but I do not find =
a
> documentation how to change the target. Do you have a code snippet ?
>
That would be fairly simple JavaScript. I suggest you google for it.
--
Justin Patrin
|
|
|
|
|