I am creating a modal dialog box. Everything in the dialog box is modal. I want to return some value from this modal dialog box to the parent window. The problem is it is always returning "UNDEFINED"
Since I am forming this html dynamically it is not showing anything when i try to get the value of window.returnValue.
Has anybody come across a similar issue please lemme know? CANCEL </BUTTON></TD>" +" </TR>" +" </TABLE>";
var MyArgs = window.showModalDialog(pg,window.self,WinSettings); //var MyArgs = window.open(pg,'','');
</script> </HEAD> </HTML> [/CODE]
Animesh Saxena<br /> <br />Open Source Developer
Joined: May 02, 2006
In the modal window, the incoming parameters are found in window.dialogArguments and the return value (result) should be placed in window.returnValue
Back in the main page, the return value (result) is found by var result = window.showModalDialog(sURL,vArgs,sFeats);
Joined: Jun 30, 2006
Hope you know that window.showModalDialog is not supported by Mozilla Firefox or Mozilla based browsers in general.