title: Jquery detect scroll once
body: <p>Have read that it is possible to detect a scroll with this line:</p>
  
  <pre><code>$('window').one('scroll', function() {  } );
  </code></pre>
  
  <p>If have this inline code:</p>
  
  <pre><code>var TimeVariable=setInterval(function(){ DoJQueryStuff() },300);
  
  function DoJQueryStuff()
   {
   if(typeof jQuery == "undefined") return;
   window.clearInterval(TimeVariable);
   $('body').one('mousemove', function() { alert('mouse'); } );
   $('window').one('scroll', function() { alert('scroll'); } );
   }
  </code></pre>
  
  <p>DoJQueryStuff is called every 300 ms until JQuery is loaded.
  If I move the mouse anywhere on the screen, I got the "mouse" alert.
  If I scroll down I do NOT get the "scroll" alert.
  i.e. it's not firing.</p>
  
  <p>Any help would be greatly appreciated.</p>
  
  <p>David</p>