HighDots Forums  

onresize and onresizeend

Javascript JavaScript language (comp.lang.javascript)


Discuss onresize and onresizeend in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
mitch
 
Posts: n/a

Default onresize and onresizeend - 02-03-2006 , 08:12 AM






In IE, I'm having problems with these events. What I'm trying to do is
get the size of
the window after the user has resized it, either by dragging the corner
or by maximizing.

It seems like in IE if the window has a handler for onresize, and the
user clicks
to maximize the window, the handler gets called BEFORE the window is
maximized.
So the size is the size before maximizing, rather than after. (In
Firefox the event
handler gets called AFTER the window is maximized, which is what I
want.)

It seems like in IE this line
window.attachEvent("onresizeend", function() { alert("resize end"); }
);
has no effect at all, even though the Microsoft doc says it should
work.

I would like to get an event that tells me the size of a window after
it has been resized,
in IE 6. Does anybody know how to do it? THanks.


Reply With Quote
  #2  
Old   
RobG
 
Posts: n/a

Default Re: onresize and onresizeend - 02-03-2006 , 09:45 AM






mitch wrote:
Quote:
In IE, I'm having problems with these events. What I'm trying to do is
get the size of
the window after the user has resized it, either by dragging the corner
or by maximizing.

It seems like in IE if the window has a handler for onresize, and the
user clicks
to maximize the window, the handler gets called BEFORE the window is
maximized.
So the size is the size before maximizing, rather than after. (In
Firefox the event
handler gets called AFTER the window is maximized, which is what I
want.)

It seems like in IE this line
window.attachEvent("onresizeend", function() { alert("resize end"); }
);
has no effect at all, even though the Microsoft doc says it should
work.
It seems onresizeend and onresizestart do not work in IE. Here's a
reference:

<URL:http://www.blooberry.com/indexdot/html/tagpages/attributes/events.htm>


--
Rob


Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.