Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_howto thread: onscrollstop?


Message #1 by "Nyman, Robert" <Robert.Nyman@i...> on Fri, 7 Dec 2001 11:59:16 +0100
Hi Sten,

yeah, I've thought of this too, but the solution is very comlicated.
In first place, I'm looking for an easier solution, but otherwise it 
might
end up being something like this.


/Robert


-----Original Message-----
From: STG@e... [mailto:STG@e...]
Sent: den 7 december 2001 12:09
To: JavaScript HowTo
Subject: [javascript_howto] Re: onscrollstop?



Hi

Maybe you can setup a timer when user (starts to) scroll...
This timer could be created by using 
window.setTimeout('functionname()',
'1/1000th of seconds')" or
window.setInterval('functionname()', '1/1000th of seconds').
Then when you detect that the scrollstate (which you should set in the
onscroll event handler) is false, then
you the user has stopped scrolling some time ago...
The time you decide - for instance 100 =3D> 100/1000 =3D> 1/10 seconds 
ago...
Take care with these
timers btw :-) Remember to clear them: window.clearTimeout() or
window.clearInterval();

I do hope this helps - I have no time to code it myself, but would like 
to
see the final soloution! :-)

Cheers

Sten Hougaard
Application developer, =C5rhus, Denmark





                    "Nyman, Robert"

                    <Robert.Nyman@i...       To:     "JavaScript HowTo"
<javascript_howto@p...>               
                    Bizkit.se>            cc:

                                          Subject:     
[javascript_howto]
onscrollstop?                            
                    12/07/2001

                    11:59 AM

                    Please respond

                    to "JavaScript

                    HowTo"










Hi,

I can trap the  user's scrolling with, for example, window.onscroll.
But is there a way  to know when the user has stopped scrolling?
I can't find any  such event, for example onscrollstop or something
similar.

Does anyone know  of a way to do this?


/Robert  Nyman
                                                                        
  
                                                                        
  
                                                                        
  
                                                
..........................
                                                
..........................
                                                ..........              
  
                                                                        
  
      robert  nyman, technical                                          
  
      research manager                                                  
  
                                                                        
  
                                                fryxellsgatan 4, 
s-114=A025 
                                                stockholm               
  
                                                                        
  
                                                                        
  
                                                                        
  
                                                    ph                  
  
                                                            +46  (0)8 
506 
                                                            31 500      
  
                                                    d                   
  
                                                            +46  (0)8 
506 
                                                            31 510      
  
                                                    m                   
  
                                                            +46  (0)733 
50
                                                            22 09       
  
                                                    f                   
  
                                                            +46  (0)8 
506 
                                                            31 599      
  
                                                    e                   
  
                                                            
robert.nyman@i...
                                                            bizkit.se   
  
                                                    www                 
  
                                                            
http://www.ibi
                                                            zkit.se     
  
                                                                        
  
                                                                        
  
                                                
..........................
                                                
..........................
                                                ..........              
  
                                                                        
  



$subst('Email.Unsub').




$subst('Email.Unsub').

  Return to Index