2009/2/27 Radoslav Stankov <rstan...@gmail.com>:
>
> Yes this 'change' won't work on IE, so is submit / reset (... and more
> of witch I can't remember right now)
> I was thinking about a hacks for that, to 'simulate' such events: you
> can do something like this ->
>
> <pre>
> $('tabRG_DynamicContainer').delegate('select', 'click', function(e){
>    var value = this.getValue();
>    if (Object.isUndefined(this._value)){
>      this._oldValue = value;
>    } else if (this._oldValue != value){
>      this._oldValue = value;
>      console.log('changed'); // or fire your own function
>  }
> });
> </pre>
>
> This approach have some downfalls - change event is fired no only on
> click events, and stopDelegating will not work well. But is goot
> stating point, I think :)
> >
>


Thank youl.


-- 
-----
Richard Quadling
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
"Standing on the shoulders of some very clever giants!"

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to