Click to See Complete Forum and Search --> : Object doesn't support this property or method


suganya
09-16-2003, 11:37 AM
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;resiz able: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();
}

Khalid Ali
09-16-2003, 11:58 AM
Here is what I think it should be

parent.addColumnsSubmit.doOnClick();

in the line above, it will work if

parent is frameset page that has a frame name
addColumnsSubmit

and in this frames src page there is a js function

doOnClick()

if any of the things above is not true then it should give you the error