On Feb 27, 6:21 am, "T.J. Crowder" <[email protected]> wrote:
> Hi,
>
> Rather than thinking of an Ajax request as a function call, think of
> it as a message you send out. Send it, then get on with other things,
> or just wait (where waiting is not a busy-wait where the user can't do
> anything). When you get a reply, deal with the reply. In this case,
> replies are (basically) "complete" and "failure".
>
T.J., while I absolutely agree with what you have said, I think you're
missing part of BearState's question:
"Some knuckleheads might well be provoked to say, "Hey, I didn't get
my
data. There's a bug." "
The trick then is to make something happen visually to show the user
that something is happening: an animated cursor, an hourglass, even
just temporarily change the colour of something.
Some Scriptaculous facilities provide this for you (see 'indicator' in
http://wiki.github.com/madrobby/scriptaculous/ajax-autocompleter, for
example, but I think you'll have to do it yourself with the basic
Prototype Ajax classes. But it's not hard. You set something in the
'onCreate' callback, and remove or stop it in 'onComplete'.
Colin
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---