Popup window

2004-02-16 Thread Daniel
There are some example of creating a popup window, for select (of datagrid for example 
)one value and come back to the window with the value selected with Struts.

tnks
Daniel S.

Re: Popup window

2004-02-16 Thread Jim Theodoridis
 /tr
   /table
!-- Buttons End --
  /td
 /tr
/table
/html:form

- Original Message -
From: Daniel [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, February 16, 2004 4:24 PM
Subject: Popup window


There are some example of creating a popup window, for select (of datagrid
for example )one value and come back to the window with the value selected
with Struts.

tnks
Daniel S.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Popup window

2004-02-16 Thread Daniel
Muito obrigado (so much thanks) Jim Theodoridis.

- Original Message -
From: Jim Theodoridis [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, February 16, 2004 11:05 AM
Subject: Re: Popup window


 Hi

 This is the chooseAuthor.jsp. When U choose an author then
 javascript sets the values of id and name which are properties of the
common
 form
 Common form used from the page addDocumentAuthor.jsp
 where u want to choose the Author

  top.opener.document.commonForm.id.value = id;
  top.opener.document.commonForm.name.value = name;

 i hope this helps.


 -- chooseAuthor. jsp 

 %@ page contentType=text/html; charset=UTF-8 %
 %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %
 %@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
 %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic %

 %@ page import=gr.tera.alternative.commons.Constants %

 script language=JavaScript
   function setAuthor(id,name) {
 top.opener.document.commonForm.id.value = id;
  top.opener.document.commonForm.name.value = name;
 top.window.close();
   }
 /script


 html:html
 head
 titlebean:message key=author.choose.title//title
  link rel=stylesheet
 href=%=request.getContextPath()%/tiles/layouts/css/default.css
 type=text/css

 /head

 BODY bgcolor=#ffeda3 leftmargin=0 topmargin=0 marginwidth=0
 marginheight=0

 %
String SLATE = #DDEEFE;
String WHITE = #FF;
String HEADER=#AAB6C6;
String bgcolor = null;
String letters[] =

{%,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R
 ,S,T,U,V,W,X,Y,Z};
  %

 !-- ÅìöÜíéóç ãñáììÜôùí --
  table align=center class=ChooseLetter
  tr
   logic:iterate id=currentChar collection=%=letters%
 type=java.lang.String 
tda href=chooseAuthor.do?letter=%=currentChar%
 styleClass=LETTER%=currentChar%/a/td
   /logic:iterate
  /tr
 /table

 logic:present name=%=Constants.AUTHORS_KEY% 

 table border=0 width=100% align=center 

 logic:iterate id=author
   type=gr.tera.alternative.bo.AuthorBO
   name=%=Constants.AUTHORS_KEY%
   indexId=index  

 %
if((index.intValue() % 2) == 0) {
   bgcolor = WHITE;
  } else {
   bgcolor = SLATE;
  }
 %

   tr  bgcolor=%=bgcolor%
 td align=center%= index.intValue()+1 %/td
 td align=left valign=middle nowrap
   a href=javascript:setAuthor('bean:write name=author property=id
 /','bean:write name=author property=name /') class=LETTER
bean:write name=author property=name /
   /a
  /td
   tr
 /logic:iterate
 /table
 /logic:present


 /body
 /html:html


 addDocumentAuthor.jsp--

 %@ page contentType=text/html; charset=UTF-8 %
 %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %
 %@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
 %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic %

 %@ page import=gr.tera.alternative.commons.Constants %
 script language=JavaScript src=js/utils.js/script

 html:errors /


 bean:define id=document
 type=gr.tera.alternative.bo.DocumentBO
 name=%=Constants.DOCUMENT_KEY% /

  bean:define id=category
  name=document
   property=category
   type=gr.tera.alternative.bo.CategoryBO /

  bean:define id=kind
  name=document
   property=kind
   type=gr.tera.alternative.bo.KindBO /

 table width=80% border=0 cellspacing=3 cellpadding=1
align=center
 bgcolor=#E7EFE9
  tr
   td colSpan=2nbsp;/td
  /tr
   tr
   td align=right valign=topbean:message key=document.name//td
 td valign=leftbean:write name=document property=name
 //td
 /tr
  tr
   td align=right valign=topbean:message key=document.kind//td
 td valign=leftbean:write name=kind property=name//td
 /tr
  tr
   td align=right valign=topbean:message
 key=document.category//td
 td valign=leftbean:write name=category
property=name//td
 /tr
  tr
   td align=right valign=topbean:message key=document.year//td
 td valign=leftbean:write name=document property=year
 //td
 /tr
  tr
td colSpan=2
   table width=100% border=0 cellspacing=3 cellpadding=0
 align=center 
logic:iterate id=author
  name=document
  property=authors
  type=gr.tera.alternative.bo.AuthorBO
  indexId=index
tr
 td align=center%=index.intValue()+1 %/td
 td align=left valign=middle nowrapbean:write name=author
 property=name filter=false //td
 td align=center
  a href='awardEvents.do?action=deleteid=bean:write name=author
 property=id /'delete/a
 /td
 td align=center
  a href='awardEvents.do?action=getid=bean:write name=author
 property=id /'update/a
 /td
/tr

/logic:iterate
   /table
/td
 /tr
 /table


 html:form action=addDocumentAuthor.do focus=id
 table align=center
  tr
   td align=right valign=topbean:message key=document.kind//td
 td valign=left
   html:text property=id size=50 maxlength=50 styleClass=form /
   html:text property=name size=50 maxlength=50 styleClass=form

passing value to and from popup window HELP

2003-01-29 Thread Ashish Kulkarni
Hi,

I have to do the following
When a user clicks on a link, I want to open a jsp in
new window , i want to pass some parameters to this
jsp, which i am doing by using 
html:link href=_blank onclick=javascript:popup()
Click here /html:link
But now i want to get value back from the popup
window, for e.g when the user clicks on some link on
this window, get the value of this link
and display it on the textfield of the first page.

Also there is one more requriement, depending upon the
value selected by the user on popup window i want to
get some extra info database, and display it on the
first page.
withour submitting the first page ( i was using
submitting to iframe before)

Ashish

=
A$HI$H

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: passing value to and from popup window HELP

2003-01-29 Thread Jarnot Voytek Contr AU HQ/SC
Your second requirement will require refreshing the first page no matter how
much you are against it.  For your first one, just write a javascript
function on the first page and call it from the popup window as such:
opener.setSomeValue('whatever');

--
Voytek Jarnot
Quidquid latine dictum sit, altum viditur.


 -Original Message-
 From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 29, 2003 12:43 PM
 To: [EMAIL PROTECTED]
 Subject: passing value to and from popup window HELP
 
 
 Hi,
 
 I have to do the following
 When a user clicks on a link, I want to open a jsp in
 new window , i want to pass some parameters to this
 jsp, which i am doing by using 
 html:link href=_blank onclick=javascript:popup()
 Click here /html:link
 But now i want to get value back from the popup
 window, for e.g when the user clicks on some link on
 this window, get the value of this link
 and display it on the textfield of the first page.
 
 Also there is one more requriement, depending upon the
 value selected by the user on popup window i want to
 get some extra info database, and display it on the
 first page.
 withour submitting the first page ( i was using
 submitting to iframe before)
 
 Ashish
 
 =
 A$HI$H
 
 __
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
 http://mailplus.yahoo.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: passing value to and from popup window HELP

2003-01-29 Thread Puneet Agarwal
Not Necessarily..Remote Scripting can do this without refreshing the whole
page.

- Original Message -
From: Jarnot Voytek Contr AU HQ/SC [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Wednesday, January 29, 2003 6:49 PM
Subject: RE: passing value to and from popup window HELP


 Your second requirement will require refreshing the first page no matter
how
 much you are against it.  For your first one, just write a javascript
 function on the first page and call it from the popup window as such:
 opener.setSomeValue('whatever');

 --
 Voytek Jarnot
 Quidquid latine dictum sit, altum viditur.


  -Original Message-
  From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, January 29, 2003 12:43 PM
  To: [EMAIL PROTECTED]
  Subject: passing value to and from popup window HELP
 
 
  Hi,
 
  I have to do the following
  When a user clicks on a link, I want to open a jsp in
  new window , i want to pass some parameters to this
  jsp, which i am doing by using
  html:link href=_blank onclick=javascript:popup()
  Click here /html:link
  But now i want to get value back from the popup
  window, for e.g when the user clicks on some link on
  this window, get the value of this link
  and display it on the textfield of the first page.
 
  Also there is one more requriement, depending upon the
  value selected by the user on popup window i want to
  get some extra info database, and display it on the
  first page.
  withour submitting the first page ( i was using
  submitting to iframe before)
 
  Ashish
 
  =
  A$HI$H
 
  __
  Do you Yahoo!?
  Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
  http://mailplus.yahoo.com
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: passing value to and from popup window HELP

2003-01-29 Thread Ashish Kulkarni
Hi 
Do u have an example of this remote scripting stuff,
I was able to get the first thing working of setting
the parameters from popup window to the main window by
using document.opener
Also how will i come to know in my main window when
the popup window is closed and it has passes some
value to first window so i can do some remote scriting

Ashish
--- Puneet Agarwal [EMAIL PROTECTED] wrote:
 Not Necessarily..Remote Scripting can do this
 without refreshing the whole
 page.
 
 - Original Message -
 From: Jarnot Voytek Contr AU HQ/SC
 [EMAIL PROTECTED]
 To: 'Struts Users Mailing List'
 [EMAIL PROTECTED]
 Sent: Wednesday, January 29, 2003 6:49 PM
 Subject: RE: passing value to and from popup window
 HELP
 
 
  Your second requirement will require refreshing
 the first page no matter
 how
  much you are against it.  For your first one, just
 write a javascript
  function on the first page and call it from the
 popup window as such:
  opener.setSomeValue('whatever');
 
  --
  Voytek Jarnot
  Quidquid latine dictum sit, altum viditur.
 
 
   -Original Message-
   From: Ashish Kulkarni
 [mailto:[EMAIL PROTECTED]]
   Sent: Wednesday, January 29, 2003 12:43 PM
   To: [EMAIL PROTECTED]
   Subject: passing value to and from popup window
 HELP
  
  
   Hi,
  
   I have to do the following
   When a user clicks on a link, I want to open a
 jsp in
   new window , i want to pass some parameters to
 this
   jsp, which i am doing by using
   html:link href=_blank
 onclick=javascript:popup()
   Click here /html:link
   But now i want to get value back from the popup
   window, for e.g when the user clicks on some
 link on
   this window, get the value of this link
   and display it on the textfield of the first
 page.
  
   Also there is one more requriement, depending
 upon the
   value selected by the user on popup window i
 want to
   get some extra info database, and display it on
 the
   first page.
   withour submitting the first page ( i was using
   submitting to iframe before)
  
   Ashish
  
   =
   A$HI$H
  
  
 __
   Do you Yahoo!?
   Yahoo! Mail Plus - Powerful. Affordable. Sign up
 now.
   http://mailplus.yahoo.com
  
  

-
   To unsubscribe, e-mail:
 [EMAIL PROTECTED]
   For additional commands, e-mail:
 [EMAIL PROTECTED]
  
 
 

-
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 
 
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 


=
A$HI$H

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: passing value to and from popup window HELP

2003-01-29 Thread Puneet Agarwal
In Remote Scripting, you can send a GET or POST request to some webserver on
occurance of some event on receival of the response particular function of
JavaScript shall be invoked instead of refreshing the whole page.


http://developer.apple.com/internet/javascript/iframe.html

I cannot send you the code due to some mgmt issues...
try to search ..on net you will easily find some example code I guess.

Beware that this is a bad approach as regards to network traffic.

Regards
Puneet
- Original Message -
From: Ashish Kulkarni [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]; Puneet
Agarwal [EMAIL PROTECTED]
Sent: Wednesday, January 29, 2003 7:55 PM
Subject: Re: passing value to and from popup window HELP


 Hi
 Do u have an example of this remote scripting stuff,
 I was able to get the first thing working of setting
 the parameters from popup window to the main window by
 using document.opener
 Also how will i come to know in my main window when
 the popup window is closed and it has passes some
 value to first window so i can do some remote scriting

 Ashish
 --- Puneet Agarwal [EMAIL PROTECTED] wrote:
  Not Necessarily..Remote Scripting can do this
  without refreshing the whole
  page.
 
  - Original Message -
  From: Jarnot Voytek Contr AU HQ/SC
  [EMAIL PROTECTED]
  To: 'Struts Users Mailing List'
  [EMAIL PROTECTED]
  Sent: Wednesday, January 29, 2003 6:49 PM
  Subject: RE: passing value to and from popup window
  HELP
 
 
   Your second requirement will require refreshing
  the first page no matter
  how
   much you are against it.  For your first one, just
  write a javascript
   function on the first page and call it from the
  popup window as such:
   opener.setSomeValue('whatever');
  
   --
   Voytek Jarnot
   Quidquid latine dictum sit, altum viditur.
  
  
-Original Message-
From: Ashish Kulkarni
  [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 29, 2003 12:43 PM
To: [EMAIL PROTECTED]
Subject: passing value to and from popup window
  HELP
   
   
Hi,
   
I have to do the following
When a user clicks on a link, I want to open a
  jsp in
new window , i want to pass some parameters to
  this
jsp, which i am doing by using
html:link href=_blank
  onclick=javascript:popup()
Click here /html:link
But now i want to get value back from the popup
window, for e.g when the user clicks on some
  link on
this window, get the value of this link
and display it on the textfield of the first
  page.
   
Also there is one more requriement, depending
  upon the
value selected by the user on popup window i
  want to
get some extra info database, and display it on
  the
first page.
withour submitting the first page ( i was using
submitting to iframe before)
   
Ashish
   
=
A$HI$H
   
   
  __
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up
  now.
http://mailplus.yahoo.com
   
   
 
 -
To unsubscribe, e-mail:
  [EMAIL PROTECTED]
For additional commands, e-mail:
  [EMAIL PROTECTED]
   
  
  
 
 -
   To unsubscribe, e-mail:
  [EMAIL PROTECTED]
   For additional commands, e-mail:
  [EMAIL PROTECTED]
  
  
 
 
 
 -
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
 


 =
 A$HI$H

 __
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
 http://mailplus.yahoo.com



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




popup window

2003-01-02 Thread Amit Badheka
Hi All,

Is there any way to open new window from the action class.

I have a requirement like when one from is submitted I have to pass values of that 
from to another jsp that will open in new window.

please help.

AB.



RE: popup window

2003-01-02 Thread du Plessis, Corneil C
If you want to open a new window when submitting a form you will have to set
the target of the html:form or form using _blank will launch a new
window.

-Original Message-
From: Amit Badheka [mailto:[EMAIL PROTECTED]]
Sent: 02 January, 2003 11:26
To: Struts Users Mailing List
Subject: popup window


Hi All,

Is there any way to open new window from the action class.

I have a requirement like when one from is submitted I have to pass values
of that from to another jsp that will open in new window.

please help.

AB.

__

Disclaimer and confidentiality note


Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited is proprietary to the company. It is confidential, legally 
privileged and protected by law. Standard Bank does not own and endorse any other 
content. 
Views and opinions are those of the sender unless clearly stated as being that of 
Standard Bank. 

The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender 
immediately if it has unintentionally reached you and do not read, disclose or use the 
content
in any way. 

Standard Bank can not assure that the integrity of this communication has been 
maintained nor 
that it is free of errors, virus, interception or interference.

__

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: popup window

2003-01-02 Thread Puneet Agarwal
Did _blank not work ?

or is it that you want response in both of the windows ?

Regards
Puneet
- Original Message -
From: Amit Badheka [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, January 02, 2003 9:26 AM
Subject: popup window


Hi All,

Is there any way to open new window from the action class.

I have a requirement like when one from is submitted I have to pass values
of that from to another jsp that will open in new window.

please help.

AB.



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: popup window

2003-01-02 Thread Amit Badheka
Hi Puneet,

It works fine, but my problem is that I am using templates.
So, in the popup window whole template is displaying rather than a single
jsp.

Also, one more problem is that popup jsp contains a tree. so when we try to
explore the tree structure on each event it calls same action(that open new
window) and hence each time new popup generated.

Is there any way to forward request to same window that is newly opened?

Amit Badheka.

- Original Message -
From: Puneet Agarwal [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, January 02, 2003 4:54 PM
Subject: Re: popup window


 Did _blank not work ?

 or is it that you want response in both of the windows ?

 Regards
 Puneet
 - Original Message -
 From: Amit Badheka [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Thursday, January 02, 2003 9:26 AM
 Subject: popup window


 Hi All,

 Is there any way to open new window from the action class.

 I have a requirement like when one from is submitted I have to pass values
 of that from to another jsp that will open in new window.

 please help.

 AB.



 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: popup window

2003-01-02 Thread Puneet Agarwal
This has nothing to do with action class.

You have JSP -1, which has target defined as _blank.

when you do some operation on this page, it opens a child window this child
window has a tree structure.
it invokes same action class, but the jsp does not have target as blank in
the child window.

now you do some operation in the child window, the response will
automatically come to the same child window.

Where is the problem ?

Regards
Puneet

- Original Message -
From: Amit Badheka [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]; Puneet
Agarwal [EMAIL PROTECTED]
Sent: Thursday, January 02, 2003 12:18 PM
Subject: Re: popup window


 Hi Puneet,

 It works fine, but my problem is that I am using templates.
 So, in the popup window whole template is displaying rather than a single
 jsp.

 Also, one more problem is that popup jsp contains a tree. so when we try
to
 explore the tree structure on each event it calls same action(that open
new
 window) and hence each time new popup generated.

 Is there any way to forward request to same window that is newly opened?

 Amit Badheka.

 - Original Message -
 From: Puneet Agarwal [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Thursday, January 02, 2003 4:54 PM
 Subject: Re: popup window


  Did _blank not work ?
 
  or is it that you want response in both of the windows ?
 
  Regards
  Puneet
  - Original Message -
  From: Amit Badheka [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Thursday, January 02, 2003 9:26 AM
  Subject: popup window
 
 
  Hi All,
 
  Is there any way to open new window from the action class.
 
  I have a requirement like when one from is submitted I have to pass
values
  of that from to another jsp that will open in new window.
 
  please help.
 
  AB.
 
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 


 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: popup window

2003-01-02 Thread ROSSEL Olivier
 If you want to open a new window when submitting a form you 
 will have to set
 the target of the html:form or form using _blank will 
 launch a new
 window.

Newbie question:
can you make this new window a modal window?

can this window appear when you click the Select (submit) button,
but not when you click the Remove (submit) button ?

how do you force reload of original window when you submit the form
of that new window?


This e-mail is intended only for the above addressee. It may contain
privileged information. If you are not the addressee you must not copy,
distribute, disclose or use any of the information in it. If you have
received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be
accessed by someone other than the recipient, for system management and
security reasons. This access is controlled under Regulation of
Investigatory Powers Act 2000, Lawful Business Practises.

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




submit form from popup window to parent window

2002-08-26 Thread jeffrey . reid

Hi all,

I have a form that appears in a popup window (created via a call to IE's
showModalDialog()), that I would like to submit back to the parent window.
The target attribute on the html:form tag only seems to allow you to
specify which frame you want to submit to, not which window.  Does anyone
know how to do this?

Thanks, Jeff.



This communication is for informational purposes only.  It is not intended as
an offer or solicitation for the purchase or sale of any financial instrument
or as an official confirmation of any transaction. All market prices, data
and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein
do not necessarily reflect those of J.P. Morgan Chase  Co., its
subsidiaries and affiliates.


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: submit form from popup window to parent window

2002-08-26 Thread Galbreath, Mark

Jeff,

See the documentation for window.opener.  opener is a reference to the
spawning window from the popup.

Mark

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 9:25 AM

I have a form that appears in a popup window (created via a call to IE's
showModalDialog()), that I would like to submit back to the parent window.
The target attribute on the html:form tag only seems to allow you to
specify which frame you want to submit to, not which window.  Does anyone
know how to do this?

Thanks, Jeff.

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: submit form from popup window to parent window

2002-08-26 Thread jeffrey . reid


Mark,

Thanks for your help.  In looking for documentation on window.opener I came
across a couple of articles/posts that led me to my solution.  What I do is
use window.open() instead of showModalDialog() to create the popup.  This
allows me to submit my struts form to the popup window (I had a problem
doing this in a popup created by showModalDialog().  The action associated
with the form does some processing then forwards to a page that has
javascript in the head section that refreshes the parent
(window.opener.location.href = window.opener.location) and then closes the
popup window (self.close()).  The refreshed parent window then displays the
updated content created by the popup window.

Thanks, Jeff.





[EMAIL PROTECTED] on 08/26/2002 09:44:47 AM

Please respond to [EMAIL PROTECTED]

To:[EMAIL PROTECTED]
cc:
Subject:RE: submit form from popup window to parent window


Jeff,

See the documentation for window.opener.  opener is a reference to the
spawning window from the popup.

Mark

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 9:25 AM

I have a form that appears in a popup window (created via a call to IE's
showModalDialog()), that I would like to submit back to the parent window.
The target attribute on the html:form tag only seems to allow you to
specify which frame you want to submit to, not which window.  Does anyone
know how to do this?

Thanks, Jeff.

--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]








This communication is for informational purposes only.  It is not intended as
an offer or solicitation for the purchase or sale of any financial instrument
or as an official confirmation of any transaction. All market prices, data
and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein
do not necessarily reflect those of J.P. Morgan Chase  Co., its
subsidiaries and affiliates.


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: submit form from popup window to parent window

2002-08-26 Thread Galbreath, Mark

My pleasure dude!

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 2:53 PM
To: [EMAIL PROTECTED]
Subject: RE: submit form from popup window to parent window



Mark,

Thanks for your help.  In looking for documentation on window.opener I came
across a couple of articles/posts that led me to my solution.  What I do is
use window.open() instead of showModalDialog() to create the popup.  This
allows me to submit my struts form to the popup window (I had a problem
doing this in a popup created by showModalDialog().  The action associated
with the form does some processing then forwards to a page that has
javascript in the head section that refreshes the parent
(window.opener.location.href = window.opener.location) and then closes the
popup window (self.close()).  The refreshed parent window then displays the
updated content created by the popup window.

Thanks, Jeff.





[EMAIL PROTECTED] on 08/26/2002 09:44:47 AM

Please respond to [EMAIL PROTECTED]

To:[EMAIL PROTECTED]
cc:
Subject:RE: submit form from popup window to parent window


Jeff,

See the documentation for window.opener.  opener is a reference to the
spawning window from the popup.

Mark

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 9:25 AM

I have a form that appears in a popup window (created via a call to IE's
showModalDialog()), that I would like to submit back to the parent window.
The target attribute on the html:form tag only seems to allow you to
specify which frame you want to submit to, not which window.  Does anyone
know how to do this?

Thanks, Jeff.

--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]








This communication is for informational purposes only.  It is not intended
as
an offer or solicitation for the purchase or sale of any financial
instrument
or as an official confirmation of any transaction. All market prices, data
and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein
do not necessarily reflect those of J.P. Morgan Chase  Co., its
subsidiaries and affiliates.


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Popup window, parent update, best practice

2002-06-25 Thread Daniel Jaffa

Well i had the same problem, and here is the answer that found.

1.  Window 1 pops up window 2.
2.  Window 2 does something (In your case adds a client)
3.  Window 2 has a button that calls a form on window 1 that refreshes that
data, then closes it self.  (You could make step 2 and 3 one step, but i had
to have 2 steps so that multiple new records could be added.)
4.You are done,  hopefully you code if written correctly will show up the
new datum

Pieces of the code

script langauge=javascript

window.opener.document.forms[0].updateFromNames.value=true;
window.opener.document.forms[0].submit();
window.close();
/script

In javascript (window.opener) calls window 1 from window 2.

If works in both netscape and ie.

Hope this answers your question

ps.  I set a value letting my form know that this is an update of the data.
(window.opener.document.forms[0].updateFromNames.value=true;)





- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 24, 2002 2:37 PM
Subject: RE: Popup window, parent update, best practice



 The Browser is the one that performs the logic to display what request
 where.  When you tell it to open a new window you are transfering the
 focus there also...

 I would think based on what you are describing that you could do it all
 on the same window... When they click to add a new client, save all the
 form data so far (somehow) and when they finish with the client and
 submit that, have it forward them back to the first window...

 Makes sense in theory don't it...



 -Original Message-
 From: dhsStrutsDeveloper [mailto:[EMAIL PROTECTED]]
 Sent: Monday, June 24, 2002 2:08 PM
 To: struts-user
 Subject: Re: Popup window, parent update, best practice



 - Original Message -
 From: Roland Chan [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, June 24, 2002 12:02 PM
 Subject: Popup window, parent update, best practice


  Hello,
 
  I've searched the archives and have come up with some different
  approaches but none really match my requirements.
 
  Let's say I have Window 'A' which contains a list of clients.  There
 is
  a button to add a new client which pops up Window 'B'.  The user can
  enter new client information in Window 'B' and click submit which will
  call the appropriate dispatched action and add the user.  What I'm
  looking for is the best practice to send back information to Window
 'A'
  after a successful addition in Window 'B'.  For example, I'd like to
  have the first and last names, and a couple of other pieces of
  information sent back and added to the client list in Window 'A'.
 

 Why can't the success mapping for Action B (window B's action) simply
 be
 the action that resulted in window A. In other words if LoadAction
 causes
 the list of client to appear in Window 'A', then the success mapping for
 B
 would be LoadAction. Sure, it will re-query the data store, but you get
 the
 updated client list in window A after B completes.

 /mark



 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]



 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Popup window, parent update, best practice

2002-06-24 Thread Roland Chan

Hello,
 
I've searched the archives and have come up with some different
approaches but none really match my requirements.
 
Let's say I have Window 'A' which contains a list of clients.  There is
a button to add a new client which pops up Window 'B'.  The user can
enter new client information in Window 'B' and click submit which will
call the appropriate dispatched action and add the user.  What I'm
looking for is the best practice to send back information to Window 'A'
after a successful addition in Window 'B'.  For example, I'd like to
have the first and last names, and a couple of other pieces of
information sent back and added to the client list in Window 'A'.
 
If it helps to paint the picture (or makes matters more complicated), I
am using a heavily nested form, where the clients are two levels deep.
 
Regards.
Roland



Re: Popup window, parent update, best practice

2002-06-24 Thread Mark Nichols


- Original Message -
From: Roland Chan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 24, 2002 12:02 PM
Subject: Popup window, parent update, best practice


 Hello,

 I've searched the archives and have come up with some different
 approaches but none really match my requirements.

 Let's say I have Window 'A' which contains a list of clients.  There is
 a button to add a new client which pops up Window 'B'.  The user can
 enter new client information in Window 'B' and click submit which will
 call the appropriate dispatched action and add the user.  What I'm
 looking for is the best practice to send back information to Window 'A'
 after a successful addition in Window 'B'.  For example, I'd like to
 have the first and last names, and a couple of other pieces of
 information sent back and added to the client list in Window 'A'.


Why can't the success mapping for Action B (window B's action) simply be
the action that resulted in window A. In other words if LoadAction causes
the list of client to appear in Window 'A', then the success mapping for B
would be LoadAction. Sure, it will re-query the data store, but you get the
updated client list in window A after B completes.

/mark



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Popup window, parent update, best practice

2002-06-24 Thread Roland Chan

Yes, I should've been a little clearer in my question.

Window 'A' contains a list of *selected* clients, not all clients.
Window 'B' is a popup for creating new clients if the user cannot select
one of the one's provided.  I'd like to have Window 'B' allow the user
to create the client and then return the name and client no. for use by
the action in Window 'A'.

I think the answer may lie in updating the nested action form in Window
'A', but am not certain how to do this after the new entity action has
completed in Window 'B'.

Maybe this isn't the best practice for this type of user scenario.  At
any rate, I thought I'd throw it out there...

-Original Message-
From: Mark Nichols [mailto:[EMAIL PROTECTED]] 
Sent: June 24, 2002 2:08 PM
To: Struts Users Mailing List
Subject: Re: Popup window, parent update, best practice


- Original Message -
From: Roland Chan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 24, 2002 12:02 PM
Subject: Popup window, parent update, best practice


 Hello,

 I've searched the archives and have come up with some different
 approaches but none really match my requirements.

 Let's say I have Window 'A' which contains a list of clients.  There
is
 a button to add a new client which pops up Window 'B'.  The user can
 enter new client information in Window 'B' and click submit which will
 call the appropriate dispatched action and add the user.  What I'm
 looking for is the best practice to send back information to Window
'A'
 after a successful addition in Window 'B'.  For example, I'd like to
 have the first and last names, and a couple of other pieces of
 information sent back and added to the client list in Window 'A'.


Why can't the success mapping for Action B (window B's action) simply
be
the action that resulted in window A. In other words if LoadAction
causes
the list of client to appear in Window 'A', then the success mapping for
B
would be LoadAction. Sure, it will re-query the data store, but you get
the
updated client list in window A after B completes.

/mark



--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Popup window, parent update, best practice

2002-06-24 Thread wbchmura


The Browser is the one that performs the logic to display what request 
where.  When you tell it to open a new window you are transfering the 
focus there also...  

I would think based on what you are describing that you could do it all 
on the same window... When they click to add a new client, save all the 
form data so far (somehow) and when they finish with the client and 
submit that, have it forward them back to the first window...

Makes sense in theory don't it...



-Original Message-
From: dhsStrutsDeveloper [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 24, 2002 2:08 PM
To: struts-user
Subject: Re: Popup window, parent update, best practice



- Original Message -
From: Roland Chan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 24, 2002 12:02 PM
Subject: Popup window, parent update, best practice


 Hello,

 I've searched the archives and have come up with some different
 approaches but none really match my requirements.

 Let's say I have Window 'A' which contains a list of clients.  There 
is
 a button to add a new client which pops up Window 'B'.  The user can
 enter new client information in Window 'B' and click submit which will
 call the appropriate dispatched action and add the user.  What I'm
 looking for is the best practice to send back information to Window 
'A'
 after a successful addition in Window 'B'.  For example, I'd like to
 have the first and last names, and a couple of other pieces of
 information sent back and added to the client list in Window 'A'.


Why can't the success mapping for Action B (window B's action) simply 
be
the action that resulted in window A. In other words if LoadAction 
causes
the list of client to appear in Window 'A', then the success mapping for 
B
would be LoadAction. Sure, it will re-query the data store, but you get 
the
updated client list in window A after B completes.

/mark



--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: redirect html:errors to popup window

2002-02-09 Thread Arik Levin ( Tikal )

Put at the header javascript alert(' and close at the footer ');

U can also put a dialog window (it depends on the browser u are using ).

Hope this help.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, February 07, 2002 11:47 PM
To: [EMAIL PROTECTED]
Subject: redirect html:errors to popup window


Any suggestions on how to redirect html:errors/ output to a popup window
rather than the page that the form is located on?
Thanks, Jim Canter

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



RE: redirect html:errors to popup window

2002-02-08 Thread Steve Earl

Well,

A slightly different way that we've tried here (I've been scrapping with a
similar issue for a few days now) was to set a 'Window-target' inside the
header on the HttpResponse object when you're within your action class.

Add the following code to your Action class once you've figured out that you
do have some action errors to display

httpResponse.setAttribute(Window-target, name_of_a_frame);


Under Netscape this causes the page identified by your struts-config file to
be loaded in the target window/frame you've specified. Probably not quite as
flexible as Sean's suggestion but it does seem to work. Unfortunately, it
doesn't work for IE5 (as the Window-target meta tag seems to be Netscape
specific).

More depressing for me is that it doesn't work within Mozilla either, and
that's what my client usesso back to the drawing board.

__ 
Steve Earl

InfoGain Limited, 23-25 Marlow Road, Maidenhead, Berkshire SL6 7AA, UK
email: [EMAIL PROTECTED]
Tel: +44 (0)1628 580 600 
Fax: +44 (0)1628 580 610
Mobile: +44 (0)779 026 3645

Disclaimer:  Neither this e-mail nor any attachment places any legal or
contractual obligations on InfoGain Limited. Any reproduction, disclosure or
dissemination beyond the intended addressees is strictly prohibited save for
the legitimate business purposes of InfoGain Limited and its clients or
partners.
__ 


-Original Message-
From: Sean Willson [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 08, 2002 2:06 AM
To: Struts Users Mailing List
Subject: Re: redirect html:errors to popup window


redirect html:errors to popup windowThe only way I think you could do this
is via JavaScript ... you could use this tag set:

logic:messagesPresent ... /logic:messagesPresent

to determine if there are errors, if so open a popup window, save the handle
... and then within this tag:

html:messages id=error.../html:messages

append to that window the error messages. The JavaScript isn't that hard but
that is honestly the only way I think you could do it. It would look
something like this:

logic:messagesPresent 
script
var newWindow = open window here with the size and controls you want
html:messages id=error
append to the window the contents of 'bean:write name=error
filter=false/'
/html:messages
/script
/logic:messagesPresent

Anyone have any other ideas.

Sean

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 07, 2002 3:47 PM
Subject: redirect html:errors to popup window

Any suggestions on how to redirect html:errors/ output to a popup window
rather than the page that the form is located on?
Thanks, Jim Canter
--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




redirect html:errors to popup window

2002-02-07 Thread jcanter


Any suggestions on how to redirect html:errors/ output to a popup window
rather than the page that the form is located on?
Thanks, Jim Canter

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]