Welcome to WebmasterWorld Guest from 54.167.86.186

Forum Moderators: open

Message Too Old, No Replies

opera7 dynamically changing rows in frameset

opera7 frameset

     

ericthered

3:55 am on Aug 5, 2003 (gmt 0)



In opera7 dynamically changing rows in frameset does not seem to work.
Use javascript to change frameset.rows and nothing happens on screen (display frameset.rows in an alert and it has been changed).
This works correctly in IE6 and Mozilla 1.3.1.
Do I need to do something to redisplay the frameset, or is there a bug in opera?

Example code:
frameset.html

<html>
<head>
<title>frameset</title>
</head>
<frameset rows=50%,50%" id=main_frame >
<frame src="frame1.html" >
<frame src="frame2.html" >
</frameset>
</html>

frame1.html

<HTML>
<HEAD>
<TITLE> frame 1 </TITLE>
<script language=javascript>
function enlarge()
{
var frameset = parent.document.getElementById("main_frame");
frameset.rows = "*,10%";
}
</script>
</HEAD>
<BODY>
<form>
<input type=button value="enlarge1" onclick="enlarge()">
</form>
</BODY>
</HTML>

frame2.html

<HTML>
<HEAD>
<TITLE> frame 2 </TITLE>
<script language=javascript>
function enlarge()
{
var frameset = parent.document.getElementById("main_frame");
frameset.rows = "10%,*";
}
</script>
</HEAD>
<BODY>
<form>
<input type=button value="enlarge2" onclick="enlarge()">
</form>
</BODY>
</HTML>

tedster

7:42 am on Aug 5, 2003 (gmt 0)

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Welcome to WebmasterWorld, ericthered.

Well, it looks like you're right. The rows object doesn't seem to be there in Opera 7.11. I couldn't find a way to redisplay effectively either.

Earlier Moz seems to be a bit messed up with the initial sizing, but the resize works at least.

robinsn

10:07 pm on Aug 5, 2003 (gmt 0)



Your posted code works fine in my Opera 7.20b2 browser on Win98.

tedster

3:17 am on Aug 6, 2003 (gmt 0)

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Glad to hear that the folks at Opera are continuing to fill in the corners in their DOM support.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month