krunk- wrote:
> ...
> >From the source:
> new Form.EventObserver('process_call_form', function(element, value)
> {new Ajax.Request('/rails/assistant/add_element', {asynchronous:true,
> evalScripts:true, parameters:'Form.serialize(process_call_form)=' +
> value})})
> ...
> page << "Event.stopObserving('process_call_form', 'change',
> #{function})"
>   
The third parameter in Event.stopObserving() should be a handle from the 
original Event.observe() call.  For example:

var handle = Event.observe(element,'click',myFunc);
Event.stopObserving(element,'click',handle);

 From what I can see in the source of the parent class 
Abstract.EventObserver() there is no returning or caching of the 
Event.observe() handles.

Perhaps this is a limitation or am I missing something?

--Ken



--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to