Ashish Kulkarni wrote:
Hi
can we open a new window from action class?
i dont want to use
target="_blank">
as i want to be able to open this new window from any
form( i have a menu option which can be executed from
any page of my website)
Basically i have a java script which looks like this
TheNew
Ashish Kulkarni wrote:
Hi
can we open a new window from action class?
i dont want to use
target="_blank">
as i want to be able to open this new window from any
form( i have a menu option which can be executed from
any page of my website)
Basically i have a java script which looks like this
TheNew
w name to something specific
> such as mysite_com_popup
> and then use that name as a target in the future?
>
> Regards,
> David
>
> -Original Message-
> From: Ashish Kulkarni
> [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, January 19, 2005 2:28 PM
> To: Stru
: Wednesday, January 19, 2005 2:48 PM
To: Struts Users Mailing List
Subject: RE: open new window form struts action..java script variable
Why not set the window name to something specific such as mysite_com_popup
and then use that name as a target in the future?
Regards,
David
-Original Message
: Re: open new window form struts action..java script variable
Hi
thanx guys for the clarification, here is a very
intresting problem with defining target and opening
new window,
suppose you open a new window using java script in
mypage.jsp
your code will be like below in mypage.jsp
var TheNewWin
Hi
thanx guys for the clarification, here is a very
intresting problem with defining target and opening
new window,
suppose you open a new window using java script in
mypage.jsp
your code will be like below in mypage.jsp
var TheNewWin;
if(!TheNewWin || TheNewWin.closed)
{
TheNewWin = window.open(
Geez, I wish I'd have known that before! So are you saying that if the browser
doesn't recognize the target as one of the predefined types, it will assume it
should open a new window named according to the target value? That's cool, and
I didn't know it. It would have saved me some trouble a
On Jan 19, 2005, at 19:05, [EMAIL PROTECTED] wrote:
For my own edification, can you expand on the ability to "...define
whatever target you like"? I've never heard that before, I'd be
interested to know more. I'm wondering specifically since the browser
wouldn't know what anything other than t
For my own edification, can you expand on the ability to "...define whatever
target you like"? I've never heard that before, I'd be interested to know
more. I'm wondering specifically since the browser wouldn't know what anything
other than the defined targets you referenced meant, how would y
On Jan 19, 2005, at 18:56, [EMAIL PROTECTED] wrote:
(1) Submit a form to _blank, as you said (actually, I think it's _new,
but my memory sucks so I'm not sure)
Actually, you can define whatever target you like.
There are a couple of "standard" ones though:
•_blank - the target URL
This should probably be an answer on the Wiki since I see this asked quite a
bit...
No, you cannot open a new window from an Action. Not directly anyway. Opening
a window is strictly a client-side activity. Therefore, you have two choices:
(1) Submit a form to _blank, as you said (actually,
11 matches
Mail list logo