Log in

View Full Version : Replace frames with php



neo_philiac
06-30-2008, 04:06 PM
Hello all:

I know this is an old question but I have exhausted my google resourece to find a better answer. My problem is simple:

I had to build a website within a dead line and I took the easy way out to use html frames. The problem is it works fine in firefox but screws up in the latest version of IE. Now I cannot afford go and modify the whole site but I am trying to find a better cross-browser solution. I need something quick and dirty solution just by changing the index page. If I use tables to replace the frames, how do I get the pages to load in the MainFrame? What would be the php way or js way? My Index page follows:


<!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>******</title>
</head>

<frameset rows="*" cols="200,*" framespacing="0" frameborder="no" border="0" bordercolor="#000000">
<frame src="LeftFrame.html" name="leftFrame" scrolling="No" noresize="noresize" id="leftFrame" title="leftFrame"></frame>
<frameset rows="216,*" framespacing="0" frameborder="no" border="0" bordercolor="#967333">
<frame src="TopFrame_php.php" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" title="topFrame" ></frame>
<frameset rows="*,50" framespacing="0" frameborder="no" border="0" bordercolor="#967333">
<frame src="Main.html" name="mainFrame" id="mainFrame" title="mainFrame" scrolling="no" ></frame>
<frame src="bottomFrame.html" name="bottomFrame" scrolling="No" noresize="noresize" id="bottomFrame" title="bottomFrame" ></frame>
</frameset>
</frameset>
</frameset>
<noframes><body>
</body>
</noframes></html>


Please help Thanks!

neo_philiac
07-01-2008, 02:02 PM
Ding!

wibumba
07-07-2008, 04:04 AM
You could use a PHP include within a DIV tag, and add "overflow: auto;" in the style, to make it appear as a frame.