You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Rabago, Hubert" <hu...@nwa.com> on 2003/10/29 22:52:44 UTC

RE: [OT] javascript question...

What error were you getting here?

-----Original Message-----
From: Jacob Wilson [mailto:strutsjo@yahoo.com] 
Sent: Wednesday, October 29, 2003 3:44 PM
To: Struts Users Mailing List
Subject: RE: javascript question...


Thanks Narayanan -- I tried this b4, but this will throw an error...
Actually, you need to pass a total string into the open method....

Prashanth Narayanan <pr...@ecostech.com> wrote:
try 
var newwin=window.open("a.html?Name="+namVal);

-----Original Message-----
From: Jacob Wilson [mailto:strutsjo@yahoo.com]
Sent: Wednesday, October 29, 2003 4:37 PM
To: struts-user@jakarta.apache.org
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: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org



---------------------------------
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: [OT] javascript question...

Posted by Jacob Wilson <st...@yahoo.com>.
Im sorry guys... this way works... 
 
var newwin=window.open("a.html?Name="+namVal);



"Rabago, Hubert" <hu...@nwa.com> wrote:
What error were you getting here?

-----Original Message-----
From: Jacob Wilson [mailto:strutsjo@yahoo.com] 
Sent: Wednesday, October 29, 2003 3:44 PM
To: Struts Users Mailing List
Subject: RE: javascript question...


Thanks Narayanan -- I tried this b4, but this will throw an error...
Actually, you need to pass a total string into the open method....

Prashanth Narayanan 
wrote:
try 
var newwin=window.open("a.html?Name="+namVal);

-----Original Message-----
From: Jacob Wilson [mailto:strutsjo@yahoo.com]
Sent: Wednesday, October 29, 2003 4:37 PM
To: struts-user@jakarta.apache.org
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: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org



---------------------------------
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears