Load a new page into Frame on load of another Frame

Load a new page into Frame on load of another Frame

Post by Keith War » Tue, 28 Oct 2003 20:16:51


Hi,

I have three frames. When a page is loaded into the BottomFrame I want to
reload a page into the RightFrame.

I have tried to use onload='LoadFrame()' in the body tag to call A
javascript function.

Then

Function LoadFrame() {
RightFrame.location.replace("menu.asp");
}

Now I can get it to do self but not the RightFrame. Also I want to send
Variables to the page as you do with the go to detail page server behaviour,
so how do I embed Vbscript in Javascript.

Thanks

Keith
 
 
 

Load a new page into Frame on load of another Frame

Post by Dan Vendel » Tue, 28 Oct 2003 20:41:38


h

Now you're dealing with something that makes frames useless: Even if you
make two frames change (see below), the user will only be able to
re-load *ONE* of them when he hits the browser's "Back" button. That
means that your site will be out of synch, funny or strange at best,
completely enigmatic at worse, and that will of course reflect on you or
whoever stands for the site.

Get out of frames and use regular, flat pages!!!!!!!!!!!!

If you want to change two frames in one go, add the "Go To URL" behavior
to the link: One page changes as usual, the other changes thanks to the
behavior.

This Vbscript question you have, I can't answer.

--
Dan Vendel - *GOF*
http://www.yqcomputer.com/
Contact me directly by clicking here:
http://www.yqcomputer.com/
Formmail tutorial:
http://www.yqcomputer.com/
Nested table demonstration:
http://www.yqcomputer.com/
Search Engine Optimization & Rank Control Utility:
http://www.yqcomputer.com/

 
 
 

Load a new page into Frame on load of another Frame

Post by mick_whit » Tue, 28 Oct 2003 22:25:52

function LoadFrame() {
top.RightFrame.location.replace("menu.asp");
}

Mick
 
 
 

Load a new page into Frame on load of another Frame

Post by Thierry Ko » Wed, 29 Oct 2003 01:06:45

function LoadFrame() {
// some browsers don't support the replace() method
if (document.images) {
// to prevent problems with some versions of Opera, use an absolute URI

top.RightFrame.location.replace(' http://www.yqcomputer.com/
hn&lastName=Smith');
}else{
top.RightFrame.location.href = 'menu.asp?firstName=John&lastName=Smith';
}
}

HTH,
--
Thierry
http://www.yqcomputer.com/ | Frames Quiz
http://www.yqcomputer.com/ | About Frames and Framesets
http://www.yqcomputer.com/ | CSS-P version
www.TJKAntiques.com | Buy yourself some French Antiques ;o)




behaviour,