Hi
2 ways to post to a dialog
1 Place a iframe/frameset in the dialog and host the page there
2 <base target="_self">
Returning value to the opener:
( Iframe )
parent.window.returnValue = theValue;
parent.window.close();
( Frameset )
top.returnValue = theValue;
top.close();
(<base target="_self"> )
window.returnValue = theValue;
window.close();
Getting value in the opener
var res = showModalDialog(........);
if(typeof(res) != "undefined") alert(res);
If returning more than 1 value you can use comma delimited.....
More info
http://msdn.microsoft.com/library/de...ence_entry.asp http://msdn.microsoft.com/library/de...oriJScript.asp
--
Best Regards
Vidar Petursson
==============================
Microsoft Internet Client & Controls MVP
==============================
"John" <a@b.com> wrote in message
news:OK*************@TK2MSFTNGP12.phx.gbl...
Hi all,
I have a modal dialog window from which a user selects a few rows from a
datagrid and then clicks on an image button. My question is two-fold:
1. How do I post data back to the same dialog window?
2. The dialog window in question was, in turn, created from a dialog
window. I need to post data back to that one too (that which the user selected in
the top-most dialog window). How do I send data back to this window?
Regards
John.