Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

window.opener IS NOT AN OBJECT -----HELP!!!!!!!!

Status
Not open for further replies.

ppepin

IS-IT--Management
Mar 13, 2001
36
US
I have an open window that opens a new window when the user clicks on a button. So far, so good.

In the newly opened window, if the user should select an option, I need to reference the first window using window.opener. This is my code:

<!--
function Resubmit(){
window.opener.rpt_criteria.action=&quot;rpt_results_time.asp?method=export&quot;;
window.opener.rpt_criteria.submit();
MyReset();
}
// -->

This works fine on Windows98 using IE 5.5, but when the same process is done on a Win2k machine running IE 5.0, this function fails with a javascript error stating:

window.opener.rpt_criteria is not an object.

Can anyone help me??????? I am at a complete loss.

Thanks.
 
create a funcion on the parent browser

function thefunc() {
your code
}

and after call it from the child window:

window.opener.thefunc()

good luck
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top