14 3070
df wrote on 18 mei 2006 in comp.lang.javascript : Why?
Why not?
Afer all resizing can be a lenghty buziness.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Not understand very much.Would you mind telling more details?
On 17 May 2006 15:01:07 -0700, "df" <df****@msn.com> wrote: Why onResize fires 3 times when I re-size the window?
because it fires as you're resizing it, and not just at the end of the
resize, why would you expect it to only fire at the end?
Jim.
Jim Ley wrote : On 17 May 2006 15:01:07 -0700, "df" <df****@msn.com> wrote:
Why onResize fires 3 times when I re-size the window?
because it fires as you're resizing it, and not just at the end of the resize, why would you expect it to only fire at the end?
Jim.
IE 6+ will fire the resize event continuously. Opera 8+ also.
Firefox, Mozilla Seamonkey, Mozilla Suite will not.
Bug 114649: onresize events should fire while resizing the window, not
just when the mouse stops moving https://bugzilla.mozilla.org/show_bug.cgi?id=114649
Gérard
--
remove blah to email me
Jim Ley wrote : On 17 May 2006 15:01:07 -0700, "df" <df****@msn.com> wrote:
Why onResize fires 3 times when I re-size the window?
because it fires as you're resizing it, and not just at the end of the resize, why would you expect it to only fire at the end?
Jim.
IE 6+ will fire the resize event continuously. Opera 8+ also.
Firefox, Mozilla Seamonkey, Mozilla Suite will not.
Bug 114649: onresize events should fire while resizing the window, not
just when the mouse stops moving https://bugzilla.mozilla.org/show_bug.cgi?id=114649
Gérard
--
remove blah to email me
On Wed, 17 May 2006 19:56:42 -0400, =?ISO-8859-1?Q?G=E9rard_Talbot?=
<ne***********@gtalbot.org> wrote: Jim Ley wrote : On 17 May 2006 15:01:07 -0700, "df" <df****@msn.com> wrote:
Why onResize fires 3 times when I re-size the window?
because it fires as you're resizing it, and not just at the end of the resize, why would you expect it to only fire at the end?
Jim.
IE 6+ will fire the resize event continuously. Opera 8+ also.
On windows both of these depend on the OS setting show window contents
whilst dragging.
Jim.
df wrote on 18 mei 2006 in comp.lang.javascript : Not understand very much.Would you mind telling more details?
Would you mind where you are talking about?
Please quote what you are replying to.
If you want to post a followup via groups.google.com, don't use the
"Reply" link at the bottom of the article. Click on "show options" at the
top of the article, then click on the "Reply" at the bottom of the article
headers.
<http://www.safalra.com/special/googlegroupsreply/>
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Evertjan. 写é“: df wrote on 18 mei 2006 in comp.lang.javascript: Not understand very much.Would you mind telling more details?
Would you mind where you are talking about? Please quote what you are replying to.
If you want to post a followup via groups.google.com, don't use the "Reply" link at the bottom of the article. Click on "show options" at the top of the article, then click on the "Reply" at the bottom of the article headers.
Roger~
And now,Am I OK this time?
Well,dear guys,I just want append a function to run only *one* time
after the OnResize event is finished.How can I?
Jim Ley 写é“: On Wed, 17 May 2006 19:56:42 -0400, =?ISO-8859-1?Q?G=E9rard_Talbot?= <ne***********@gtalbot.org> wrote:
Jim Ley wrote : On 17 May 2006 15:01:07 -0700, "df" <df****@msn.com> wrote:
Why onResize fires 3 times when I re-size the window?
because it fires as you're resizing it, and not just at the end of the resize, why would you expect it to only fire at the end?
Jim.
IE 6+ will fire the resize event continuously. Opera 8+ also.
On windows both of these depend on the OS setting show window contents whilst dragging
df wrote on 18 mei 2006 in comp.lang.javascript : Evertjan. 写é“: df wrote on 18 mei 2006 in comp.lang.javascript: > Not understand very much.Would you mind telling more details?
Would you mind where you are talking about? Please quote what you are replying to.
If you want to post a followup via groups.google.com, don't use the "Reply" link at the bottom of the article. Click on "show options" at the top of the article, then click on the "Reply" at the bottom of the article headers.
Roger~ And now,Am I OK this time?
Roger roger, Roger.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
On 18 May 2006 04:55:48 -0700, "df" <df****@msn.com> wrote: Well,dear guys,I just want append a function to run only *one* time after the OnResize event is finished.How can I?
var globalWindowResizeTimer=0
window.onresize=function() {
clearTimeout(globalWindowResizeTimer);
globalWindowResizeTimer=setTimeout(whateverYouWant ,150);
}
The normal event culling method.
Jim.
Jim Ley wrote: On 18 May 2006 04:55:48 -0700, "df" <df****@msn.com> wrote: Well,dear guys,I just want append a function to run only *one* time after the OnResize event is finished.How can I? var globalWindowResizeTimer=0
Initializing a timer variable with 0 is by no means a way ...
window.onresize=function() { clearTimeout(globalWindowResizeTimer);
.... to prevent this from failing or producing undesired side effects.
Instead, the variable should be initialized with a value that is
unlikely to be returned by window.setTimeout(), such as `null', and
_window_.clearTimeout() should only be called iff
1. window.clearTimeout() is available as a method. It appears
safe to assume that if window.setTimeout() is supported,
window.clearTimeout() is supported as well.
2. The argument value is different from the initial value.
globalWindowResizeTimer=setTimeout(whateverYouWant ,150);
_window_.setTimeout() should only be called iff that method is supported.
}
The normal event culling method.
For suitable values of "normal".
PointedEars
--
This above all: To thine own self be true.
-- William Shakespeare (1564-1616) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Bas |
last post by:
Hello all,
I'm trying to create a little script which will save the width of a
certain frame into a database, so that every user still has his/her
"own" frame width when logging back on. Now,...
|
by: TF |
last post by:
hi,
i am using a ListBox control on a windows form using VB.Net. when i
set the DataSource property of the control to an ArrayList it fires
following events in this order:
SelectedIndexChanged...
|
by: me54 |
last post by:
does anyone know how to call some javascript function when firefox fire the
onresize event?
something like <body onresize="alert();"> doesn't work on forefox?
thnx.
|
by: hannibal |
last post by:
Hi,
i need to refresh page cathcing "onResize" event.
I wrote this code:
<body onResize="javascript:winodw.location.reload(true); return
true;">
On I.E. it works, but it doesn't work on...
|
by: Maxine G |
last post by:
I have two forms, a menu and a data entry form. The entry form is bound
to a query against linked SQL server tables. In the deactivate event, I
have some code which asks the user if they want to...
|
by: HL |
last post by:
I am using VS 2005 Beta - C#
Problem: The Timer fires a few milliseconds before the actual Due-Time
Let's say a timer is created in the following manner:
System.Threading.Timer m_timer = null;...
|
by: whtinkm |
last post by:
Hi, All
Recently, my project need some code like following:
using System;
using System.Threading;
namespace MyTimerTest
{
class Class1
{
|
by: Roland |
last post by:
Hi,
I have written a Windows Service with a Timer (System).
The Interval is set to 60000 (60 seconds) for testing.
In the Timer1_Elapsed event I execute a task.
In this case I have to read a...
|
by: christianlott1 |
last post by:
I admit my form is pretty complex and may need a total overhaul -
I have two subforms synchronized on a form through an unbound text box.
When I enter a new record in the second subform it used...
|
by: jwhitwork |
last post by:
I'm trying to create a liquid layer and need to call my SetLayerPos() function onResize.
When I create a test page:
<html><body onresize="alert('test')"></body></html>
It works fine.
...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |