RE: clicking a hyperlink to populate a field

2003-07-21 Thread Paul McCulloch
This is possible. Put the original form into Session scope so that you don't lose the data the user enters prior to using the 'Find School' button. Each match could be a hyperlink to a UseSchoolAction, passing the ID of the school to use as a parameter. The UseSchoolAction could then set the

RE: clicking a hyperlink to populate a field

2003-07-21 Thread Alex Shneyderman
Sure, this is what I do. An easy way: Use Javascript. When you pop up the window and user finds his/her school you need to put the following code in your link onclick event: Javascript: parent.document.form ['formname'].schoolField.value='Whatever the name of your school'; window.close ();

RE: clicking a hyperlink to populate a field

2003-07-21 Thread Amit Kirdatt
The parent window would have to be refreshed though for the selected value to show up on the parent form On how to do this here is a link http://forums.devshed.com/archive/1/2002/11/2/46942 I am sure there are other resourcesgoogle it! -Original Message- From: Paul McCulloch

RE: clicking a hyperlink to populate a field

2003-07-21 Thread Paul McCulloch
I was going on the basis of only a single browser window being open. The one window shows the initial form, then the search, then back to the original form. -Original Message- From: Amit Kirdatt [mailto:[EMAIL PROTECTED] Sent: 21 July 2003 15:58 To: 'Struts Users Mailing List' Subject: