[Greasemonkey] onpropertychange emulation

Lenny Domnitser ldrhcp at gmail.com
Thu Oct 13 14:23:31 EDT 2005


On 10/13/05, Aaron Boodman <zboogs at gmail.com> wrote:
> You could also use watch I think. If you have a ref to the form and form field:
>
> myFormField.watch("value", function() {
>   myForm.submit();
> });

Yep. I still have a couple scripts to convert to watch from the ugly
setTimeout hack. Remember that watch intercepts a value change, so you
have to return the value you want the property to have. Otherwise, it
ends up as null.


More information about the Greasemonkey mailing list