Displaying 20 results from an estimated 1200 matches similar to: "PeriodicalExecuter passing variables to the callback function"
2007 Sep 23
1
Does prototype get rid of PeriodicalExecuter once it is stop()?
Hello,
in my app the user can click "start" to ask for regular refreshments
of the data, and can also click "stop" to stop this refreshments (and
then he can click "start" again to restart the process). im just
wondering that , if he keeps starting and stopping, that is creating
new PeriodicalExecuters and stoping them, if there will be any memory
issues, does
2008 Jun 07
3
PeriodicalExecuter stops when form is submitted in Safari 3
Hi I''m having a problem using PeriodicalExecuter with a form.
I have a monitoring pane that updates status of form processing,
and it stops working when I submit a form. It works with Safari 2,
IE, Firefox, but not with Safari 3.
I''ve made a test script: http://www.charmm-gui.org/test.html
It updates a textarea, but it stops updating when the form is
submitted in Safari 3. Any
2007 Mar 10
2
Managing PeriodicalExecuters in an Ajax app. How?
Hi all
I have to deal with multiple PeriodicalExecuters over several
Interfaces. Each has it own. Now this all works, but i when i go back
and forth between them i spawn another and another etc...
I tried to push the instance of PE to a global array and on each
change in the interface invoke a stop() on them. This sounds okay, but
it is obviously not working 100% of the time.
Any ideas how to
2008 May 07
2
prototype PeriodicalExecuter pause/restart patch
I''ve come up with a patch to PeriodicalExecuter which allows for
pausing and restarting without losing the time remaining. I''ve
searched for something like this, but the only one I found linked to a
dead blog. I wondered if anyone would look over the code, maybe it
will make its way into the official release.
var PeriodicalExecuter = Class.create({
initialize:
2006 Mar 13
0
Turn off Responder for PeriodicalExecuter?
I''ve got a PeriodicalExecuter refreshing some content on my homepage. I''ve also got a Responder
popping up a ''Working...'' box when ajax calls are being made. Is there a way to tell the Responder
not to run when the PE is running?
I''m new to prototype and scriptaculous so no assumptions of my knowledge are too low. :)
2006 Jan 19
0
PeriodicalExecuter and clearInterval
I apologize if this is not an appropriate question for this list (I couldn''t
find a mailing list for prototype). Anybody know of a way to use the stop
the PeriodicalExecuter in prototype from executing? In traditional js, I
would just call "clearInterval(id)".
Many Thanks,
Josh
_______________________________________________
Rails-spinoffs mailing list
2005 Oct 07
0
Stopping Prototype''s PeriodicalExecuter()
Hi,
I was wondering if there was a way to stop Prototype 1.3.1''s
PeriodicalExecuter? I don''t see any start()/stop() methods off of that
object in the API.
I noticed that Ajax.PeriodicalUpdater has start() and stop() methods, but
haven''t worked through the syntax enough to know how to have similar
behavior in just the PeriodicalExecutor object itself.
Thanks,
Jess
2009 Nov 12
9
uninitialized constant XML::Document
Hi All,
I have installed "libxml-ruby" gem on my ruby instllation. while trying
to create xml document with ruby progam in Rad Rails am getting error
like "uninitialized constant XML::Document (NameError)"
do i need to config any thing else in environment.rb file
Thanks in advance
Chinna.
--
Posted via http://www.ruby-forum.com/.
2007 Feb 23
4
Does Ajax.PeriodicalUpdater have a shield against multiple parallel executions?
Hello
Does Ajax.PeriodicalUpdater have a shield against multiple parallel
executions?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group.
To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email
2006 May 02
6
Stopping the Ajax.PeriodicalUpdater -- My Kludge?
Well, I''ve been burning the midnight oil trying to figure out how to
issue the stop() command to a PeriodicUpdater. I''ve come up with a
solution that uses setTimeouts to call the stop function. I think my
solution is very kludgey... especially since I''m new to Javascript +
Prototype.
Can anyone let me know if the below code is at all proper? :)
---------
Summary: A
2010 Feb 10
4
AJAX responses
Does anyone know if it''s possible to do multiple AJAX responses to a
single request in Rails? I did some googling but didn''t find anything
extremely helpful.
Thanks.
--
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
2006 Sep 20
5
[Slightly OT] Uploading files with firefox
I have been successfully using the latest mongrel and upload progress
plugin with safari but firefox seems to have some issues with any
request
that takes longer than 5 seconds to complete. You get the "Warning:
Unresponsive Script" screen. Apparently this problem is fixable by
following this:
http://computer-vet.com/weblog/2006/04/28/
firefox_warning_unresponsive_script.html
2011 May 24
2
Data Frame housekeeping
Hello,
I have a large data frame that is organized by date in a peculiar way. I
am seeking advice on how to transform the data into a format that is of
more use to me.
The data is organized as follows:
STN_ID YEAR MM ELEM X1 X2 X3 X4
X5 X6 X7
1 2402594 1997 9 1 *-00233* *-00204* *-00119* -00190 -00251
-00243 -00249
2 2402594
2007 Aug 25
5
onLoad event with an update function
Hello,
I am using the following code:
new Ajax.Request(''ajax.php'',
{ parameters: { task: ''home'' },
onSuccess: function(transport)
{
$(''home_montage'').update(transport.responseText);
new Effect.Appear(
2008 Sep 24
5
Auto refresh field
Hi,
I would to know if it is possible to automaticly refresh some
particular field ?
Clearly, I have a model called "productions" with fileds "name" and
"numbers".
Another application update fields "numbers" of the mysql table.
On an "index.html.erb", I have the list of "production" and i would
like to view automaticly when value of
2006 Aug 16
7
Forward of moderated message
OK I know whats happening. Your while loop completes and calls kill
on the worker before your task_progress controller method ever gets
called> So the worker is deleted and when you try to access it from
rails you get an error because there is no longer a worker at that
job key. The kill method is meant to be used within a worker that you
fire and forget. If you want to get the
2006 Nov 10
8
PeriodicalUpdater and popups.
Hi,
I don''t know what might cause this, but maybe you do. If I put the
code below in a html-file and open it in a popup. I get an error on
row 129 in the latest prototype.js bundled with 1.6.5.
popup.html:
<script type="text/javascript" src="/inc/api/prototype.js"></script>
<script type="text/javascript">
Event.observe(window,
2008 Jan 05
4
PeriodicalUpdater onComplete broken?
Using the PeriodicalUpdater, I''m finding the onComplete is not firing.
I thought I''d get some feedback here before filing a bug report.
http://ianty.com/updater/update_test_1.6.0.1.html
http://ianty.com/updater/update_test_1.6.0.html
The above are examples of this for prototype 1.6.0 & 1.6.0.1.
I''m expecting the onComplete to fire after the update takes place, per
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 Jun 14
0
Automatic save
I have a page where people might be writing information for a long time.
So I want a feature like autosave.
I have used PeriodicalExecuter and Ajax.Request to submit the form
regularly. That part is working fine.
I also made a link_to_remote that calls a show method and updates with
information from the database. The show method uses respond_to to see if
it should return javascript or html.