Welcome to WebmasterWorld Guest from 54.160.254.203

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)

Inactive Member
Account Expired

 
 


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>

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

Senior Member

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

joined:May 26, 2000
posts:37301
votes: 0


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)

Inactive Member
Account Expired

 
 


Your posted code works fine in my Opera 7.20b2 browser on Win98.
3:17 am on Aug 6, 2003 (gmt 0)

Senior Member

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

joined:May 26, 2000
posts:37301
votes: 0


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

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members