Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FRAME MANAGEMENT

Status
Not open for further replies.

TEXASTIGER

Technical User
Jul 17, 2003
5
US
I have 3 Frames Left Middle Right.
The page in Right frame contains the menu. This works well and when a menu item is selected the content is loaded in the Middle Frame.
What I want to do is also load a separate page in the left frame that is specifically linked to the document loaded in the Middle frame a one to one relationship.

I believe the onload event can do it but for some reason I just cannot get it to work with href & target. Here is the code line:
<BODY OnLoad=""target="left" "href="AFRICA/AFR_Algeria.htm">this is a test</a></p>"

Any Suggestions?

Thanks




 
try this
Code:
<body onLoad="parent.left.href='AFRICA/AFR_Algeria.htm'">
I didn't test this so I'm pretty sure it won't work right off the bat but the correct code is somewhere along those lines.
Hope that helps a little
jammer1221
 
Jammer1221

In Debug it indicates that Parent is undefined when used with onOpen.

Maybe I need to say more.

Website base is three Frames Top, Center, Bottom. Top is used for Logo / date / time etc.
Center is for Main Menu Structure and items there load pages into bottom
Bottom contains all content pages which typically will be 2 or three synchronized frames Left, Left1, Right

Right contains the Menu that will load Left1, when document in left1 loads an associated document will load into Left
That is the plan.
This code is the Main Content Frame page.
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>World News Main</title>
</head>

<frameset cols="20%,60%,*" border="0" frameborder="0">
<frame name="left" scrolling="auto" src="Ads_Pages/Ad_Intro.htm">
<frame name="left1" src="WorldNewsIntro.htm" scrolling="auto">
<frame name="right" src="NEWS_MAIN_MENU.htm" target="left1" scrolling="auto">
<noframes>
<body>

<p>This page uses frames, but your browser doesn't support them.</p>

</body>
</noframes>
</frameset>

</html>

Code for the page that is suppose to load the document into the Left frame.

<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:eek:="urn:schemas-microsoft-com:eek:ffice:eek:ffice"
xmlns="
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<link rel="File-List" href="WorldNewsIntro_files/filelist.xml">

<title>New Page 1</title>

</head>

<body onLoad="onLoad="parent.left.href='Ads/Ad_Intro2.htm'" bgcolor="#6699FF">

</body>

</html>
 
Ok try putting this in the document that loads the left frame(left1)
Code:
<html xmlns:v="urn:schemas-microsoft-com:vml" 
xmlns:o="urn:schemas-microsoft-com:office:office" 
xmlns="[URL unfurl="true"]http://www.w3.org/TR/REC-html40">[/URL]

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<link rel="File-List" href="WorldNewsIntro_files/filelist.xml">

<title>New Page 1</title>

</head>

<body onLoad="onLoad="parent.left.location.href='Ads/Ad_Intro2.htm'" bgcolor="#6699FF">

</body>

</html>
I'm pretty sure that will work
 
Jammer1221
I am uploading the recent revisions to
Check it out, I still cannot get to work. when I save the file the following line of code goes away.

<link rel="File-List" href="WorldNewsIntro_files/filelist.xml">

Baffled bewildered and bemused.

Thanks for all the help. Sorry to be a pest.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top