Well don't I feel foolish! That solved my problem. I guess I needed more coffee!
Thanks, Joe On Mon, Nov 17, 2008 at 9:37 PM, kangax <[EMAIL PROTECTED]> wrote: > > On Nov 17, 12:16 pm, Joe Moore <[EMAIL PROTECTED]> wrote: > > I'm trying to use the bind to the windows.onscroll event with > > Event.observe, but it doesn't work. No error is reported. > > > > Here is a small bit of JavaScript I am using: > > > > function initPage() > > { > > Event.observe("window", "scroll", function() { alert("Hello > > World"); }); > > `window` needs to be an actual reference, not a string representing id > of an element : ) > > Hence, > > Event.observe(window, 'scroll', function() { > alert('Hello, World!'); > }) > > [...] > > -- > kangax > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---