frames do not display

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
raghavan20
DevNet Resident
Posts: 1451
Joined: Sat Jun 11, 2005 6:57 am
Location: London, UK
Contact:

frames do not display

Post 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 :)
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post 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.
User avatar
raghavan20
DevNet Resident
Posts: 1451
Joined: Sat Jun 11, 2005 6:57 am
Location: London, UK
Contact:

Post by raghavan20 »

thats been corrected now
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post by anjanesh »

Get rid of <body> </body> tags - I dont think they are required for frameset's page.
Last edited by anjanesh on Tue Aug 23, 2005 6:30 am, edited 1 time in total.
bladecatcher
Forum Commoner
Posts: 67
Joined: Sat Mar 12, 2005 12:50 am

Post 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 :-)
User avatar
wwwapu
Forum Contributor
Posts: 197
Joined: Wed Apr 07, 2004 11:57 am
Location: Turku, Finland

Post 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>
User avatar
raghavan20
DevNet Resident
Posts: 1451
Joined: Sat Jun 11, 2005 6:57 am
Location: London, UK
Contact:

Post 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 :)
User avatar
raghavan20
DevNet Resident
Posts: 1451
Joined: Sat Jun 11, 2005 6:57 am
Location: London, UK
Contact:

Post by raghavan20 »

alright...target="_top" does that for me
Post Reply