Displaying 20 results from an estimated 4000 matches similar to: "Stopping Ajax.PeriodicalUpdater based on response"
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
2005 Dec 21
0
Prototype: correct useage of onComplete with Ajax.PeriodicalUpdater
Hello all,
I know it''s a Prototype question, but I hope someone can tell me what
I''m doing wrong (I hope Prototype gets documented soon ;-(
Problem: using a onComplete callback with Ajax.PeriodicalUpdater
(using scriptaculous 1.5 with Prototype 1.4)
Works:
function fooBar() {
Element.hide(''foobar'');
}
new
2005 Dec 21
1
RE: Prototype: correct useage of onCompletewithAjax.PeriodicalUpdater
The only call that PeriodicalUpdater will make periodically to you is
the insertion call.
I think of onComplete as being ''I''ve done everything I was going to do'',
which for Updater is right after it''s done a single update, but for
PeriodicalUpdater, it''s after it''s finished all of its updates, so
you''ll only get it once for any call
2005 Dec 21
1
RE: Prototype: correct useage of onComplete withAjax.PeriodicalUpdater
>From a quick look at the source code, it looks like onComplete is only
called when the whole thing is done - in the case of Updater, right
after the update, in the case of PeriodicalUpdater, right after it has
been stopped.
It looks like you need to pass your callback method as an ''insertion''
method in the options. This takes two parameters, the first will
probably be the
2007 Aug 29
1
Re: using Ajax.PeriodicalUpdater in iPhone
it''s probably the iPhone.
I mean, would you *really* want your phone to be connected to the internet
all the time?
On 8/28/07, richieright-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <richieright-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
>
> Hi,
>
> I met a strange problems with PeriodicalUpdater in iPhone. This timer
> event will last only four or five
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
2007 Mar 01
3
Ajax.PeriodicalUpdater using Effect.Highlight to highlight newly loaded div
Hi folks. So far I have managed to get dataloading into a div froma
php script. This script just passes the time on the server in a div to
the javascript below. I am trying to get the last loaded data to call
Effect.Highlight but it seems to highlight the 2nd last data instead.
Can anyone see what''s going wrong here? I''ve tried everywhere to solve
this.
Check the code in action
2008 Jun 13
3
dynamically change frequency in periodicalUpdater
Hello All,
I''ve seen this topic but it seems no one has post a response. I''m
using periodicalUpdater to display live content queried from a
database. Sometimes the result can be thousands of rows and before it
finishes processing (displaying as a visual indicator) all the data,
the next request is sent to the server. I''d like to have a
periodicalUpdater whose
2006 May 12
0
draft-proposal for Ajax.History - History/Bookmark handling in Ajax apps
Hi list,
In one of my previous projects I had to satisfy the requirement of handling
browser back- and forward calls within an Ajax application. Thus I didn''t
get an urge to switch the JS part of this project to an other framework like
dojo (which supports Browser history handling out-of-the-box), I had to come
up with an idea of doing this with prototype/scriptaculous.
The arisen
2005 Dec 05
3
Effect.Highlight on Ajax.Updater
Hello to all list members...
Exchuse for my bad english, I don''t write english very well.
I''m searching for a solution to hilight a div when his value change.
The value in these div is take from Ajax.Updater .
the code is:
new Ajax.Updater(''acc'',''tools/head_info.php'',{asynchronous:true});
and have a settimeout to recall it every 5 seconds.
2006 Nov 08
1
Yet another periodicalupdater question
I have something I want to do with the periodicalupdater..
1) place text in a field by id (I know how to do this part as
periodicalupdater makes is quite easy)
2) run a javascript statement to assign a value to a variable.
Any ideas how I can do this with one periodicalupdater statement?
Thanks,
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are
2005 Dec 29
2
Ajax.Request: onLoading executed after onComplete in IE
Hi,
i''m trying to use a visual indicator for my Ajax requests. It''s based on the
shopping cart demo at script.aculo.us and works great in Firefox, Konqueror
and Opera, but fails in IE6. For some reason (timing problems?) onComplete is
executed before onLoading, so the indicator is shown but not hidden when the
request has finished.
Oddly enough it works fine in the shopping
2007 Sep 28
3
Why PeriodicalUpdater doesn't work on Internet Explorer?
I have the following code:
<script type="text/javascript">
Event.observe(window, ''load'', function() {
var updater = new Ajax.PeriodicalUpdater(''chatbox'', ''chat.php'',
{method: ''get'', asynchronous: true, frequency: 0.55, decay: 2,
onSuccess: function(){$(''chatbox'').scrollTop=$
2006 Jun 30
2
Ajax.Request synchronization (onSuccess before onComplete?)
2 questions regarding the synchronization of these events.
1) is onSuccess called before onComplete ( I assume it is)
2) if called after, is onComplete called after the onSuccess
method has completed or are you at the mercy of synchronization issues?
Hopefully someone can enlighten me. I tried reading the Prototype.js but
couldn''t seem to determine this on my own.
2006 Feb 20
1
[Prototype] onSuccess Event and Ajax.Updater bug in IE
Hi all,
Is there a known bug with Ajax.Updater not working in
IE6? I''m having
trouble with a Autocompleter control that calls a
function that contains
an Ajax.Updater as an AfterUpdateElement callback. It
works fine in
firefox, but I don''t think Ajax.Updater gets called
under IE.
http://pastebin.com/563889
1.
function updater(input, item) {
2.
var
2006 Feb 21
1
RE: [Prototype] onSuccess Event and, Ajax.Updater bug in IE
Joe,
After removing all occurrences of charset=utf-8 from
my headers I am
still getting the same bug in IE.
Currently, it''s Content-Type: text/html
Any other suggestion?
Nathan.
> Message: 2
> Date: Mon, 20 Feb 2006 09:13:57 -0500
> From: "Joe Hudson" <joe-x8g0hQFNjJhWk0Htik3J/w@public.gmane.org>
> Subject: RE: [Rails-spinoffs] [Prototype] onSuccess
Event
2006 Oct 04
0
onSuccess and onComplete Prototype callbacks
Hi everyone,
The onSuccess callback gets fired when HTTP status code is 200, and
onComplete gets fired AFTER onSuccess/onFailure when the browser has
finished handling the request, i.e. when the DOM is ready, right?
So my question is where to put code that MUST ONLY be executed if HTTP
status code is 200 AND Ajax.Request was called with option ''evalScripts:
true''. The code in
2007 Nov 19
1
Running a script after evalScripts has completed
Hello,
(I originally posted this on the Prototype-Core group by mistake,
sorry)
I am running a request via Ajax.Updater with evalScripts = true and an
onComplete function.
I find that my onComplete function executes before the script content
has been evaluated. Looking through prototype.js (v. 1.5.1) this seems
to be caused by the scripts being executed as part of this line
(1352):
2007 Feb 19
0
Ajax.Update nested within Ajax.Request
Hi everyone,
I have a script below that submits a form using Ajax.Request which is
working fine. onComplete or onSuccess though, I''d like it to refresh
the div form (formCapture), but so far I can''t get it to work. The
script runs to into the onComplete stage, but the div isn''t refreshed.
Can anyone help with this?
Regards,
Robert Hofmeyr
function subForm() {
new
2008 Jan 22
3
prototype 1.6 Ajax.PeriodicalUpdater executing old scripts??
Hello ,
I have a PeriodicalUpdater executing every x seconds and sends a ajax
request to update an element.
Each time it comes back, the element is getting replaced with some
html and and possibly <script>coolFunction()</script>.
This seems to work fine when for prototype 1.5.
However when I upgraded to prototype 1.6, it seems to execute
coolFunction() as many times as the request has