similar to: Prototype Ajax - How to pass my own params to onComplete ?

Displaying 20 results from an estimated 800 matches similar to: "Prototype Ajax - How to pass my own params to onComplete ?"

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 Apr 10
1
RE: Re: Prototype Ajax - How to pass my own params toonComplete
That technique will not work for this case. By default, the response element is passed in to the onComplete handler as the first argument. Basically, all ''bind'' does it let you bind the ''this'' element to the function, so when you reference this.whatever in the function, the ''this'' refers to ''this'' in the scope that the event
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
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 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
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
2005 Dec 13
2
Ajax.Request onComplete
Hello, I have a small class where i want to use attributes of the instance when an ajax call returns, so I wrote: *var* MyClass = Class.create(); MyClass.prototype = { initialize: *function*(form_id, rendered_id) { this.form_id = form_id; *var* edit_form = $(form_id); *var* rendered_node = $(rendered_id); *if* (!edit_form || !rendered_node) { this.enabled = *false*;
2006 Jun 14
2
Global variables and onComplete in Ajax.Request
Hello everyone, Just a note, I have to pass my JSON in the response body. I''m aware of the X-JSON header, but am passing too much data to use it. No problem and I have code that has it working well. While I''m getting my JSON data back and can do whatever I''d like with it in "setMakeVars", I''d like to set it to a global var "gljson" below,
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
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 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
2009 Jul 26
1
obtain names of variables and data from glm object
Suppose we have some glm object such as: myglm <- glm( y ~ x, data=DAT) Is there an elegant way--or the "right way" within the R way of thinking--to obtain the names of the response variable, the predictor variables, and the dataset, as character strings? For instance, suppose the "right way" was to use the (currently fictitious) functions theresponse(), thepredictors(),
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
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'',
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