Click to See Complete Forum and Search --> : how can model dialog box call functions in parent window?


mini_dumbo
11-27-2002, 10:22 PM
We have created a modal dialog box with the button "yes" and "no", but how do we link the buttons back to the parent window to perform functions??
Originally we created something like this when we had used a pop-up window instead of a modal dialog box:

<input type="button" name="Yes" value="OK" onclick="window.opener.showLabel('y')">

It worked for the pop-up window but now this code generates an error and doesn't let us link back to the parent window. Does anybody know how the modal dialog box functions to pass value back to parent window or to call functions that are in the parent window?? We'll be greatful for any help given!

Bo & Vic :p