Displaying 20 results from an estimated 8000 matches similar to: "How I can stop periodically_call_remote?"
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
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'',
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,
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 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 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
2010 Jun 26
0
change parameters to periodically_call_remote
Hi,
I have a search box (id=:phrase) on my rails ajax page. I want a
periodically call remote poller to update a div whenever the value in
that box changes.
On the page containing the search box, I have the following:
<%= periodically_call_remote(:url => update_query_topics_url,
:with => "$(''phrase'').serialize()",
:frequency => 1.0)%>
I have also
2006 Apr 04
6
check_box_tag is limited?
Hello all.
Am I going totally nuts here and just want to check (Natch!) something.
A normal check_box has two value posssibilities. One for checked and one
for unchecked, the value gets submitted with a form.
The check_box_tag on the other hand, has a checked_value (Called just
''value'') and for the unchecked value...nothing, zip, nada.
This means that if you submit a form with
2006 Jul 03
9
checkboxes
in the mean time i am using a checkbox like this :
<input type="checkbox" name="var[car]" <%= var.car ? ''checked'' : ''''
unless @var == nil %> />
but i am sure there is something better than this in rails like
<%= checkbox_tag ''var'', ''car'', :checked => true %>
but this is not
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 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
2010 Oct 08
2
vfs_acl_xattr issue
Hello,
I'm using samba 3.4.8~dfsg-2 with "vfs objects = acl_xattr".
[share]
path = /home/users/xxxx
valid users = xxxx
read only = No
create mask = 0666
directory mask = 0770
vfs objects = acl_xattr
Here is my problem, i'm connecting to my share, which have a folder
'f01' with some acl.
I created a folder and broke inherit 'f02'.
2009 Jun 28
1
CheckBox and Ruby on Rails
I have two questions:
1. I have a checkbox on a form and after submit I need to check the
status of the checkbox. Any idea how to see what the checkbox is set
to? I am assuming this must be done in the controller or model but
cannot figure it out.
2. On load I am checking for a cookie and need to determine if the
checkbox should be checked or unchecked. Is there a way for me to do
this from
2006 Feb 16
5
filter a list
I''d like to add some filter choices to display a list of items. These
items has some boolean fields for example, and would like to have a
checkbox at the top of the window to let me select how to filter the
list.
here''s what i put in my controller
if @params[:filter].nil?
@params[:filter] = { ''sent'' => "1"}
end
... generate the corresponding
2007 Apr 16
6
How to use a form.check_box ?
Hey guys,
I''m trying to have a simple webform in my administration section to
add a user. I have the text_fields for adding the user''s name,
password, and password confirmation, but cannot seem to figure out the
checkbox. I want it to be a single checkbox, that if clicked, will set
the database column "access" to be "admin" and if its unchecked, set
it to be
2006 Jun 07
2
Ajax: periodicaly_call_remote problem
Hello
I am using ''periodically_call_remote'' to get some stats from database
and display it every N seconds, it''s works fine, but when I rewriting
(by page.replace ...) content of the DIV which contains
''periodically_call_remote'' definition request are still executing...
How to fix this confuse?
Thanks in advance.
2007 Mar 30
10
check_box_tag not passing 0 when unchecked?
Code:
<%= check_box_tag("person[#{person.id}][is_approved]", 1, true) %>
Rendered output:
<input checked="checked" id="person[7][is_approved]"
name="person[7][is_approved]" value="1" type="checkbox">
Problem:
The value of "1" is always passed, even if the box is UNCHECKED.
Suggestions? Thanks!
--
Posted via