Re: QF changing target of a Form at runtime

From: Date: Tue, 28 Mar 2006 23:50:40 +0000
Subject: Re: QF changing target of a Form at runtime
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-23476@lists.php.net to get a copy of this message
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 send > buttons. > > 3 of those buttons should be sended to the same page wich is no problem at > 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 support > 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 button > call the jscript? > > Just add an onClick for the button which changes the target and then calls the form's onSubmit. -- Justin Patrin

« previous php.pear.general (#23476) next »