[Proto-Scripty] Re: onchange event delegation on IE

2009-09-02 Thread Mona Remlawi
Hi Radoslav, Thanks for reply, I have indeed did something very similar to this, just some different terminology plus i have wrapped the Form.Element.setValue method to fire 'value:changed' event too. You might wanna do that too if you are initializing your form elements with some default values

[Proto-Scripty] Re: onchange event delegation on IE

2009-09-01 Thread Radoslav Stankov
hm, I have similar problem (in my case I was adding / removing a lot of inputs dynamically). And using Form.Observer / Element.observe would have been an small maintenance hell. So I have been using 2 custom events - focus:in / focus:out, for bubbling focus/blur. http://gist.github.com/162593

[Proto-Scripty] Re: onchange event delegation on IE

2009-08-31 Thread T.J. Crowder
Hi Mona, Have you considered using Form.Observer[1] instead of events? [1] http://prototypejs.org/api/timedObserver/form-observer -- T.J. Crowder tj / crowder software / com www.crowdersoftware.com On Aug 31, 10:07 am, Mona Remlawi mona.reml...@gmail.com wrote: Hello Prototypers, I am

[Proto-Scripty] Re: onchange event delegation on IE

2009-08-31 Thread Mona Remlawi
oh that would be a big overhead for me as the forms i'm talking about can grow to have 100s of inputs. so serializing to detect changes doesn't seem to be a good idea, neither having TimedObservers on Form.Element level. guess my best option is to set the onchange attribute on input elements to

[Proto-Scripty] Re: onchange event delegation on IE

2009-08-31 Thread Tobie Langel
None of my business... but you're certainly doing something wrong UI- wise if you have 100s of inputs on the same page. Best, Tobie On Aug 31, 1:15 pm, Mona Remlawi mona.reml...@gmail.com wrote: oh that would be a big overhead for me as the forms i'm talking about can grow to have 100s of