RE: How to handle a PopUp Form from another Form?

2001-10-24 Thread tnist

Dan,

There is an example of called "Simulating Modal Dialog Windows" available at
the below URL:
 
http://developer.netscape.com/viewsource/goodman_modal/goodman_modal.html

HTH,

Todd G. Nist

-Original Message-
From: Dan Hodge [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 22, 2001 5:51 PM
To: [EMAIL PROTECTED]
Subject: Re: How to handle a PopUp Form from another Form?


Correct me if I'm wrong, but it sounds like you want to popup window to 
behave like a modal dialog box. I can't think of any standard
javascript/HTML 
construct that would allow that, short of using alert() to pop up a modal 
dialog box, but that's not going to help you. Has anyone seen or built a web

app with this kind of functionality?

-Dan

On Monday 22 October 2001 16:47, you wrote:
> It is an indexed link. I already know how to get the indexed link to
> include the part number.
>
> What I want to do is:
>
> This link should point to an action class, say "partInfo.do", which
> retrieves the complete information about that part and puts it into an
> ActionForm and then forwards to a JSP in a "NEW" window(with no location
> bar,no tool bar,etc.)on top of the originator window.
>
> User submits to this ActionForm have to follow the normal ActionForm
> features, i.e., bring back the part form screen in case of actionerrors.
> And If the update is successful then the part changes are to be saved to
> the database and the popup window closed and user allowed to continue work
> on the originator window
>
> Until the user has successfully updated the data and the popup window is
> closed, he/she should not be able to get to the originator form.
>
> I hope someone has handle this situation and can help me.
>
> -Nimmi
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 22, 2001 3:27 PM
> To: [EMAIL PROTECTED]
> Subject: Re: How to handle a PopUp Form from another Form?
>
>
>
>
> Perhaps you can use a indexed link which brings up the data in the popup
> form.
>
> As for the second part, could you use javascript onload function in the
> original page, which checks to see if popup exists, and if it does puts
> focus back on it?
>
> Cheers,
>
> Dave
>
>
>
>
>
> Shamdasani Nimmi-ANS004 <[EMAIL PROTECTED]> on
> 10/22/2001 02:50:51 PM
>
> Please respond to [EMAIL PROTECTED]
>
> To:   "struts-user@jakarta. apache. org (E-mail)"
>   <[EMAIL PROTECTED]>
> cc:(bcc: David Hay/Lex/Lexmark)
> Subject:  How to handle a PopUp Form from another Form?
>
>
>
> Hi,
>
> I am looking for suggestions on how to handle this situation:
>
> I have a grid form (i.e., a form with tabular data). One of the columns of
> this tabular data is "PartNumber" which when clicked on a row should popup
> a form in a new window bringing up all the information about this part,
> e.g., description, dimensions,price, etc. from the database and the user
> should be able to modify this part data.
>
> 1.The popup form has to be just another ActionForm where the control
> returns to the form if any validation errors encountered.
>
> 2. The user should not be able to go back to the Originator form until
done
> with the popup form.
>
>
> Thanks.
>
> -Nimmi

_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com



RE: How to handle a PopUp Form from another Form?

2001-10-23 Thread Shamdasani Nimmi-ANS004

Margaret,

I appreciate your suggestion. I do have to support this functionality on all browsers. 
If it is possible, can you send me the sample code. I do have some questions but 
looking at the code would help clear some.

Thanks.

-Nimmi

-Original Message-
From: Martin, Margaret [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 23, 2001 10:46 AM
To: '[EMAIL PROTECTED]'
Subject: RE: How to handle a PopUp Form from another Form?


Nimmi -
In doing something similar to what you want to do I did the following:
1) Create javascript function to open a new modal window (I am only
concerned with supporting IE5.5, so using #showModalDialog works for me
2) create the link using plain ol' html, with an onClick handler that points
to my javascript function. Build the url to pass to the function using
html:rewrite which allows you to specify your forward, etc as you are
currently doing with the html:link tag
3) For the action that I open in the popup, I define both success and
failure pages. The success page contains javascript that looks for the
opener window and refreshes it, then closes the popup window.
4) using the #showModalDialog is the most effective way that I have found to
prevent the user from going back to the opener window. 

