Displaying 20 results from an estimated 200 matches similar to: "Ajax.Request: onLoading executed after onComplete in IE"
2006 Feb 02
8
this pointer in Event.observe function
Hello,
please consider the following code example. It applies the onclick handler to
all image tags, and through window.event it ensures that it works in IE too:
--------------------------------------------------
var imgs = $(''foo'').getElementsByTagName(''img'');
for(var i=0; i<imgs.length; i++) {
// Apply onclick handler
imgs[i].onclick=function() {
2006 Jan 20
5
Height problem after interrupting SlideDown/SlideUp effects
Hi,
i have a problem with the the SlideDown and SlideUp effects. Since a similiar
problem is also visible on the script.aculo.us homepage, i''m going to explain
it this way.
- Go to http://script.aculo.us/
- On the main site below "visual effects", click "Advanced options", the sub
panel will scroll down.
- Hit the close button, and while the panel is still
2006 Feb 09
3
Draggables and Droppable performance (tips)
Hi all. I have some performance tips to share. I had been having
problems with the overall performance of the drag/drop objects. This is
due largely to the fact that my project really pushes the limits
(potentially thousands of draggables and hundreds of droppables in the
document at a time, although that is the extreme case).
Something I discovered is that the performance of dragging goes WAY
2005 Dec 22
0
RE: Re: ajax - multiple updates on singlexmlhttprequest
>From looking at the Prototype code, it looks like any text in the
''X-JSON'' header will be eval''d and passed as the second parameter to
your onSuccess handler.
Your handler function could then be (using all the power of Prototype):
var handlerFunc = function(t, json)
{
// Update info container
Element.update(''someId'', json.foo);
}
But your
2006 May 25
7
Hide content before page load
Hi,
i''ve been experimentating with dynamicCSS.js [1] to hide content only if
JavaScript is enabled. It works pretty well and fires before onload to avoid
the flash of visible content. Now i''m wondering if there is a Prototype way
of doing this.
[1] http://www.bobbyvandersluis.com/articles/dynamicCSS.php
My main problem is that Prototype functions like Element.toggle() do
2006 May 28
13
JSON not auto-evaluated
Hi,
please consider this stripped down example:
new Ajax.Request(''foo.php'', {
onSuccess: function(t, json) {
alert(json.myParam);
}
});
According to http://www.sergiopereira.com/articles/prototype.js.html, the
second param is supposed to be the evaluated json object IF the X-JSON header
is send in the response. I send the header in my script. However, the json
var
2006 Apr 30
1
Draggable - how start action on start dragging and end action on droppping
Hi all. I have got situation that I made element draggable - and
when element is dragged I want to start some action (e.g. shown
AJAX indicator, and change one of CSS class in dragging element).
What is the best way to achieve this? I search source code of the
Draggable and I saw that there is 2 method: Draggable.initDrag
and Draggable.endDrag so it looks like in initDrag method i
should
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
5
ajax - multiple updates on single xmlhttprequest
Hello,
I was wondering whether anybody would share a working example of a multiple
html update on a single xmlhttprequest.
Thank you in advance for your help.
_________________________________________________________________
On the road to retirement? Check out MSN Life Events for advice on how to
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement
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
2006 Jun 07
6
What if $$() for?
In the prototype.js library, what doe the $$ function do, and how do you
use it
--Will Merrell
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 Apr 24
26
prototype-based color picker
has anyone in this list ever tried to make a javascript color picker
something like http://www.daantje.nl/blog/index.php?buttonID=37
or http://typetester.maratz.com/
i just thought i''d ask before i force myself to doing this.
thanks
mark renn
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
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
2003 Mar 09
1
Please help me!!
Dear Ogg Vorbis,
I'm a senior in Information Technology, and my thesis is on Audio Watermarking. As a new starter in audio, I really need your help, and suggestions. I think in order to persue something on Audio I have to know much details about audio formats. So could you please show me where I can find the documents about the information I need ? Finally,could you please answer a confused
2005 Dec 19
4
Observing Ajax Requests?
Is it possible using scriptaculous/prototype to watch out for any
happening Ajax activity, and do something like show/hide a spinner gif
to indicate to the user that there is activity taking place in the
backgound?
Regards,
Michael
------------------------------------------
Michael Roper - Web Developer
WORLDWIDE ONLINE PRINTING AUST/NZ
[T 08 9350 2300] [F 08 9451 6048]
[E
2002 Mar 21
2
optim with gradient
> Date: Wed, 20 Mar 2002 14:31:03 +0100 (CET)
> From: =?iso-8859-1?Q?G=F6ran_Brostr=F6m?= <gb at stat.umu.se>
> Subject: [R] optim with gradient
>
> I want to maximise a function using 'optim' with a method that requires
> the gradient, so I supply two functions, 'fun' for the function value
> and 'd.fun' for its gradient. My question is: Since
2006 Jun 25
17
JavaScript Compression
Is there a good windows-based JavaScript compressor which will reliably
compress script aculo and prototype?
Sam
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
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 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);
}
};