updating frames...

  • Thread starter Thread starter Nimbus Dorkus
  • Start date Start date
N

Nimbus Dorkus

image the following:

fs_Main
|
-------------------------
| |
frmControls frmOverview
*
\
\
setup.aspx



if i call a windows.open("setup.aspx"....) in frmControls, and then change
some stuff on the setup.aspx page which affects the frmOverview, how do i
refresh the frmOverview from the setup.aspx page?

the variables i'm using are all session so can be picked up from anywhere,
all i need to do is call reload or href on the frmOverview from setup.aspx.

I've tried:-
setup.aspx call to
"parent.parent.frmOverview.location.href='overview.aspx'" and get
"parent.parent.frmOverview.location" is not a valid object or is null
setup.aspx call to " parent.refreshOverview()" where refreshOverview()
exists in frmControls client side script as a function which calls
"parent.frmOverview.location.href=...." and get, in essence, "refreshGrid()
isn't valid on parent"

thanks.
 
Hi

Access the parent window with window.opener

window.opener.parent.frmOverview.location.href = "pagetogo.aspx":
Or
window.opener.parent.frmOverview.location.reload(true);
Call a function
window.opener.parent.frmOverview.FUNCTION();

--
Best Regards
Vidar Petursson
==============================
Microsoft Internet Client & Controls MVP
==============================
 
Works a treat, thanks!!!

Vidar Petursson said:
Hi

Access the parent window with window.opener

window.opener.parent.frmOverview.location.href = "pagetogo.aspx":
Or
window.opener.parent.frmOverview.location.reload(true);
Call a function
window.opener.parent.frmOverview.FUNCTION();

--
Best Regards
Vidar Petursson
==============================
Microsoft Internet Client & Controls MVP
==============================
 
Back
Top