Displaying 20 results from an estimated 198 matches for "oncompletion".
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
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
2006 Apr 06
4
function onComplete how to overload?
Hi all. I my apps I need to use Ajax.Request Object. One of the object options is onComplete fuction which looks like this:
funcion onComplete (originalResponse)
{
..some operations
}
I need pass to function one more parameter, how to do it? is is possible? I can''t use AJAX Updater because result of Ajax Call is uploaded to the div that I defined earlier, and in my situations I
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
2006 Apr 10
10
Prototype Ajax - How to pass my own params to onComplete ?
Sorry if this has been covered before, i can''t imagine it hasn''t, but
i''ve been unable to find any information on it.
Can i pass my own parameters to the onComplete function specified by
Ajax.Request ?
My basic setup is i have an html element triggering an event (the ajax
update).
I have additional information encoded into the element about how it
should handle
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.
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
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
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
2008 Jan 16
2
InPlaceEditor and Json in onComplete
Hi, after some search, i found this
Collin Mollenhour said:
While IPE is being patched, it''d be nice if the JSON evaluated
response was available in onComplete.
http://groups.google.fr/group/rubyonrails-spinoffs/browse_thread/thread/f6cfdfc9e535f2ef/f61d98f55f055e55?lnk=gst&q=inplaceeditor+json#f61d98f55f055e55
It''s in 2006, some news about that ? Cause i''ve tried
2006 May 16
1
Ajax.Responders and onComplete
Hi all. I''m writing some kind of filter that i want passby my all AJAX request, and I stuck. I create object and pass him to Ajax Responders
like this:
var myGlobalHandlers = {
onCreate: function(){
Element.show(''loading'');
},
onComplete: function(request) {
alert(request.responseText);
}
};
2006 Mar 07
2
OnComplete Bug in IE
I was looking for a IE bug solution. onComplete event doesnt fire.
Someone post that charset in header it causes this behavior
http://www.archivesat.com/post322214.htm
I want to know if anybody has solve this issue.
Thanks
2006 Mar 31
2
evalScript && onComplete
Howdy all,
I have an Ajax.Updater with evalScript = true and I would like to
execute some javascript *after* the scripts in the answer have been
eval''ed.
How can I do that ?
I''ve tried with onComplete, but onComplete seems to be fired before
the inner scripts.
Thanks,
Nicolas
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):
2006 Jun 16
3
onCreate not getting triggered.
I am trying to get a loader to display during ajax requests, but the
"onCreate" is not getting triggered. The onComplete does.
function loadComponent(section){
values = arguments[1]
pars = $H(values).toQueryString()
pars = "section="+section+"&"+pars
var url = ''/internal/ajax/requests.php'';
var ComponentLoader = new
2006 Jun 26
2
Prototype Ajax event handlers
I''ve been trying to use the prototype.js Ajax obect''s event handlers (onCreate, onComplete) inside the options tags as
below:
function updateCalendar(today, id){
new Ajax.Updater("calendars", "calendar.inc.php",
{asynchronous: true,
onCreate: function(){ showBusy },
onComplete: function(){ hideBusy },
method: "get",
2006 Apr 10
1
RE: Prototype Ajax - How to pass my own params toonComplete ?
You need a closure.
onComplete: function (response) { NamedActionResponseHandler(theElement,
response); }
Is that what you mean?
Greg
> -----Original Message-----
> From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
[mailto:rails-spinoffs-
> bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Erin Brewer
> Sent: Monday, April 10, 2006
2006 Jul 11
0
Ajax.InPlaceEditor + onComplete
Hello,
I am trying to use the helper "in_place_editor_field" and pass an
onComplete to it, but it seems that I can''t pass that :success or
:onComplete because they become attributes of the span on to of the
Javascript:
Here is my desired Javascript outcome:
new Ajax.InPlaceEditor(''div_name'', ''link_name'',
2006 Apr 18
1
Ajax.Updater: getting onComplete to fire in IE
Has anyone found a way to get onComplete to fire in IE? I''ve built a
bunch of functionality around Updater and this is a show-stopper for
me. I''m on the latest Scriptaculous.
Thanks much,
Jamie
2006 Jun 15
2
Set global var in onComplete and keep persistant? Is this possible?
Hello everyone,
I posted yesterday about setting a global variable. I''ve done
everything I can think of to keep the global variable set outside of
the onComplete.
Is this impossible? Surely I''m not the only one who needs this.
Thanks for any help,
Kevin
--
Kevin Old
kevinold-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org