Hope this helps - 

Margaret
-Original Message-
From: Shamdasani Nimmi-ANS004 [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 22, 2001 4:53 PM
To: '[EMAIL PROTECTED]'
Subject: RE: How to handle a PopUp Form from another Form?


This is what my current html:link tag looks in my originator
form(SubmitQuotes.jsp):



where partDetails is an action class that retrieves the details for the part
from the database into an ActionForm "PartForm".
The mapping for partUpdate.do will have a forward defined to part.jsp which
displays data in partForm.

1. How do I specify in above html:link that part.jsp should open up in a new
window with no location bar, tool bar,etc (The forward in mappings only
allow TARGET parameter)?

2. The form action in part.jsp would be savePartInfo.do action class which
saves part changes to database. If the partForm passes all validations I
have to save the data and close this popup window and put control back to
SubmitQuotes.jsp. How would I close the popup window in action class
savePartInfo?
 
3. If I specified inputForm="part.jsp" in savePartInfo mapping, would it
correct to assume that if the partForm validations failed  the control would
return back to the popup window(part.jsp) and NOT to the SubmitQuotes.jsp? 

3. How do I make sure that while part.jsp is open the user cannot go back to
SubmitQuotes.jsp?


Hope this makes clear what I am trying to achieve.

-Nimmi

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 22, 2001 4:09 PM
To: [EMAIL PROTECTED]
Subject: RE: How to handle a PopUp Form from another Form?




I haven't done this before, but am not sure what the problem is.  You say
you
have an indexed link to partInfo.do, which you can bring up in a new window
using target=.  Submit etc from this window should return you to this window
if
error etc..

Where exactly is your difficulty?

Dave





Shamdasani Nimmi-ANS004 <[EMAIL PROTECTED]> on
10/22/2001 04:47:25 PM

Please respond to [EMAIL PROTECTED]

To:   "'[EMAIL PROTECTED]'"
      <[EMAIL PROTECTED]>
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  RE: How to handle a PopUp Form from another Form?



It is an indexed link. I already know how to get the indexed link to include
the
part number.

What I want to do is:

This link should point to an action class, say "partInfo.do", which
retrieves
the complete information about that part and puts it into an ActionForm and
then
forwards to a JSP in a "NEW" window(with no location bar,no tool bar,etc.)on
top
of the originator window.

User submits to this ActionForm have to follow the normal ActionForm
features,
i.e., bring back the part form screen in case of actionerrors. And If the
update
is successful then the part changes are to be saved to the database and the
popup window closed and user allowed to continue work on the originator
window

Until the user has successfully updated the data and the popup window is
closed,
he/she should not be able to get to the originator form.

I hope someone has handle this situation and can help me.

-Nimmi

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 22, 2001 3:27 PM
To: [EMAIL PROTECTED]
Subject: Re: How to handle a PopUp Form from another Form?




Perhaps you can use a indexed link which brings up the data in the popup
form.

As for the second part, could you use javascript onload function in the
original
page, which checks to see if popup exists, and if it does puts focus back on
it?

Cheers,

Dave





Shamdasani Nimmi-ANS004 <[EMAIL PROTECTED]> on
10/22/2001 02:50:51 PM

Please 

RE: How to handle a PopUp Form from another Form?

2001-10-23 Thread Martin, Margaret

Nimmi -
In doing something similar to what you want to do I did the following:
1) Create javascript function to open a new modal window (I am only
concerned with supporting IE5.5, so using #showModalDialog works for me
2) create the link using plain ol' html, with an onClick handler that points
to my javascript function. Build the url to pass to the function using
html:rewrite which allows you to specify your forward, etc as you are
currently doing with the html:link tag
3) For the action that I open in the popup, I define both success and
failure pages. The success page contains javascript that looks for the
opener window and refreshes it, then closes the popup window.
4) using the #showModalDialog is the most effective way that I have found to
prevent the user from going back to the opener window. 

Hope this helps - 

