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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Frames

Status
Not open for further replies.

calista

Programmer
Jan 24, 2001
545
US
I am having trouble with frames. I get a blank page when i try to browse my page. The code is below. I must be missing something obvious.

Code:
<html>
<head>
	<title>Index</title>
</head>
<body>
<!-- frames -->
<frameset  cols=&quot;13%,*&quot;>
    <frame name=&quot;Menu&quot; src=&quot;../../CFDOCS/TLGD_Intranet/MenuPage.cfm&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; scrolling=&quot;auto&quot; frameborder=&quot;1&quot;>
    <frame name=&quot;Main&quot; src=&quot;../../CFDOCS/TLGD_Intranet/HomePage.cfm&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; scrolling=&quot;auto&quot; frameborder=&quot;1&quot;>
</frameset>
</body>
</html>

Both pages I am trying to feed into these frames look OK if viewed individually, but if I try to view the page whose code is above, I get a blank page. Help! X-)
 
Here's another interesting development. Just to experiment, I took out the file names, so now, the code looks like this:
Code:
<html>
<head>
	<title>Index</title>
</head>
<body>
<!-- frames -->
<frameset  cols=&quot;13%,*&quot;>
    <frame name=&quot;Menu&quot; src=&quot;&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; scrolling=&quot;auto&quot; frameborder=&quot;1&quot;>
    <frame name=&quot;Main&quot; src=&quot;&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; scrolling=&quot;auto&quot; frameborder=&quot;1&quot;>
</frameset>
</body>
</html>

If I run this under CF, I get a blank page, as before. If I copy this code into Notepad, it produces two blank frames, which is what it should do. Any ideas?
 
Remove the body tags, it'll work.

<head>
<title>Index</title>
</head>
<!-- frames -->
<frameset cols=&quot;13%,*&quot;>
<frame name=&quot;Menu&quot; src=&quot;../../CFDOCS/TLGD_Intranet/MenuPage.cfm&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; scrolling=&quot;auto&quot; frameborder=&quot;1&quot;>
<frame name=&quot;Main&quot; src=&quot;../../CFDOCS/TLGD_Intranet/HomePage.cfm&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; scrolling=&quot;auto&quot; frameborder=&quot;1&quot;>
</frameset>

</html>
 
Thanks, Scooter! That did the trick. Now I won't have to worry about all weekend! :-D
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top