Displaying 20 results from an estimated 2000 matches similar to: "onSuccess and onComplete Prototype callbacks"
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 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 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
2005 Oct 03
0
Prototype Ajax.Request (onLoading and onSuccess) question
Hi,
I am working on a page that updates a calendar via Ajax.Request when the
previous (''? <http://luther.edu/new/?cur_month=2005-09>'') or next (''?
<http://luther.edu/new/?cur_month=2005-11>'') month links are clicked .
http://luther.edu/new/
It seems to work fine if I don''t call anything onLoading.
http://luther.edu/new/noonloading.php
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
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
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
2006 Jan 25
10
Ajax.InPlaceEditor onSuccess: ???
I''m looking for onSuccess: in Ajax.InPlaceEditor, but it doesn''t
appear to exist. onComplete isn''t what I need because I only want my
callback on success. Is there a way to do this?
Thanks,
Jamie
2008 Jan 28
0
in_place_editor_field using onComplete
Can someone please show correct usage of the Rails
in_place_editor_field in conjuction with onComplete? (Actually what I
really want is onSuccess, but I can check the response code.)
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
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
2008 Feb 22
1
Ajax.Responders.register: onFailure not working
Hello together.
I''ve tried to register an onFailure behavior for all my Ajax.Requests
and .Updaters to handle a session-based timout system.
On each server request via Ajax there is a check whether the user
hasn''t made something for the last x minutes, and if he hasn''t, the
php page throws an 403 forbidden header (via header("HTTP/1.1 403
Forbidden")).
I am
2006 Feb 14
7
onFailure fails?
Hi all,
I have this code:
new Ajax.Request(''non_existant.file'', {
onSuccess:function(){alert("yay");},
onFailure:function(){alert("boo");}
});
Why does the onFailure alert never get called? It works fine if I use
a real file (onSuccess gets called).
Thanks,
Douglas
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'',
2007 Nov 18
0
evalScript usage for script with src attribute
Is there anyway to do
new Ajax.Request(''mailing-list-users.html'',
{
method: ''get'',
evalScripts: true,
onSuccess: function(transport){
var response = transport.responseText || "no response text";
$(''content'').innerHTML = response;
},
onFailure: function(){ alert(''Something went
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 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):
2008 May 21
6
this.initialize has no properties error in Prototype Code
Hi All,
I''m a super newbie with Prototype and am trying to implement my first
solution using it.
This is my code:
var span = ''totalViews'' + video_id;
var params = ''video_id='' + video_id;
Ajax.Response(''trackVideo.php'',
{
method: ''post'',
parameters: params,
onSuccess: function(transport)
{
2007 Nov 07
2
Ajax.Request -post
Hello SpinDoctors,
I am fairly new to prototype js framework. I love it.
Have various Ajax -get calls... which work wonderful...
Suddenly, realised that in one case I have to use ''post'' to overcome
the limitation on URL length...
Have changed the parameters to suit to ''post'' request, but nothing
happens... need your help...
function getOptionalGroups(key){
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