Page 1 of 1

frames do not display

Posted: Tue Aug 23, 2005 5:05 am
by raghavan20

Code: Select all

//index.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Blogger Main Page</title>
<link href = "cms.css" rel="stylesheet" type="text/css" />
</head>
<body>
<frameset cols="20%,80%">
	<frame src="userMenus.php" name = "userMenus"/>
	<frame src="listBlogs.php" name = "mainFrame"/>
</frameset>
</body>
</html>
I have got enough code at the sources userMenus.php and listBlogs.php but for some reason it does not display anything. why???
link: http://raghavan.allhyper.com
username: raghavan20 password: visitor
any help is highly welcomed :)

Posted: Tue Aug 23, 2005 5:44 am
by anjanesh
You have 2 <html> start elements and 2 <head></head> blocks.
That may not the be the reason but you defintely need to remove the reapeated ones.

Posted: Tue Aug 23, 2005 5:58 am
by raghavan20
thats been corrected now

Posted: Tue Aug 23, 2005 6:09 am
by anjanesh
Get rid of <body> </body> tags - I dont think they are required for frameset's page.

Posted: Tue Aug 23, 2005 6:24 am
by bladecatcher
G'day,
The frameset should be in the the head not the body.
The alternate to the frameset goes in the body i.e. "Your browser does not support frames, sorry mate".

Code: Select all

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
	<title>Untitled</title>
</head>

<!-- frames -->
<frameset rows="30%,*" frameborder="1">
    <frame src="msgdefault.html" name="msg" id="msg" scrolling="Auto" marginwidth="50" marginheight="50">
    <frame src="posts-01.html" name="threads" id="threads" frameborder="0" scrolling="Auto" marginwidth="10" marginheight="10">
</frameset>

<body>
<H1>Welcome to my Page</H1>
<BR>
This page looks better in a browser that can display frames.

</body>
</html>
hth
bladecatcher

a little Wooohooo, I actually helped someone :-)

Posted: Tue Aug 23, 2005 10:20 am
by wwwapu
A little correction

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> 
<title>Blogger Main Page</title> 
<link href = "cms.css" rel="stylesheet" type="text/css" /> 
</head> 
<frameset cols="20%,80%"> 
   <frame src="userMenus.php" name = "userMenus"/> 
   <frame src="listBlogs.php" name = "mainFrame"/>
<noframes>
<body>
<p>
The alternate to the frameset goes in the noframes
</p>
</body>
</noframes>
</frameset>
</html>

Posted: Tue Aug 23, 2005 5:54 pm
by raghavan20
thanks for your help guys...it works now!!!

I have another doubt to be clarified. On the left side frame, i have a log out link and if some body clicks on it then it should replace these frames and open the logout frame as a single page.

i hope you understand wot i mean :)

Posted: Tue Aug 23, 2005 6:04 pm
by raghavan20
alright...target="_top" does that for me