You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Anjali Jain <An...@NIIT.com> on 2002/06/17 13:16:59 UTC

problem using javascript method window.open() in struts...??

Hi All,

I'm having a problem using window.open() in struts.
I  have a ActionForm class in session scope. On click of a button in one
jsp, I'm calling a javascript method ,window.open("abc.do").

Problem:
window.open opens a new browser window, but processing result of abc.do is
ahown in parent window (window from which window.open() is invoked).
how do I show the results in new window....?


----------anjali

Power your enterprise with custom solutions in eLearning and Knowledge
Management from NIIT - Knowledge Solutions. For details visit our website
http://www.ksb.niit.com 

___________________NOTICE____________________________ 
This electronic mail transmission contains confidential information intended
only for the person(s) named.  Any use, distribution, copying or disclosure
by any other person is strictly prohibited. If you received this
transmission in error, please notify the sender by reply e-mail and then
destroy the message.  Opinions, conclusions, and other information in this
message that do not relate to the official business of NIIT shall be
understood to be neither given nor endorsed by NIIT When addressed to NIIT
clients, any information contained in this e-mail is subject to the terms
and conditions in the governing client contract.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: problem using javascript method window.open() in struts...??

Posted by Yaman <ya...@nous.soft.net>.

Hi Anjali,
Try this out.. Sorry for not providing javascirpt method.

function openwin(filename,winname){
    var
newwin=window.open(filename,winname,"height=320,width=778,top=10,left=5,scro
llbars=1");
}

<a href="JavaScript:openwin('<bean:write
name="ctxtPath"/>/question.do?questionNo=<%= certCode %>','question');">
	<%= certCode %>
</a>

Beside above html <a> u can use <html:link .. too.

HTH,
</rayaku>


-----Original Message-----
From: Anjali Jain [mailto:AnjaliJ@NIIT.com]
Sent: Monday, 17 June 2002 4:47 PM
To: struts-user@jakarta.apache.org
Subject: problem using javascript method window.open() in struts...??


Hi All,

I'm having a problem using window.open() in struts.
I  have a ActionForm class in session scope. On click of a button in one
jsp, I'm calling a javascript method ,window.open("abc.do").

Problem:
window.open opens a new browser window, but processing result of abc.do is
ahown in parent window (window from which window.open() is invoked).
how do I show the results in new window....?


----------anjali

Power your enterprise with custom solutions in eLearning and Knowledge
Management from NIIT - Knowledge Solutions. For details visit our website
http://www.ksb.niit.com

___________________NOTICE____________________________
This electronic mail transmission contains confidential information intended
only for the person(s) named.  Any use, distribution, copying or disclosure
by any other person is strictly prohibited. If you received this
transmission in error, please notify the sender by reply e-mail and then
destroy the message.  Opinions, conclusions, and other information in this
message that do not relate to the official business of NIIT shall be
understood to be neither given nor endorsed by NIIT When addressed to NIIT
clients, any information contained in this e-mail is subject to the terms
and conditions in the governing client contract.

--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: problem using javascript method window.open() in struts...??

Posted by Yaman <ya...@nous.soft.net>.
Hi Anjali,
Try this out..

<a href="JavaScript:openwin('<bean:write
name="ctxtPath"/>/question.do?questionNo=<%= certCode %>','question');">
	<%= certCode %>
</a>

Beside above html <a> u can use <html:link .. too.

HTH,
</rayaku>


-----Original Message-----
From: Anjali Jain [mailto:AnjaliJ@NIIT.com]
Sent: Monday, 17 June 2002 4:47 PM
To: struts-user@jakarta.apache.org
Subject: problem using javascript method window.open() in struts...??


Hi All,

I'm having a problem using window.open() in struts.
I  have a ActionForm class in session scope. On click of a button in one
jsp, I'm calling a javascript method ,window.open("abc.do").

Problem:
window.open opens a new browser window, but processing result of abc.do is
ahown in parent window (window from which window.open() is invoked).
how do I show the results in new window....?


----------anjali

Power your enterprise with custom solutions in eLearning and Knowledge
Management from NIIT - Knowledge Solutions. For details visit our website
http://www.ksb.niit.com

___________________NOTICE____________________________
This electronic mail transmission contains confidential information intended
only for the person(s) named.  Any use, distribution, copying or disclosure
by any other person is strictly prohibited. If you received this
transmission in error, please notify the sender by reply e-mail and then
destroy the message.  Opinions, conclusions, and other information in this
message that do not relate to the official business of NIIT shall be
understood to be neither given nor endorsed by NIIT When addressed to NIIT
clients, any information contained in this e-mail is subject to the terms
and conditions in the governing client contract.

--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>