[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 o

[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 Yo

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

2009-08-31 Thread Mona Remlawi
Hi Tobie, It is a monstrous form that i am dealing with indeed. It is composed of several collapsable and repeatable sections. As a starter, the form has around 50 inputs, but in some extreme use cases, the total number of inputs may reach 800 :-o thanks for the tip cheers -- mona On Mon, Aug

[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 wrote: > oh that would be a big overhead for me as the forms i'm talking about > can grow to have 100s of inputs. > so serializin

[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 t

[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 wrote: > Hello Prototypers, > > I am currently in the process