Well I've just started using Prototype as of last week, and I like it
so far but I just started using the Event. set today and I'm having
some problems... I have absolutely no idea how to trigger an
Event.observe properly so that the function in the observe can have
more variables passed to it at a later time.

Am I just going about this the wrong way?


Skined down version of the function I'm writing:
function mouseFollow(type, var) {
        var mouse_x = Event.pointerX(event) + 8;
        var mouse_y = Event.pointerY(event) + 8;
        $('mouse_x').update(mouse_x);
        $('mouse_y').update(mouse_y);

        if (type == "over") {
                $('info').setStyle({
                        'z-index': "200"
                });
                $('info').update(var);
        } else {
                $('info').update("");
        }
}


It works fine in IE6, however FF spits out "Error: event has no
properties" errors.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to