How do I refresh an ASPX form displayed in a frame?

G

Guest

Hello:

I have a weblayout that uses frames. It has three frames, a header, a column
on the left that displays the menu (that's a aspx form) and a column on the
right that displays the application data.

When I have an application form open in the right frame, I would like to
reload the menu aspx.

Can somebody tell me how I can do this? Thanks.

Venki
 
M

mszanto

Assuming that you've assigned a name to each frame...

top.<framename>.document.location = <url>
 
G

Guest

Hi:

Can you elaborate on your suggestion?

I confess I don't know what Top means. Is it a HTM tag or a vb.net command?

The frames are named. The name of the frame that displays the menu is
"contents" and the menu form is "navigation.aspx"

Thanks for your help.

Venki
 
M

mszanto

top = window.top

It's the top most page in the current window.
For example, you could have a page nested in a page nested in a page
(using IFrames) etc and you could always refer to the top most page
(your frame layout) from any of those pages using window.top.

If you simply want to reload the contents of the window using the exact
same contents you can use top.<framename>.document.location =
window.location. This will include the original query string. If you
want to exclude the query string use window.location.pathname.

mike
 

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

Forum statistics

Threads
473,970
Messages
2,570,162
Members
46,711
Latest member
DorothyFor

Latest Threads

Top