Re: [JSMentors] Capturing javascript driven changes in input fields

2011-02-06 Thread Garrett Smith
On 2/5/11, אריה גלזר arieh.gla...@gmail.com wrote: Hey. I'm modifying an input's value/state through JS, and I wanted to know if there's a way to make it trigger the change event. Oh, so you wanna set checked and then somewhere else subscribe to something like CheckboxStateChanged (gecko).

Re: [JSMentors] Capturing javascript driven changes in input fields

2011-02-06 Thread אריה גלזר
On Sun, Feb 6, 2011 at 12:46 PM, Max Vasiliev max-at-w...@yandex.ru wrote: BTW, agreed you should create a custom widget which will have 'setChecked' method. As I said - I would rather not create a costume event. I want something that bubbles. I'm creating costume input fields. The point is

Re: [JSMentors] Capturing javascript driven changes in input fields

2011-02-06 Thread Diego Perini
On Sun, Feb 6, 2011 at 3:15 PM, אריה גלזר arieh.gla...@gmail.com wrote: On Sun, Feb 6, 2011 at 12:46 PM, Max Vasiliev max-at-w...@yandex.ru wrote: BTW, agreed you should create a custom widget which will have 'setChecked' method. As I said - I would rather not create a costume event. I

Re: [JSMentors] Capturing javascript driven changes in input fields

2011-02-06 Thread Diego Perini
On Sun, Feb 6, 2011 at 5:21 PM, אריה גלזר arieh.gla...@gmail.com wrote: On Sun, Feb 6, 2011 at 6:15 PM, Diego Perini diego.per...@gmail.com wrote: On W3C browsers you should be able to capture the change event without problems. IMO this is not a bubble/capture problem ( just verified -

Re: [JSMentors] Capturing javascript driven changes in input fields

2011-02-06 Thread Garrett Smith
On 2/6/11, אריה גלזר arieh.gla...@gmail.com wrote: On Sun, Feb 6, 2011 at 6:15 PM, Diego Perini diego.per...@gmail.com wrote: On W3C browsers you should be able to capture the change event without problems. IMO this is not a bubble/capture problem ( just verified -

[JSMentors] Capturing javascript driven changes in input fields

2011-02-05 Thread אריה גלזר
Hey. I'm modifying an input's value/state through JS, and I wanted to know if there's a way to make it trigger the change event. This example: http://jsfiddle.net/ariehg/4AZEL/ won't work. I require this behavior for radio/checkbox changes as well. Is it possible or do I need to create a different