Window.showModalDialog
-
Hi, I am displaying a page using "window.showmodaldialog" to show some help to the user. Now I want to retrive the values selected by the user. I am using tables and tds to display the help. can any one guide me on how to get the user selection in the parent form from where this dialog is opend?? Chintan
-
Hi, I am displaying a page using "window.showmodaldialog" to show some help to the user. Now I want to retrive the values selected by the user. I am using tables and tds to display the help. can any one guide me on how to get the user selection in the parent form from where this dialog is opend?? Chintan
chintan1979 wrote: I am displaying a page using "window.showmodaldialog" to show some help to the user. Now I want to retrive the values selected by the user. I am using tables and tds to display the help. can any one guide me on how to get the user selection in the parent form from where this dialog is opend?? You may need to fiddle around with this a bit. window.showModalDialog can return a value (see the
returnValue
property), which could be stuffed into a variable, or the value a hidden INPUT field for subsequent posting back, or used in a querystring to load another page (setlocation.href
). Alternatively, post-back in the modal dialog (remember to set<base target=_self>
), and store the values in a database or something.
Ian Darling "If we've learned anything from history, it's that those who feed trolls are condemned to repetitive conversations. Or something like that." - Eric Lippert
-
Hi, I am displaying a page using "window.showmodaldialog" to show some help to the user. Now I want to retrive the values selected by the user. I am using tables and tds to display the help. can any one guide me on how to get the user selection in the parent form from where this dialog is opend?? Chintan
I can't remember if a modal dialog passes on the parent but give this a bash:
window.opener.document.getElementById("controlID").value
regards, Paul Watson Bluegrass South Africa Chris Maunder wrote: "I'd rather cover myself in honey and lie on an ant's nest than commit myself to it publicly." Jon Sagara replied: "I think we've all been in that situation before." Crikey! ain't life grand?