On 6 April 2010 13:36, Loganathan Ganesan <li...@ruby-forum.com> wrote: > Dear friend, > > I need a suggestion for the following requirement: > > I have a <div> tag as follows: > <div id="test"> > </div> > > I used the link_to_remote and using that updated the response in the > <div>. > > We have observe_fields for the <select> tags like using the "Onchange" > event and > can track the changes happening in the <select> tag. > > Do we have the same kind of method for <div> tag to get track the > changes happening in the <div> tag. > > I can also use the periodically_call_remote to achieve my requirement. > But it is not efficient. I should make a Ajax call only when there is > some updation happening in the <div> tag.
How is something changing in the div tag? Do you mean a change by the call from the link_to_remote? If so then surely you already know it is changing as you are doing it yourself. I must be missing something. Colin -- 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.