Hi
here is my problem :
Event.observe(window, 'load', function() {
var jeux = $('listeJeux').getElementsByTagName('li');
for (i = 0; i < jeux.length; i++) {
Event.observe(jeux.item(i), 'click', function(event) {
alert(Event.element(event).getAttribute('class'));
});
}
});
this script list all "li" elements and observe the click events on
each of them
with Firefox, no problem, the alert shows correct values
with IE, the alert says "null"
in my real script, I need to access to
Event.element(event).getAttribute('class') but not for an alert, this
is just for the example...
does someone have any idea ?
thanks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---