javascript to capture event for restore down or maximize

This is a discussion on "javascript to capture event for restore down or maximize" within the JavaScript Forum section. This forum, and the thread "javascript to capture event for restore down or maximize are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old May 30th, 2007, 20:21
New Member
Join Date: May 2007
Location: TORONTO
Age: 36
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
javascript to capture event for restore down or maximize

Hi:
I am using IE 6 SP2.
I needed to resize an iFrame when the window is resize. And the only way I know how is to called a javascript function when the resize event occur.
I can capture the event when the window is resize on a simple html but when I used with an actual application, the resize event doesnot get trigger when I changed the size of the window. I believed the reason is because if the url the IFrame references also has a resize event in its body it interferes with the resize event outside of the iframe.
Here is my javascript code:
Quote:
<html>
<head>
<script type="text/javascript">
window.onresize = test2;
function shrinkIFrame()
{
alert("load event!");
}
function test2()
{
alert("test1,window.onresize");
}
function test1()
{
alert("test1,onresize");
}
</script>
</head>
<body onLoad="shrinkIFrame();" onresize="test1();">
<p>Resize the browser window to fire the resize event.</p>
<iframe src="http://www.google.ca" name="dataFrame" id="dataFrame" style="height:942.0px; width:100%" scrolling="NO" frameborder="0"></iframe>
</body>
</html>
The alternative for me is to capture the event when the user click on the "restore down" or when the user click on "maximize" button in the popup.
Does anybody know the javascript to do such thing.

Any hint would be greatly appreciated.
Yours,
Frustrated.
Reply With Quote

Reply

Tags
event, javascript

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to capture the event when a popup window box is resize jadeite100 JavaScript Forum 1 May 30th, 2007 00:38
Javascript to catch browser/plugins event le duc bao JavaScript Forum 0 May 10th, 2007 12:38
javascript Window.event help trylah JavaScript Forum 3 Apr 10th, 2007 13:31
Need advice: Can I restore the 'missing' topic mytanin PHP Forum 0 Jan 21st, 2007 10:01
EVENT: SPARK - Flash Event Flasher Flash & Multimedia Forum 0 Nov 15th, 2005 10:08


All times are GMT. The time now is 10:34.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43