Page 1 of 1
7 Replies - 6167 Views - Last Post: 17 June 2003 - 05:20 PM
Posted 17 June 2003 - 12:47 PM
Here is what I would like to do, if possible.....
So in other words... User clicks icon in window 1. Window 2 pops up. User selects a link in Window 2. Window 2 closes. The value of the link is put into a textbox on Window 1. Then...I want the button next to the textbox on Window 1 to be automatically pressed.
Any help is appreciated... thank you!
Posted 17 June 2003 - 01:51 PM
Posted 17 June 2003 - 02:09 PM
gneato, on Jun 17 2003, 01:51 PM, said:
The other button (that is on the original page - window 1) takes the value of whatever was put into the textbox, and sends it into a mainframe to return a bunch of values. That work is already done.
The user has the option to click a search icon on window 1 to help them lookup the codes
they need to put into the window 1 textbox. So I set it up so that a new window pops up.
Then the user searches by name.. returning a list of codes they choose from. They click the code in the list, and the code is returned to the window 1 textbox. Then the user must click the code search button to perform the retrieval of information based on the code in the textbox.
I know that the user just has to click a button, how lazy can we be now...!
But still, if there is a way I can somehow push it for them to perform the search that
would be good.
Is there some sort of "window close" script that could push the button?
ie. Window 2 closes, and pushes a button on Window 1.
Posted 17 June 2003 - 02:24 PM
<body onbeforeunload="dothis();" onunload="dothat();">
Keep in mind that you _do_not_ want to "push" the button for them, you want to carry out the action that the button does when it's pressed.
Posted 17 June 2003 - 02:34 PM
The button's ID = VbtnGetVendor
The button's event is: VbtnGetVendor_Click
When Window 2 Closes... I would like the 'VbtnGetVendor_Click' subroutine
of Window 1 to be called. How would I use the script example you gave me
to perform this? Which of the 'Load' properties would I use? Thanks
<body onbeforeunload="'VbtnGetVendor_Click" onunload="'VbtnGetVendor_Click">