Loganathan Ganesan wrote:
> You misunderstood the concept. Ya the <div> is updated by using :update 
> in the link_to_remote. I want something like observe_field to monitor 
> the changes happening in the <div> tag. Because we can also use 
> :complete to get to know the changes happened in the <div>
> 
> But it is for only the particular session. Whereas in the observe_field, 
> it calls the appropriate action whenever changes happened in the 
> <select> tag. The ajax request will go for all the sessions.
> 
> Incase of more than one session currently using my application, the link 
> clicked in the particular session only will get to use of the :complete.
> 
> If any clarifications need revert back me.

I think you are misunderstanding how observe_fields works. It does not 
monitor changes in the DOM, rather it attaches event listeners to each 
individual form field.

Take a look at the list of events that are applicable to HTML elements. 
Notice there is no "onchange" event:
http://www.w3schools.com/jsref/dom_obj_all.asp

The onchange event is applicable to controls (text boxes, popup lists, 
checkboxes, etc.). The DOM itself doesn't change, rather it gets changed 
as a result of some other event.
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to