[Seaside-dev] Scriptaculous-kdt.246

Ken Treis ken at miriamtech.com
Mon Jan 19 19:11:49 UTC 2009


I've used Scriptaculous in other languages and was surprised that the  
Seaside implementation didn't have a mapping for Form.Observer or  
Form.Element.Observer from the Prototype library. Perhaps nobody else  
has needed it.

Use looks something like this:

> html textInput id: 'watchMe'.
> html script: (html formElementObserver
> 	id: 'watchMe';
> 	frequency: 2 seconds;
> 	function: 'alert(value)')

or you can put something more interesting in the function, e.g.:

> 	function: (html updater ... )

You can also watch an entire form, using (html formObserver), which  
when combined with an updater and triggerForm: makes a pretty easy  
"live search" implementation.

--
Ken Treis
Miriam Technologies, Inc.



More information about the seaside-dev mailing list