loading two different pages into two different frames with one cli

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I want to how to load two different pages into two different frames with one
click of a button.. Is this possible ?

Roopa
 
Yes, it's possible. The problem is that if you do that, and the visitor
then clicks the back button on the browser, only the most recent frame
change will revert. Now your frameset is out of synch. This is one of the
many reasons that frames are rarely the optimal layout choice. Are you sure
you need to use them?
 
Thanks and I think I'd like to give a try and check.. how is it done ? Am
curious now.

Roopa
 
I dunno if FP has a behavior to do it. Dreamweaver does it this way -

<script type="text/JavaScript">
<!--
function MM_goToURL() { //v3.0
var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
for (i=0; i<(args.length-1); i+=2)
eval(args+".location='"+args[i+1]+"'");
}
//-->
</script>
(that goes in the head of the page)

<a href="#"
onClick="MM_goToURL('parent.frames[\'mainFrame\']','page1.html','parent.frames[\'bottomFrame\']','page2.html');return
document.MM_returnValue">Link</a>
(that is an example link in the body - assuming you have two frames named
"mainFrame" and "bottomFrame")
 
See http://irt.org/script/frame.htm

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| Thanks and I think I'd like to give a try and check.. how is it done ? Am
| curious now.
|
| Roopa
|
| "Murray" wrote:
|
| > Yes, it's possible. The problem is that if you do that, and the visitor
| > then clicks the back button on the browser, only the most recent frame
| > change will revert. Now your frameset is out of synch. This is one of the
| > many reasons that frames are rarely the optimal layout choice. Are you sure
| > you need to use them?
| >
| > --
| > Murray
| > ============
| >
| > | > > Hi,
| > >
| > > I want to how to load two different pages into two different frames with
| > > one
| > > click of a button.. Is this possible ?
| > >
| > > Roopa
| >
| >
| >
 

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

Back
Top