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

Visit PubCon.com
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




msg:1586805
 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




msg:1586806
 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




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

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

tedster




msg:1586808
 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