observe's function takes the event as the first argument, the element  
as the second. Change your function to

        function(evt,elm){
                alert(elm.next());
        }

If you want to be very careful, you can do this:

        function(evt){
                var elm = Event.element(evt);
                alert(elm.next());
        }


Walter

On Feb 10, 2009, at 11:24 AM, Jeztah wrote:

> how can this possibly be if the html is nowhere near the end of the
> document ? .. its confusing the hell out of me, or am i missing the


--~--~---------~--~----~------------~-------~--~----~
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 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to