John,

It's for a situation where you want to get feedback for the changing data in a form (live preview for instance).

Is there a way to achieve this with a single event handler?

-- Yehuda

On 9/10/06, John Resig <[EMAIL PROTECTED]> wrote:
> Is there a jQuery alternative to Prototype's Form.Observer?
> http://www.sergiopereira.com/articles/prototype.js.html#Form.Observer

Man... just because something is documented, doesn't mean that its
clear as to how its actually used.

"Implementation of an Abstract.TimedObserver that monitors any changes
to any data entry element's value in a form. Use this class when you
want to monitor a form that contais a elements that do not expose an
event that reports the value changes. In that case you can use the
Form.EventObserver  class instead."

What the hell does that mean?

Anyway, after reading the code, it seems like every N milliseconds it
serializes the entire form (!?!?) and if that serialized string is
different than the last one, it calls the callback with the new data.
I would love to see an instance where this needs to be used instead of
an event observer.

I guess it would be better to explain what your desired effect is, as
that would probably make more sense.

--John

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/



--
Yehuda Katz
Web Developer
(ph)  718.877.1325
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to