Re: open new window form struts action

2005-02-02 Thread [EMAIL PROTECTED]
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

Re: open new window form struts action

2005-01-20 Thread [EMAIL PROTECTED]
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

RE: open new window form struts action..java script variable

2005-01-20 Thread Ashish Kulkarni
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

RE: open new window form struts action..java script variable

2005-01-20 Thread Backus, Matthew J
: 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

2005-01-19 Thread David G. Friedman
: 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

Re: open new window form struts action..java script variable

2005-01-19 Thread Ashish Kulkarni
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(

Re: open new window form struts action

2005-01-19 Thread fzlists
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

Re: open new window form struts action

2005-01-19 Thread PA
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

Re: open new window form struts action

2005-01-19 Thread fzlists
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

Re: open new window form struts action

2005-01-19 Thread PA
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

Re: open new window form struts action

2005-01-19 Thread fzlists
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,