Margaret
-Original Message-
From: Shamdasani Nimmi-ANS004 [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 22, 2001 4:53 PM
To: '[EMAIL PROTECTED]'
Subject: RE: How to handle a PopUp Form from another Form?


This is what my current html:link tag looks in my originator
form(SubmitQuotes.jsp):



where partDetails is an action class that retrieves the details for the part
from the database into an ActionForm "PartForm".
The mapping for partUpdate.do will have a forward defined to part.jsp which
displays data in partForm.

1. How do I specify in above html:link that part.jsp should open up in a new
window with no location bar, tool bar,etc (The forward in mappings only
allow TARGET parameter)?

2. The form action in part.jsp would be savePartInfo.do action class which
saves part changes to database. If the partForm passes all validations I
have to save the data and close this popup window and put control back to
SubmitQuotes.jsp. How would I close the popup window in action class
savePartInfo?
 
3. If I specified inputForm="part.jsp" in savePartInfo mapping, would it
correct to assume that if the partForm validations failed  the control would
return back to the popup window(part.jsp) and NOT to the SubmitQuotes.jsp? 

3. How do I make sure that while part.jsp is open the user cannot go back to
SubmitQuotes.jsp?


Hope this makes clear what I am trying to achieve.

-Nimmi

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 22, 2001 4:09 PM
To: [EMAIL PROTECTED]
Subject: RE: How to handle a PopUp Form from another Form?




I haven't done this before, but am not sure what the problem is.  You say
you
have an indexed link to partInfo.do, which you can bring up in a new window
using target=.  Submit etc from this window should return you to this window
if
error etc..

Where exactly is your difficulty?

Dave





Shamdasani Nimmi-ANS004 <[EMAIL PROTECTED]> on
10/22/2001 04:47:25 PM

Please respond to [EMAIL PROTECTED]

To:   "'[EMAIL PROTECTED]'"
  <[EMAIL PROTECTED]>
cc:    (bcc: David Hay/Lex/Lexmark)
Subject:  RE: How to handle a PopUp Form from another Form?



It is an indexed link. I already know how to get the indexed link to include
the
part number.

What I want to do is:

This link should point to an action class, say "partInfo.do", which
retrieves
the complete information about that part and puts it into an ActionForm and
then
forwards to a JSP in a "NEW" window(with no location bar,no tool bar,etc.)on
top
of the originator window.

User submits to this ActionForm have to follow the normal ActionForm
features,
i.e., bring back the part form screen in case of actionerrors. And If the
update
is successful then the part changes are to be saved to the database and the
popup window closed and user allowed to continue work on the originator
window

Until the user has successfully updated the data and the popup window is
closed,
he/she should not be able to get to the originator form.

I hope someone has handle this situation and can help me.

-Nimmi

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 22, 2001 3:27 PM
To: [EMAIL PROTECTED]
Subject: Re: How to handle a PopUp Form from another Form?




Perhaps you can use a indexed link which brings up the data in the popup
form.

As for the second part, could you use javascript onload function in the
original
page, which checks to see if popup exists, and if it does puts focus back on
it?

Cheers,

Dave





Shamdasani Nimmi-ANS004 <[EMAIL PROTECTED]> on
10/22/2001 02:50:51 PM

Please respond to [EMAIL PROTECTED]

To:   "struts-user@jakarta. apache. org (E-mail)"
  <[EMAIL PROTECTED]>
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  How to handle a PopUp Form from another Form?



Hi,

I am looking for suggestions on how to handle this situation:

I have a grid form (i.e., a form with tabular data). One of the columns of
this
tabular data is "PartNumber" which when clicked on a row should popup a form
in
a new

RE: How to handle a PopUp Form from another Form?

2001-10-22 Thread Shamdasani Nimmi-ANS004

This is what my current html:link tag looks in my originator form(SubmitQuotes.jsp):



where partDetails is an action class that retrieves the details for the part from the 
database into an ActionForm "PartForm".
The mapping for partUpdate.do will have a forward defined to part.jsp which displays 
data in partForm.

1. How do I specify in above html:link that part.jsp should open up in a new window 
with no location bar, tool bar,etc (The forward in mappings only allow TARGET 
parameter)?

2. The form action in part.jsp would be savePartInfo.do action class which saves part 
changes to database. If the partForm passes all validations I have to save the data 
and close this popup window and put control back to SubmitQuotes.jsp. How would I 
close the popup window in action class savePartInfo?
 
3. If I specified inputForm="part.jsp" in savePartInfo mapping, would it correct to 
assume that if the partForm validations failed  the control would return back to the 
popup window(part.jsp) and NOT to the SubmitQuotes.jsp? 

3. How do I make sure that while part.jsp is open the user cannot go back to 
SubmitQuotes.jsp?


Hope this makes clear what I am trying to achieve.

-Nimmi

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 22, 2001 4:09 PM
To: [EMAIL PROTECTED]
Subject: RE: How to handle a PopUp Form from another Form?




I haven't done this before, but am not sure what the problem is.  You say you
have an indexed link to partInfo.do, which you can bring up in a new window
using target=.  Submit etc from this window should return you to this window if
error etc..

Where exactly is your difficulty?

Dave





Shamdasani Nimmi-ANS004 <[EMAIL PROTECTED]> on
10/22/2001 04:47:25 PM

Please respond to [EMAIL PROTECTED]

To:   "'[EMAIL PROTECTED]'"
  <[EMAIL PROTECTED]>
cc:    (bcc: David Hay/Lex/Lexmark)
Subject:  RE: How to handle a PopUp Form from another Form?



It is an indexed link. I already know how to get the indexed link to include the
part number.

What I want to do is:

This link should point to an action class, say "partInfo.do", which retrieves
the complete information about that part and puts it into an ActionForm and then
forwards to a JSP in a "NEW" window(with no location bar,no tool bar,etc.)on top
of the originator window.

User submits to this ActionForm have to follow the normal ActionForm features,
i.e., bring back the part form screen in case of actionerrors. And If the update
is successful then the part changes are to be saved to the database and the
popup window closed and user allowed to continue work on the originator window

Until the user has successfully updated the data and the popup window is closed,
he/she should not be able to get to the originator form.

I hope someone has handle this situation and can help me.

-Nimmi

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 22, 2001 3:27 PM
To: [EMAIL PROTECTED]
Subject: Re: How to handle a PopUp Form from another Form?




Perhaps you can use a indexed link which brings up the data in the popup form.

As for the second part, could you use javascript onload function in the original
page, which checks to see if popup exists, and if it does puts focus back on it?

Cheers,

Dave





Shamdasani Nimmi-ANS004 <[EMAIL PROTECTED]> on
10/22/2001 02:50:51 PM

Please respond to [EMAIL PROTECTED]

To:   "struts-user@jakarta. apache. org (E-mail)"
  <[EMAIL PROTECTED]>
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  How to handle a PopUp Form from another Form?



Hi,

I am looking for suggestions on how to handle this situation:

I have a grid form (i.e., a form with tabular data). One of the columns of this
tabular data is "PartNumber" which when clicked on a row should popup a form in
a new window bringing up all the information about this part, e.g., description,
dimensions,price, etc. from the database and the user should be able to modify
this part data.

1.The popup form has to be just another ActionForm where the control returns to
the form if any validation errors encountered.

2. The user should not be able to go back to the Originator form until done with
the popup form.


Thanks.

-Nimmi















RE: How to handle a PopUp Form from another Form?

2001-10-22 Thread Martin, Margaret

Only for IE variants... 
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/ref
erence/methods/showModalDialog.asp
not sure about comparable Netscape mechanisms. We've used this extensively,
but I will warn you that it is a pain... stay with a more "conventional" web
app as much as possible... trying to make an html-based app behave like a
windows app is truly frustrating...

Hope this helps...

Margaret

-Original Message-
From: Dan Hodge [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 22, 2001 4:51 PM
To: [EMAIL PROTECTED]
Subject: Re: How to handle a PopUp Form from another Form?


Correct me if I'm wrong, but it sounds like you want to popup window to 
behave like a modal dialog box. I can't think of any standard
javascript/HTML 
construct that would allow that, short of using alert() to pop up a modal 
dialog box, but that's not going to help you. Has anyone seen or built a web

app with this kind of functionality?

-Dan

On Monday 22 October 2001 16:47, you wrote:
> It is an indexed link. I already know how to get the indexed link to
> include the part number.
>
> What I want to do is:
>
> This link should point to an action class, say "partInfo.do", which
> retrieves the complete information about that part and puts it into an
> ActionForm and then forwards to a JSP in a "NEW" window(with no location
> bar,no tool bar,etc.)on top of the originator window.
>
> User submits to this ActionForm have to follow the normal ActionForm
> features, i.e., bring back the part form screen in case of actionerrors.
> And If the update is successful then the part changes are to be saved to
> the database and the popup window closed and user allowed to continue work
> on the originator window
>
> Until the user has successfully updated the data and the popup window is
> closed, he/she should not be able to get to the originator form.
>
> I hope someone has handle this situation and can help me.
>
> -Nimmi
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 22, 2001 3:27 PM
> To: [EMAIL PROTECTED]
> Subject: Re: How to handle a PopUp Form from another Form?
>
>
>
>
> Perhaps you can use a indexed link which brings up the data in the popup
> form.
>
> As for the second part, could you use javascript onload function in the
> original page, which checks to see if popup exists, and if it does puts
> focus back on it?
>
> Cheers,
>
> Dave
>
>
>
>
>
> Shamdasani Nimmi-ANS004 <[EMAIL PROTECTED]> on
> 10/22/2001 02:50:51 PM
>
> Please respond to [EMAIL PROTECTED]
>
> To:   "struts-user@jakarta. apache. org (E-mail)"
>   <[EMAIL PROTECTED]>
> cc:(bcc: David Hay/Lex/Lexmark)
> Subject:  How to handle a PopUp Form from another Form?
>
>
>
> Hi,
>
> I am looking for suggestions on how to handle this situation:
>
> I have a grid form (i.e., a form with tabular data). One of the columns of
> this tabular data is "PartNumber" which when clicked on a row should popup
> a form in a new window bringing up all the information about this part,
> e.g., description, dimensions,price, etc. from the database and the user
> should be able to modify this part data.
>
> 1.The popup form has to be just another ActionForm where the control
> returns to the form if any validation errors encountered.
>
> 2. The user should not be able to go back to the Originator form until
done
> with the popup form.
>
>
> Thanks.
>
> -Nimmi

_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com



Re: How to handle a PopUp Form from another Form?

2001-10-22 Thread Dan Hodge

Correct me if I'm wrong, but it sounds like you want to popup window to 
behave like a modal dialog box. I can't think of any standard javascript/HTML 
construct that would allow that, short of using alert() to pop up a modal 
dialog box, but that's not going to help you. Has anyone seen or built a web 
app with this kind of functionality?

-Dan

On Monday 22 October 2001 16:47, you wrote:
> It is an indexed link. I already know how to get the indexed link to
> include the part number.
>
> What I want to do is:
>
> This link should point to an action class, say "partInfo.do", which
> retrieves the complete information about that part and puts it into an
> ActionForm and then forwards to a JSP in a "NEW" window(with no location
> bar,no tool bar,etc.)on top of the originator window.
>
> User submits to this ActionForm have to follow the normal ActionForm
> features, i.e., bring back the part form screen in case of actionerrors.
> And If the update is successful then the part changes are to be saved to
> the database and the popup window closed and user allowed to continue work
> on the originator window
>
> Until the user has successfully updated the data and the popup window is
> closed, he/she should not be able to get to the originator form.
>
> I hope someone has handle this situation and can help me.
>
> -Nimmi
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 22, 2001 3:27 PM
> To: [EMAIL PROTECTED]
> Subject: Re: How to handle a PopUp Form from another Form?
>
>
>
>
> Perhaps you can use a indexed link which brings up the data in the popup
> form.
>
> As for the second part, could you use javascript onload function in the
> original page, which checks to see if popup exists, and if it does puts
> focus back on it?
>
> Cheers,
>
> Dave
>
>
>
>
>
> Shamdasani Nimmi-ANS004 <[EMAIL PROTECTED]> on
> 10/22/2001 02:50:51 PM
>
> Please respond to [EMAIL PROTECTED]
>
> To:   "struts-user@jakarta. apache. org (E-mail)"
>   <[EMAIL PROTECTED]>
> cc:(bcc: David Hay/Lex/Lexmark)
> Subject:  How to handle a PopUp Form from another Form?
>
>
>
> Hi,
>
> I am looking for suggestions on how to handle this situation:
>
> I have a grid form (i.e., a form with tabular data). One of the columns of
> this tabular data is "PartNumber" which when clicked on a row should popup
> a form in a new window bringing up all the information about this part,
> e.g., description, dimensions,price, etc. from the database and the user
> should be able to modify this part data.
>
> 1.The popup form has to be just another ActionForm where the control
> returns to the form if any validation errors encountered.
>
> 2. The user should not be able to go back to the Originator form until done
> with the popup form.
>
>
> Thanks.
>
> -Nimmi

_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




RE: How to handle a PopUp Form from another Form?

2001-10-22 Thread dhay



I haven't done this before, but am not sure what the problem is.  You say you
have an indexed link to partInfo.do, which you can bring up in a new window
using target=.  Submit etc from this window should return you to this window if
error etc..

Where exactly is your difficulty?

Dave





Shamdasani Nimmi-ANS004 <[EMAIL PROTECTED]> on
10/22/2001 04:47:25 PM

Please respond to [EMAIL PROTECTED]

To:   "'[EMAIL PROTECTED]'"
  <[EMAIL PROTECTED]>
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  RE: How to handle a PopUp Form from another Form?



It is an indexed link. I already know how to get the indexed link to include the
part number.

What I want to do is:

This link should point to an action class, say "partInfo.do", which retrieves
the complete information about that part and puts it into an ActionForm and then
forwards to a JSP in a "NEW" window(with no location bar,no tool bar,etc.)on top
of the originator window.

User submits to this ActionForm have to follow the normal ActionForm features,
i.e., bring back the part form screen in case of actionerrors. And If the update
is successful then the part changes are to be saved to the database and the
popup window closed and user allowed to continue work on the originator window

Until the user has successfully updated the data and the popup window is closed,
he/she should not be able to get to the originator form.

I hope someone has handle this situation and can help me.

-Nimmi

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 22, 2001 3:27 PM
To: [EMAIL PROTECTED]
Subject: Re: How to handle a PopUp Form from another Form?




Perhaps you can use a indexed link which brings up the data in the popup form.

As for the second part, could you use javascript onload function in the original
page, which checks to see if popup exists, and if it does puts focus back on it?

Cheers,

Dave





Shamdasani Nimmi-ANS004 <[EMAIL PROTECTED]> on
10/22/2001 02:50:51 PM

Please respond to [EMAIL PROTECTED]

To:   "struts-user@jakarta. apache. org (E-mail)"
  <[EMAIL PROTECTED]>
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  How to handle a PopUp Form from another Form?



Hi,

I am looking for suggestions on how to handle this situation:

I have a grid form (i.e., a form with tabular data). One of the columns of this
tabular data is "PartNumber" which when clicked on a row should popup a form in
a new window bringing up all the information about this part, e.g., description,
dimensions,price, etc. from the database and the user should be able to modify
this part data.

1.The popup form has to be just another ActionForm where the control returns to
the form if any validation errors encountered.

2. The user should not be able to go back to the Originator form until done with
the popup form.


Thanks.

-Nimmi
















RE: How to handle a PopUp Form from another Form?

2001-10-22 Thread Shamdasani Nimmi-ANS004

It is an indexed link. I already know how to get the indexed link to include the part 
number. 

What I want to do is:

This link should point to an action class, say "partInfo.do", which retrieves the 
complete information about that part and puts it into an ActionForm and then forwards 
to a JSP in a "NEW" window(with no location bar,no tool bar,etc.)on top of the 
originator window. 

User submits to this ActionForm have to follow the normal ActionForm features, i.e., 
bring back the part form screen in case of actionerrors. And If the update is 
successful then the part changes are to be saved to the database and the popup window 
closed and user allowed to continue work on the originator window

Until the user has successfully updated the data and the popup window is closed, 
he/she should not be able to get to the originator form.

I hope someone has handle this situation and can help me.

-Nimmi

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 22, 2001 3:27 PM
To: [EMAIL PROTECTED]
Subject: Re: How to handle a PopUp Form from another Form?




Perhaps you can use a indexed link which brings up the data in the popup form.

As for the second part, could you use javascript onload function in the original
page, which checks to see if popup exists, and if it does puts focus back on it?

Cheers,

Dave





Shamdasani Nimmi-ANS004 <[EMAIL PROTECTED]> on
10/22/2001 02:50:51 PM

Please respond to [EMAIL PROTECTED]

To:   "struts-user@jakarta. apache. org (E-mail)"
  <[EMAIL PROTECTED]>
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  How to handle a PopUp Form from another Form?



Hi,

I am looking for suggestions on how to handle this situation:

I have a grid form (i.e., a form with tabular data). One of the columns of this
tabular data is "PartNumber" which when clicked on a row should popup a form in
a new window bringing up all the information about this part, e.g., description,
dimensions,price, etc. from the database and the user should be able to modify
this part data.

1.The popup form has to be just another ActionForm where the control returns to
the form if any validation errors encountered.

2. The user should not be able to go back to the Originator form until done with
the popup form.


Thanks.

-Nimmi










Re: How to handle a PopUp Form from another Form?

2001-10-22 Thread dhay



Perhaps you can use a indexed link which brings up the data in the popup form.

As for the second part, could you use javascript onload function in the original
page, which checks to see if popup exists, and if it does puts focus back on it?

Cheers,

Dave





Shamdasani Nimmi-ANS004 <[EMAIL PROTECTED]> on
10/22/2001 02:50:51 PM

Please respond to [EMAIL PROTECTED]

To:   "struts-user@jakarta. apache. org (E-mail)"
  <[EMAIL PROTECTED]>
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  How to handle a PopUp Form from another Form?



Hi,

I am looking for suggestions on how to handle this situation:

I have a grid form (i.e., a form with tabular data). One of the columns of this
tabular data is "PartNumber" which when clicked on a row should popup a form in
a new window bringing up all the information about this part, e.g., description,
dimensions,price, etc. from the database and the user should be able to modify
this part data.

1.The popup form has to be just another ActionForm where the control returns to
the form if any validation errors encountered.

2. The user should not be able to go back to the Originator form until done with
the popup form.


Thanks.

-Nimmi











RE: How to handle a PopUp Form from another Form?

2001-10-22 Thread Shamdasani Nimmi-ANS004

Yes I do know how to open the popup form in a new window. That's the easy part. How to 
handle the popup form is the problem.

-Nimmi

-Original Message-
From: Alexander Jesse [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 22, 2001 2:01 PM
To: struts-user
Subject: RE: How to handle a PopUp Form from another Form?


Hi,

part one is not really a problem: just add target="_a_window_name_" to the link.

part two is where it gets tough...I do not know of a html-construct allowing for this. 
Maybe you could create a javascript that will put the focus on "_a_window_name_ if it 
exists...

hth
Alexander

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 22, 2001 8:51 PM
To: [EMAIL PROTECTED]
Subject: How to handle a PopUp Form from another Form?


Hi,

I am looking for suggestions on how to handle this situation:

I have a grid form (i.e., a form with tabular data). One of the columns of this 
tabular data is "PartNumber" which when clicked on a row should popup a form in a new 
window bringing up all the information about this part, e.g., description, 
dimensions,price, etc. from the database and the user should be able to modify this 
part data.

1.The popup form has to be just another ActionForm where the control returns to the 
form if any validation errors encountered.

2. The user should not be able to go back to the Originator form until done with the 
popup form.


Thanks.

-Nimmi



RE: How to handle a PopUp Form from another Form?

2001-10-22 Thread Alexander Jesse

Hi,

part one is not really a problem: just add target="_a_window_name_" to the link.

part two is where it gets tough...I do not know of a html-construct allowing for this. 
Maybe you could create a javascript that will put the focus on "_a_window_name_ if it 
exists...

hth
Alexander

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 22, 2001 8:51 PM
To: [EMAIL PROTECTED]
Subject: How to handle a PopUp Form from another Form?


Hi,

I am looking for suggestions on how to handle this situation:

I have a grid form (i.e., a form with tabular data). One of the columns of this 
tabular data is "PartNumber" which when clicked on a row should popup a form in a new 
window bringing up all the information about this part, e.g., description, 
dimensions,price, etc. from the database and the user should be able to modify this 
part data.

1.The popup form has to be just another ActionForm where the control returns to the 
form if any validation errors encountered.

2. The user should not be able to go back to the Originator form until done with the 
popup form.


Thanks.

-Nimmi