RE: [OT] RE: javascript question...
I'm pretty sure you can do it: var newwin=window.open("a.html?Name=" + namVal); Paul -Original Message- From: James Childers [mailto:[EMAIL PROTECTED] Sent: 29 October 2003 21:41 To: Struts Users Mailing List Subject: [OT] RE: javascript question... No, you can't do it that way. But you could create an otherwise unused hidden form element in your parent document, set it with the value you want from within your JavaScript function, and then reference that value from the child window. -= J > -Original Message- > From: Jacob Wilson [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 29, 2003 3:37 PM > To: [EMAIL PROTECTED] > Subject: javascript question... > > > Hi... > > Is it possible to send a value of a form element from the > parent window to the child window like this??? > > > function go() { > var namVal = document.fm1.txtName.value; > var newwin=window.open("a.html?Name=namVal"); > } > > > > > > > > The above does not work... it will give me 'namVal' as the > value rather than the actual typed in value when I try to get > request.getParameter > > How can I achieve this functionality??? I need to pass a form > element value when opening a new window. This value is > essential at this point coz I perform an action based on this > value and then bring the pop up page > > Suggestions requested please... > > Thanks! > > Jacob > > > - > Do you Yahoo!? > Exclusive Video Premiere - Britney Spears > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ** Axios Email Confidentiality Footer Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message, and notify us immediately. If you or your employer does not consent to Internet email messages of this kind, please advise us immediately. Opinions, conclusions and other information expressed in this message are not given or endorsed by my Company or employer unless otherwise indicated by an authorised representative independent of this message. WARNING: While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted via electronic mail attachments we cannot guarantee that attachments do not contain computer virus code. You are therefore strongly advised to undertake anti virus checks prior to accessing the attachment to this electronic mail. Axios Systems Ltd grants no warranties regarding performance use or quality of any attachment and undertakes no liability for loss or damage howsoever caused. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] RE: javascript question...
You are right... We can reference it using the window opener event and get the value in the child window... But, my problem is that -- inorder to populate the child window I need to execute an action and fetch values from the backend using this value... Is there any other way to solve this??? James Childers <[EMAIL PROTECTED]> wrote: No, you can't do it that way. But you could create an otherwise unused hidden form element in your parent document, set it with the value you want from within your JavaScript function, and then reference that value from the child window. -= J > -Original Message- > From: Jacob Wilson [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 29, 2003 3:37 PM > To: [EMAIL PROTECTED] > Subject: javascript question... > > > Hi... > > Is it possible to send a value of a form element from the > parent window to the child window like this??? > > > function go() { > var namVal = document.fm1.txtName.value; > var newwin=window.open("a.html?Name=namVal"); > } > > > > [input] > [input] > > > The above does not work... it will give me 'namVal' as the > value rather than the actual typed in value when I try to get > request.getParameter > > How can I achieve this functionality??? I need to pass a form > element value when opening a new window. This value is > essential at this point coz I perform an action based on this > value and then bring the pop up page > > Suggestions requested please... > > Thanks! > > Jacob > > > - > Do you Yahoo!? > Exclusive Video Premiere - Britney Spears > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Exclusive Video Premiere - Britney Spears
[OT] RE: javascript question...
No, you can't do it that way. But you could create an otherwise unused hidden form element in your parent document, set it with the value you want from within your JavaScript function, and then reference that value from the child window. -= J > -Original Message- > From: Jacob Wilson [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 29, 2003 3:37 PM > To: [EMAIL PROTECTED] > Subject: javascript question... > > > Hi... > > Is it possible to send a value of a form element from the > parent window to the child window like this??? > > > function go() { > var namVal = document.fm1.txtName.value; > var newwin=window.open("a.html?Name=namVal"); > } > > > > > > > > The above does not work... it will give me 'namVal' as the > value rather than the actual typed in value when I try to get > request.getParameter > > How can I achieve this functionality??? I need to pass a form > element value when opening a new window. This value is > essential at this point coz I perform an action based on this > value and then bring the pop up page > > Suggestions requested please... > > Thanks! > > Jacob > > > - > Do you Yahoo!? > Exclusive Video Premiere - Britney Spears > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]