similar to: change parameters to periodically_call_remote

Displaying 20 results from an estimated 10000 matches similar to: "change parameters to periodically_call_remote"

2007 Feb 06
2
Pass parameters in periodically_call_remote?
Hi, I am still new to RoR, so please bear with this newbie question. I would like to have the application in view to press result back to the controller when the periodically_call_remote is called. Right now, this is the code in the view: <div id="get_result"></div> <%= periodically_call_remote(:update => ''get_result'',
2005 Dec 31
0
Question about periodically_call_remote
I''m not sure how to ask this succinctly, so bear with me. I''m trying to learn how to use periodically_call_remote to update a div. I have a table whose rows have the data I want to display in the div, one at a time, every 10 seconds (let''s say). For simplicity let''s pretend each row just has one column, "description," which is just a text
2006 May 01
2
Can I send a redirect_to() call to a periodically_call_remote() function?...
Hi, I''m using Rails 1.1 and the periodically_call_remote() helper to query the server for the progress of a long running action. I''m using the excellent new RJS partials to send a page.replace_html() to update the status information on the page--which works very well. When the action completes I''m also trying to send a redirect_to() by the same approach--which
2006 Jul 15
1
Is there a huge performance difference between using multiple periodically_call_remote functions or one?
My application has multiple things on the interface that need to be updated periodically. Some things every second, others not so much. Some of these things are global, meaning they are on the interface at all times, and some of these things are view specific. So what I figured I would do is add the periodically_call_remote function for the global elements and another one for the view
2006 Apr 03
1
Q: periodically_call_remote ( how to make it execute just once? )
I posted this ealier on the web forums but noticed a similar question about this function and one user responded to try this list instead. If anyone can help I would greatly appreciate your suggestions. Q: Is there a way to use periodically_call_remote to run just one time instead of every '':frequency'' seconds? I tried putting the call inside the div container thinking it
2006 May 01
1
Can I send a redirect_to() call to a periodically_call_remote() refresh?
Hi, I''m using Rails 1.1 and the periodically_call_remote() helper to query the server for the progress of a long running action. I''m using the excellent new RJS partials to send a page.replace_html() to update the status information on the page--which works very well. When the action completes I''m also trying to send a redirect_to() by the same approach--which
2006 Jun 10
0
Problem with ''periodically_call_remote''
My ajax-application have folowing behaviour: Just 1 page loaded with 1st request and all other content always loaded into special DIV using ajax when user clicked menuitems. On some "pages" I using ''periodically_call_remote'', but I can''t STOP it! Simple example: View: <div id="view"> <%= link_to_remote ''Stop tracking'',
2006 Apr 03
0
Question: periodically_call_remote ( only run once? )
Is there a way to use periodically_call_remote to run just one time instead of every '':frequency'' seconds? I tried putting the call inside the div container thinking it would be overwritten when the first remote call replaced the div contents but no such luck. I''d basically like to simulate link_to_remote but not require a click and have it performed automatically
2005 Nov 09
0
conditional periodically_call_remote
Is there a way to only run periodically_call_remote when a condition is true? I essentially want the ability to start and stop periodically_call_remote, based on a user initiated action. Thanks, John Cole
2006 Jan 18
2
Newbie question about periodically_call_remote
Hi, I''m new to Ruby on Rails (and Ruby itself). So far, I''ve been able to find answers to most of my questions in the docs or mailing lists. One thing I haven''t been able to find the answer to is how to stop a periodically_call_remote call. My first Rails app is going to be a front-end for our Ant-based build system at work. While the build is running,
2005 Nov 09
3
AJAX form Parameters jumbled.
Sorry for the repost but I originally posted this as a response to another thread. I have a text field called ''phrase'' but the parameter values always come up as nil and when I check the parameters dumped in the error message I do not get the normal hash you''d expect. Instead of something like {"phrase"=>"jim"} I get:
2006 Apr 19
9
Initial load time when periodically_call_remote
When I do periodically_call_remote with e.g. :frequency => 30 after initial page load I have to wait 30 seconds until this partial renders first time. Does anybody know how to make ROR to render partial on web page load, and then start periodic calls every 30 seconds? I tried to put <div id=''mydiv''><%= render(:partial, :action=>''myaction'')
2006 May 23
1
Help with observe_field
Folks, When I use observe_field, I get a javascript error "Form is not defined". Any thoughts? __View: search.rhtml__ <label for="search">Search:</label> <%= text_field_tag :search %> <%= observe_field(:search, :frequency => 0.25, :update => :search_hits, :url => { :action =>
2006 Apr 07
1
How I can stop periodically_call_remote?
I need make progress bar with following function: # Ruby on Rails code <%= periodically_call_remote(:update => ''progress-bar'', :url => { :action => :progress }, :frequency => 0.1 , :complete => "check(request)") %> How I can stop it? If I have this: /* JavaScript code */ function check(request, object) { if (request.responseText ==
2006 Aug 06
1
periodically_call_remote forces asynchronous to true?
Whenever I use periodically_call_remote it outputs as the following: <script type="text/javascript"> //<![CDATA[ new PeriodicalExecuter(function() {new Ajax.Request(''some_url'', {asynchronous:true, evalScripts:true})}, 2) //]]> </script> If I understand correctly, setting asynchronous to true means that if one request takes longer than 2 seconds,
2006 Jul 15
0
periodically_call_remote :frequency
Is there any way to change the frequency of a running periodically_call_remote without having to reload the whole page? -- Posted via http://www.ruby-forum.com/.
2006 Jun 01
0
periodically_call_remote and update element
Hey people Is it possible to use periodically_call_remote and only update the html-element if the response is of a certain kind? For example, is it possible to return different http-status codes to indicate if the element should be updated? Like, only update if the status is 200. //Daniel -- Posted via http://www.ruby-forum.com/.
2010 Jul 02
0
Rails 3 periodically_call_remote
Hi ¿What is the equivalent to periodically_call_remote in Rails 3? Thank you -- 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-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For
2007 Feb 22
0
Problem with Cacti and CentOS 4.4
I just for the first time attempted to install Cacti from the RPMForge repo on CentOS 4.4. And I have to say that it hasn't gone very well at all. I have installed Cacti on Fedora a good 20 times with absolutely no problem. Basically the default rrds/graphs for localhost are generated but no other rrds/graphs are generated. When I look at the poller cache or snmp cache I see all the data.
2006 Nov 28
1
observe_form, observe_field, dynamic forms help
I made a pretty lengthy post on what I''m doing here: http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/89a2b8e54a874dd9 Short version: I have a radio_button group of two. If one is clicked another pair of radio buttons is added, if the other is clicked it is removed. observe_form does not work for elements added after initial page load. observe_field does not work