?
Solved

Firefox and Chrome frame OnResize not working

Posted on 2012-03-26
3
Medium Priority
?
1,363 Views
Last Modified: 2012-03-28
I am trying to capture when a frame is resized.  This works perfect in IE but not at all in Firefox or Chrome.  Everything I have read says it should work, so I must be doing something wrong.  Can anyone please help?

Code:

test.html
<html>
<frameset cols="*,*" border=15>
  <frame id=frmFrame src="frame.html" onload="alert('load');">
  <frame id=frmFrame2 src="frame2.html" onresize="alert('resize');">
</frameset>
</html>

frame.html
<html>
<body bgcolor=green>
&nbsp;
</body>
</html>

frame2.html
<html>
<body bgcolor=red>
&nbsp;
</body>
</html>
0
Comment
Question by:stuart100
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 75

Accepted Solution

by:
Michel Plungjan earned 2000 total points
ID: 37770503
Here

<frameset cols="*,*" border=15>
  <frame id=frmFrame src="..." onload="alert('load');">
  <frame id=frmFrame2 src="..." onload="var win = this.contentWindow?this.contentWindow:this;win.onresize=function(){parent.document.title = 'resized @'+new Date();}">
</frameset>
</html>

Open in new window

0
 

Author Comment

by:stuart100
ID: 37778880
Thank you for the solution, I am giving you the points.

Can you explain though your code.  I think what is going on is that Firefox is not correctly registering the onresize event to the frame or using the wrong container?  Is this correct?
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 37778889
Fx has a different Dom access than ie. it is now standard on new browsers
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to create an extensible mechanism for linked drop downs.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question