homepage Welcome to WebmasterWorld Guest from 54.147.196.159
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Browsers / Opera Browser Usage and Support
Forum Library, Charter, Moderator: open

Opera Browser Usage and Support Forum

    
opera7 dynamically changing rows in frameset
opera7 frameset
ericthered

10+ Year Member



 
Msg#: 131 posted 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

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



 
Msg#: 131 posted 7:42 am on Aug 5, 2003 (gmt 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+ Year Member



 
Msg#: 131 posted 10:07 pm on Aug 5, 2003 (gmt 0)

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

tedster

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



 
Msg#: 131 posted 3:17 am on Aug 6, 2003 (gmt 0)

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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Browsers / Opera Browser Usage and Support
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved