views:

59

answers:

1

Hi, i'm working with mootools 1.2.4 and i have a select with an event "change" that works fine in Firefox but when i try to test it in iexplorer 7 it gives me an error saying that the select doesn't have that property or method: my code is as simple as:

$('zone').addEvent("change",function(E){
         alert("change");
      });

i've test this code in www.jsfiddle.net and it does work in ie7!!! so what i'm i missing here? do you think that has something to do with my version of mootools?on the mootools more? Thx in advance

A: 

Seems like you've created a custom version of mootools-core and forgot to include Element.Event in the build - http://mootools.net/core

Oskar Krawczyk
would adding events in FF w/o that?? if so, this would be a great catch indeed :)
Dimitar Christoff
I've got no other explanation apart from "you're doing it wrong"
Oskar Krawczyk
it was a problem with another JS library i was using (openlayers) I changed the order of the JS in the header of the page and now it's working fine in Firefox and IE7 =)
pleasedontbelong