Am Donnerstag, 2. Februar 2006 15:29 schrieb Ryan Gahl:
> Somehow my email lost some carriage returns... code blocks should read...
>
> var myHandler = function(event)
> {
> event.srcElement.style.border = '1px solid white';
>
> }.bindAsEventListener(this);
>
> Event.observe(imgs[i], "click", myHandler);
[..]
Hi Ryan,
thanks alot for your help. To make this work in Firefox i had to do another
event system check.
var myHandler=function(event) {
var el = event.target || event.srcElement;
el.style.border = '1px solid white';
}.bindAsEventListener(this);
Event.observe(imgs[i], "click", myHandler);
Just wondering, isn't the framework supposed to do this check?
--
Dirk Eschler zeitform Internet Dienste
mailto:[EMAIL PROTECTED] Fraunhoferstraße 5
PGP S/MIME: http://key.zeitform.de/ap 64283 Darmstadt, Germany
Tel./Fax: +49 (0) http://www.zeitform.de
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs