karakav
asked on
ASP.NET,Javascript,Ajax: How to get a string from window.showModalDialog
Hi there,
I would like to know how I can get a string from a modal dialog and use it on the parent form using window.showModalDialog
I would like to know how I can get a string from a modal dialog and use it on the parent form using window.showModalDialog
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
use window.returnValue in the document loaded in showModalDialog window. That can be accessed as a return value of the method call like below
var returnData = window.showModalDialog("te st.html");
Thanks
Ajitha
var returnData = window.showModalDialog("te
Thanks
Ajitha
ASKER
Thanks.
var retVal = window.showModalDialog("Sh
and in the modal dialog before closing the window you have to set
returnValue = "your return string should be specified here";