i have a frameset with 3 frames.
frame1 has some buttons
frame2 will show results
frame3 is hidden
On click of button3 in frame1, i submit a form in the hidden frame frame3 and target the results to a pop-up window.
my code for this is:
in frame2 i have a function onclick:
function popupAddlColumnDialog() {
window.open(“”,”addColumnsWindow”,”width=700px,height=700px,scrollbars=yes,status=no,menubar=no,toolbar=no,resizable=no,center=yes,location=no”);
parent.frame3.doOnClick();
}
in frame3 doOnclick():
function doOnClick() {
document.getElementById(“form3name”).submit();
}
all these work perfectly fine.
the problem is…..
there is a function in frame1 which i want to call in my popup…
i tried: (in my onload function of the popup)window.opener.parent.criteriaFrame.savedSearchName.value;
in the popup i have:
function performOnLoad()
{
var l_savedSearchName = window.opener.parent.criteriaFrame.savedSearchName.value;
document.addColumn.savedSearchName.value = l_savedSearchName.value;
self.focus();
}