On 04 Sep 2009, at 14:49, Heinz Strunk wrote:

> Google and the search function didn't help me this time. Is it  
> possible
> to change the mouse cursor while waiting for a response of a remote
> function call?

First of all, since a remote call should be asynchronous, I see no  
real reason to do so. An indicator that you just show and hide is a  
more appropriate indicator.

You could try and see if:

$$('body').first().setStyle({'cursor': 'wait !important'});

works, but I think at least one or two browsers won't allow you to do  
so. Reset it with:

$$('body').first().setStyle({'cursor': 'default'});

As I said, untested and probably won't work, but that's the only  
possible solution I can think of right now.

Best regards

Peter De Berdt


--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to