Click to See Complete Forum and Search --> : want to submit a form and target the results to a modal dialog window...can i?..


suganya
09-16-2003, 12:36 PM
i want to submit a form in a hidden frame and target the results to a modal dialog window (defining the properties like height widht etc.....) .....is that possible?..

i said target = target_windowname in my html form action...
but it is not opening in a modal dialog window, instead, it is opening in a browser window as a popup...

this is my code:
function popupAddlColumnDialog() {

document.getElementById('retrieveButton').focus();
alert("frame is " + parent.addColumnsSubmit.name);
parent.addColumnsSubmit.doOnClick();
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;'
var window = addColumnsWindow;
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.');
}
}

thankyou