Veena Jose wrote:
>    I want to know how a part of the webpage (data obtained from
> database) can be refreshed at periodic intervals(say 5 sec).
>  I have tried periodically_call_remote() method.But it is not working
> for me.
> 
> <% periodically_call_remote(:url => { :action =>
> :show_readings_for_station },
> :frequency => 5, :update => "reading_list")%>
> <div id="reading_list">
>    #my code here which obtains data from database
> </div>
> 
> show_readings_for_station is a method in the controller.....

Just to be sure, you did put:

<%= javascript_include_tag :defaults %>

inside your <head></head> section right?
-- 
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 [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-talk?hl=en.

Reply via email to