Loading an aspx page in a fram from another aspx page

G

Guest

Hi All,
I have a web application who's index.htm page is a frameset containing 2
frames (Frame1 & Frame2). I have each frames SRC property set to an aspx
page. I would like to re-load the aspx page in Frame1 when a button is
pressed on the aspx page in Frame2.

Can this be done?

RML
 
G

Guest

I would do it this way:

In the index.htm page, add this Javascript function:

function RefreshChildFrame(childFrame)
{
document.frames[childFrame].RefreshMe();
}

In the page in Frame1, add this Javascript function:

function RefreshMe()
{
document.location.href = document.location.href;
}

Finally, in the page in Frame2, on the onclick event of your "refresh"
button, put this:

parent.RefreshChildFrame(1);


Hope that helps.
 

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,733
Messages
2,569,440
Members
44,832
Latest member
GlennSmall

Latest Threads

Top