The directions:
The parent calls window.showModalDialog("child.aspx",...)
If child.aspx doesn't take any server-side action on clicking "Submit", make
"Submit" a simple html button and handle onclick event in javascript. In
javascript event handler make an object encapsulating the selected values
you want to pass back to the parent form. Assign this object to
window.returnValue and call window.close();
The parent will get the object as the return value of the showModalDialog
call. It can take separate selected value contained in the object and assign
them to the textbox's value property.
Eliyahu
"Jason" <j@NoSpamPlease.org> wrote in message
news:ep********************************@4ax.com...
hi all,
when a user click a button on 'parent' page, then 'child' page pop-up and
get
focusd. When user select data from two dropdown box (or other controls),
then
they click submit button at 'child' page, then the 'child' page closed
itself
and return values to 'parent' page (two textbox).
How can I do this in JavaScript? The reason I am using JavaScript because
other
programmers web apps will also call my 'child' page too.
Thanks in advance.