Displaying 20 results from an estimated 6000 matches similar to: "Set global var in onComplete and keep persistant? Is this possible?"
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 Feb 09
5
Ajax.Updater not populating element - please help
Hello everyone,
This is related to my post a few days ago regarding multi select
lists. I''ve rewritten the code and now can''t seem to get the
Ajax.Updater in getModels() to "execute", and the element never gets
populated.
I know it''s something obvious and hope someone could point it out to me.
Thanks for any help.
Here''s my code:
<script
2006 Feb 08
29
Autocomplete and Firefox
Having problems with the autocomplete on my linux box and firefox.
When I use form tags it breaks, without form tags everything works fine.
Exact copy of the example provided, but I added form tags.. The initial
search and select works but then the box sort of "locks up" and I can''t
change it at all, If I do try to type something nothing changes but a
second later the whole
2006 May 25
13
functions calling functions
I think I may be missing a fundamental concept I hope someone can help
me with. I have functions that won''t call other functions. Particularly
after an Ajax request.
In the following object the ajax request onComplete calls the
ajaxFetched function successfully. ajaxFetched tries to call function2
but function2 does not execute.
Any ideas or workarounds?
thanks
Kevin
o =
2006 Feb 07
1
Help needed with conflicting EventObserver
Hello everyone,
I have a page that populates/updates make, model and year select lists
via Ajax.Updater and I think that an EventObserver is causing a
conflict.
Here''s what I''m trying to do. I''m using this page as a create and
edit page for a car database. If I''m calling the page in edit mode,
I''ll want the make, model and year set (using 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.
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 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 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 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*;
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 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
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 Mar 17
6
Updated the xml code to be more object-oriented
I changed the code to be more prototype-esque, and created a class
called XMLDoc. I may add more functionality to it later, hence the more
generic name, but you do something like this to convert XML to a hash:
XMLDoc = Class.create();
Object.extend(XMLDoc.prototype, {
initialize: function (xmlDoc) {
this.element = xmlDoc;
},
asHash: function () {
if (! this._xmlHash) {
2006 Aug 31
2
Event.observe problem
Hi everyone!
I came across and interesting problem with prototype Event.observe.
Take this code for example:
<script type="text/javascript" src="cropper/lib/prototype.js"></script>
<script language="JavaScript"><!--
function handler(e) {
if (document.all) { e = window.event; }
var key;
if (document.layers) key = e.which;
if
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 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
2006 Jun 29
11
Autocompleter without a default choice
Hi,
I have an ajax auto completer for a text field in a form. All''s good.
Unfortunately, I also want the form to be submitted when the user hits
''return'' in the text field.
This combination of circumstances means that if the user is typing his
entry and then hits return to submit it is possible that dang auto
completer will pop up and complete his entry for even if he
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);
}
};