I have the following code. As i understand frames / framesets will not work in HTML5. So, how can i make it work ? if i wanted the same result to work in HTML5, what should i do ?
<!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" xml:lang="en" lang="en">
<head>
Header stuff herer
screen" title="Screen" charset="utf-8" />
</head>
<frameset cols="100%" frameborder="0">
<frameset rows="<?php echo SITE_CONFIG_TOP;?>, *">
<frame src="framedTop.php?url=<?php echo $shortUrlObj->shortUrlUID; ?>" class="framedTopFrame" noresize scrolling="no"/>
<frame src="<?php echo $shortUrlObj->fullUrl;?>" noresize>/
</frameset>
<noframes>
<?php echo t("browser_no_frame");?>
</noframes>
</frameset>
Related
This is the code I used to create frames but not able to do so:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>MATERIALS</title>
<meta http-equiv="Content-Type"
content="text/html; charset=utf-8"/>
<link href="projectstyle.css" rel="stylesheet" type="text/css"/>
</head>
<body link="blue" vlink="purple" alink="red" background="" bgcolor="#90EE90" text="white">
<frameset cols="50%,*">
<frame src="file:///C:/Users/Administrator/Desktop/WEB/frame2.html" />
<frame src="file:///C:/Users/Administrator/Desktop/WEB/frame1.html" />
</frameset>
</body>
</html>
The frameset tag does not work inside the body tag.Remove the body tag and it should work.Also you can use just "frame1.html" and "frame2.html" as src attribute of the frames if you are keeping them in the same folder instead of using their full address.
Here is the Code which worked for me.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>MATERIALS</title>
<meta http-equiv="Content-Type"
content="text/html; charset=utf-8"/>
<link href="projectstyle.css" rel="stylesheet" type="text/css"/>
</head>
<frameset cols="50%,*">
<frame src="frame2.html" />
<frame src="frame1.html" />
</frameset>
</html>
Here's the code that works fine in Mozilla but do not works in Internet Explorer. Any idea. Urgency is high.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
</head>
<FRAMESET rows="15%,81%,4%">
<FRAMESET>
<FRAME src="header.html" frameborder="0" scrolling="no"></FRAME>
</FRAMESET>
<FRAMESET cols="40%,60%">
<FRAME name="login_menu_frame" src="login_box.html" frameborder="0" scrolling="no"></FRAME>
<FRAME name="login_body_frame" src="login_page_body.html" frameborder="0" scrolling="no"></FRAME>
</FRAMESET>
<FRAMESET>
<FRAME name="login_footer_frame" src="footer.html" frameborder="0" scrolling="no"></FRAME>
</FRAMESET>
</FRAMESET>
</html>
Well, I found the answer. The problem lies in the
IE is only recoznising the first . So, whatever is placed after that is not being loaded in the page.
The solution is to put every other frameset in the first [any other frameset] .
The code that worked is:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<FRAMESET rows="15%,81%,4%">
<FRAMESET>
<FRAME src="header.html" frameborder="0" scrolling="no"></FRAME>
<FRAMESET cols="40%,60%">
<FRAME name="login_menu_frame" src="login_box.html" frameborder="0" scrolling="no"></FRAME>
<FRAME name="login_body_frame" src="login_page_body.html" frameborder="0" scrolling="no"></FRAME>
</FRAMESET>
<FRAMESET>
<FRAME name="login_footer_frame" src="footer.html" frameborder="0" scrolling="no"></FRAME>
</FRAMESET>
</FRAMESET>
</FRAMESET>
</head>
</html>
What's up with the CAPS, copy-pasted this from actual -96 sources found on a floppy? ;-P
Also, try and apply consistent indentation for the tags. Your main frameset tag is directly followed by another (rouge) frameset tag, which missing closing tag..
Example usage that clearly indicates which elements are contained inside each other for quick mismatch spotting:
<!DOCTYPE html>
<html>
<head>
<title>HTML Frames</title>
</head>
<frameset rows="10%,80%,10%">
<frame name="top" src="/html/top_frame.htm" />
<frame name="main" src="/html/main_frame.htm" />
<frame name="bottom" src="/html/bottom_frame.htm" />
<noframes>
<body>
<h1>Your browser does not support frames.</h1>
</body>
</noframes>
</frameset>
</html>
I am experiencing quiet an unusual issue with salesforce when I put it in a html frame, when I click on the login button link, it is not loading the login page. but every other link is working perfectly fine, as soon as I take it out of the html frame it works, is there something that can be done to fix this issue by any chance? I have looked and been unsuccessful.
So i got 2 .html files 1 named Script, which is just plain simple text to be displayed in the left frame, and the main frame is the salesforce link.
Then the third html file is the frame file which links both html files to load into one.
The code for all this is below, please let me know if you are successful, Thanks.
script.html
<!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="refresh" content="60; url=script.html" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Script</title>
<style type="text/css">
<!--
.style1 {font-family: Arial, Helvetica, sans-serif}
-->
</style>
</head>
<body>
<p> hello how are you </p>
</body>
</html>
salesForce.html
<!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="refresh" content="0; url=http://www.salesforce.com/au/" />
<title>Sales Force</title>
</head>
<body>
</body>
</html>
salesForceScript.html
<!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=UTF-8" />
<title>Sales Force & Script</title>
</head>
<frameset rows="*" cols="277*,973*" framespacing="0" frameborder="no" border="0">
<frame src="script.html" name="leftFrame" id="leftFrame" title="leftFrame" />
<frame src="salesForce.html" name="mainFrame" id="mainFrame" title="mainFrame" />
</frameset>
<noframes>
<body>
</body>
</noframes>
</html>
What is the type of this document.I am confused as it has html 4.0 declaration and also contains xml.
Here is the structure of the document:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN">
<html>
<head>
<TITLE>Container</TITLE>
<LINK href="css/xyz.css" type="text/css" rel="stylesheet">
</head>
<frameset >
<FRAMESET rows="97%,28" border="0" frameBorder="0">
<frame name="main" src="ContainerInner.htm">
<FRAME Name="Statusbar" SRC="html/MainStatusbar.htm">
</FRAMESET>
<noframes>
<p>This page requires frames, but your browser does not support them.</p>
</noframes>
</frameset>
</html>
<!-- ContainerInner.htm -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>ContainerInner</title>
</head>
<body>
<IFRAME Name="MainScreen" SRC="html/loading.htm"></IFRAME>
<IFRAME Name="MenuTree" SRC="html/BlankMenu.htm" />
<iframe name="ToolbarScreen1" src="html/FavouriteMenus.htm"></iframe>
<IFRAME name="TaskQueues" src="html\UserInfo.htm"></IFRAME>
</body>
</html>
<!-- html/loading.htm -->
<!-- screen inside IFRAME MainScreen -->
<?xml version="1.0" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template match="/">
<HTML>
<HEAD></HEAD>
<BODY> </BODY>
</HTML>
</xsl:template>
</xsl:stylesheet>
I have following questions:
Is it an XHTML document or HTML.
Is it legal to have multiple doctype declarations like above.
Will latest version of modern browsers like chrome support this document as it has frames.
If we use frameset doctype, can we use normal html tags outside of the frameset tag within that page?
Below is the code;
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html:html locale="true">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<frameset cols="*" rows="40,*">
<frame src="#" />
<frame src="#"/>
<noframes>
<body>
Please enable frames to view.
</body>
</noframes>
</frameset>
Is this Normal Anchor Tag allowed for frameset doctype and if yes, is this the correct position ?
</html:html>
No, you can't put any content outside the frameset, and that has nothing to do with the doctype.
You can only put content inside the body tag, and a frameset page has no body tag (except inside the noframes tag).