Absolutely. Here:

http://scripty.walterdavisstudio.com/ajaxwait.html

Clicking the yellow box requests a PHP script that begins with sleep(2), just so there's enough time for you to see the spinner. I did it without that, and it was such a brief flash that you couldn't tell that the image was being shown. All the script is inline.

Walter

On Nov 4, 2010, at 6:28 AM, Eric wrote:



On Nov 3, 2:44 am, Walter Lee Davis <wa...@wdstudio.com> wrote:
If you just want it for one updater, then do this:

new Ajax.Updater('foo','bar.php', {
        onCreate: function(){
                $('indicator').show();
        },

Is this actually working?
The Prototype 1.6 Complete API Reference explicitly says that
"onCreate is only available to responders, as it wouldn't make a lot
of sense to individual requests" .

Eric

--
You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com . To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en .


--
You received this message because you are subscribed to the Google Groups "Prototype 
& script.aculo.us" group.
To post to this group, send email to prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.

Reply via email to