event is not a reserved word, it's an object in the global namespace in IE. The error is called by you forgetting to declare your event variable inside the function you're in. You tried to overwrite window.event... that's very, very bad.

var event = blah; //works fine, used many, many places in MooTools.

let me give you some pointers
 - Never forget var.  It's not optional!
- Don't use onwhatever inline events, use addEvent instead which uses the DOM Level 2 standard. - You don't need to extend events anymore in MooTools 1.2, it's done automatically for all events added the proper way (addEvent)

$('el').addEvent('mouseover', function(event){
        event.stop(); //event is already extended
});


On Oct 14, 2008, at 3:57 AM, DustyReagan wrote:


Sorry, I got a little trigger happy posting. IE7 doesn't like event =
new Event(e); because event is a reserved word. I just needed to
change the variable name.

On Oct 13, 9:07 pm, "Iván N Paz" <[EMAIL PROTECTED]> wrote:
@DustyReagan:

You should really really really avoid this:

 <img onmouseover="tipit(this, event)" ...  />

Specifying the javascript like that makes for very obtrusive
javascript, which we need to avoid above all things!!!!

What about applying the "tipit()" function on domready, instead of
creating the tooltip (which you will create on your tipit).... Would
that kill your browser as well????

What about attaching a mouseMove (or the like) event to the "window"
object and check for the object beneath????

Just throwing some ideas...

Reply via email to