updating frames...

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.
 
V

Vidar Petursson

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
==============================
 
D

...Dan...

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
==============================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,085
Messages
2,570,597
Members
47,218
Latest member
GracieDebo

Latest Threads

Top