i have a search window which has several frames.
onclicl of a button (say BUTTON001) on the 3rd frame
1. i have to open up a modal dialog window
2. submit a form (to call an action) mapped to it…
it is working fine the first time….or when i come back to my search window again frm the start of the application….
but if i close my popup and comeback and click on the button BUTTON001 again, it keeps saying “Object doesn’t support this property or method” on line ” parent.addColumnsSubmit.doOnClick(); ” in my popupAddlColumnDialog() function. i dont understand what the problem is…can anybody help me please…
thankyou very much…
/**
* Pops up the Additional Columns “modal” dialog
function popupAddlColumnDialog() {
document.getElementById(‘retrieveButton’).focus();
var METHOD = “as_criteria.js | popupAddlColumnDialog()”;
if (window.showModalDialog) {
var l_dlgOptions = ‘dialogWidth:700px;dialogHeight:700px;scroll:yes;dialogHide:yes;status:no;unadorned:no;help:no;resizable:no;center:yes;’
window.showModalDialog(parent.OPEN_ADDCOLUMN_JSP, window, l_dlgOptions);
} else {
// FIXME: Need to add this error message to gsdb-web-errors.properties
parent.error(METHOD, ‘modal dialog not supported.’);
}
parent.addColumnsSubmit.doOnClick();
}