473,507 Members | 3,112 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Displaying a spinner

When posting an AJAX request to update multiple page elements, how do
I display a spinner in the elements until the request completes?
Jan 9 '08 #1
7 8811
kevin cline said the following on 1/9/2008 5:24 PM:
When posting an AJAX request to update multiple page elements, how do
I display a spinner in the elements until the request completes?
Make the request, put a spinning gif in the container, replace the
spinning gif when the request completes.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jan 9 '08 #2
Randy Webb wrote on 09 jan 2008 in comp.lang.javascript:
kevin cline said the following on 1/9/2008 5:24 PM:
>When posting an AJAX request to update multiple page elements, how do
I display a spinner in the elements until the request completes?

Make the request, put a spinning gif in the container, replace the
spinning gif when the request completes.
I thought he requested Ajax to incarcerate a male spinster.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jan 9 '08 #3
On Jan 9, 4:35 pm, Randy Webb <HikksNotAtH...@aol.comwrote:
kevin cline said the following on 1/9/2008 5:24 PM:
When posting an AJAX request to update multiple page elements, how do
I display a spinner in the elements until the request completes?

Make the request, put a spinning gif in the container, replace the
spinning gif when the request completes.
Thanks, but do the browsers have standard spinners built in?
Jan 10 '08 #4
On Wed, 09 Jan 2008 16:02:06 -0800, kevin cline wrote:
On Jan 9, 4:35 pm, Randy Webb <HikksNotAtH...@aol.comwrote:
>kevin cline said the following on 1/9/2008 5:24 PM:
When posting an AJAX request to update multiple page elements, how do
I display a spinner in the elements until the request completes?

Make the request, put a spinning gif in the container, replace the
spinning gif when the request completes.

Thanks, but do the browsers have standard spinners built in?
alert("WARNING: You will need a Twister spinner to continue")

// Later
alert("Flick your Twister spinner so you feel important.\n"+
"Don't forget to close this window.");
Jan 10 '08 #5
On Jan 9, 4:02 pm, kevin cline <kevin.cl...@gmail.comwrote:
On Jan 9, 4:35 pm, Randy Webb <HikksNotAtH...@aol.comwrote:
kevin cline said the following on 1/9/2008 5:24 PM:
When posting an AJAX request to update multiple page elements, how do
I display a spinner in the elements until the request completes?
Make the request, put a spinning gif in the container, replace the
spinning gif when the request completes.

Thanks, but do the browsers have standard spinners built in?
That's not a bad question, but it would be the OS that has the spinner
if you're talking about what the mouse pointer does when the browser
is busy.

I just tried this in jQuery...

$(this).css("cursor","wait");

....and it shows the hourglass, spinning blue circle, or whatever your
OS has for a busy. So if it's the mouse pointer you're looking to
change to its busy state, I think that's your answer. Change the
cursor to "wait".
Jan 10 '08 #6
timothytoe wrote:
On Jan 9, 4:02 pm, kevin cline <kevin.cl...@gmail.comwrote:
>On Jan 9, 4:35 pm, Randy Webb <HikksNotAtH...@aol.comwrote:
>>kevin cline said the following on 1/9/2008 5:24 PM:
When posting an AJAX request to update multiple page elements, how do
I display a spinner in the elements until the request completes?
Make the request, put a spinning gif in the container, replace the
spinning gif when the request completes.
Thanks, but do the browsers have standard spinners built in?

That's not a bad question, but it would be the OS that has the spinner
if you're talking about what the mouse pointer does when the browser
is busy.
1. Some browsers provide their own pointing-device cursors.

2. You would be referring to Mac OS X's default behavior only:
http://en.wikipedia.org/wiki/Spinning_wait_cursor

3. Probably pointing-device cursors were not meant but instead items like
these:

http://www.yup.com/articles/2006/05/...ners-for-ajax/
I just tried this in jQuery...
Oh, please. Search the archives for jQuery and why to eschew it.
PointedEars
--
realism: HTML 4.01 Strict
evangelism: XHTML 1.0 Strict
madness: XHTML 1.1 as application/xhtml+xml
-- Bjoern Hoehrmann
Jan 10 '08 #7
kevin cline wrote:
On Jan 9, 4:35 pm, Randy Webb <HikksNotAtH...@aol.comwrote:
>kevin cline said the following on 1/9/2008 5:24 PM:
>>When posting an AJAX request to update multiple page elements, how do
I display a spinner in the elements until the request completes?
Make the request, put a spinning gif in the container, replace the
spinning gif when the request completes.

Thanks, but do the browsers have standard spinners built in?
They have, and for example in Firefox you could use this URI:

chrome://global/skin/throbber/Throbber-small.gif

(That's easy enough to find out with the DOM Inspector.)

However, the problem is to detect Firefox (or any other browser for
that matter), provided you even can refer to the animation with an URI:

http://PointedEars.de/scripts/test/whatami

So you better refer to your own image resources.
PointedEars
--
var bugRiddenCrashPronePieceOfJunk = (
navigator.userAgent.indexOf('MSIE 5') != -1
&& navigator.userAgent.indexOf('Mac') != -1
) // Plone, register_function.js:16
Jan 10 '08 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
508
by: Dave Posh | last post by:
I seem to be having a problem displaying time stored in mysql. The format stored in the database is 13:15:05. The database data type is time. I'm using asp vbscript and sql to retrieve the time...
4
2270
by: Vinod | last post by:
Hi, I want to know how we can create a time spinner , similar to the the one which we can see in Date/Time properties , when we click it. I want to include it in my asp program. Thanks in...
1
1407
by: MSDousti | last post by:
Hello I want to put a Spinner and set an Edit to its Buddy. I have some problems: 1- I want the spinner to add/subtract 0.01 to/from the number shown in Edit, but it just works with...
1
8711
by: Macca | last post by:
hi, I am looking to use the date/time picker control to allow the user to select a time. I have done a similar thing in a C++ project by formating the date time picker to show only the time...
2
4313
by: RAJ | last post by:
In our multi-tier application, we have several ASP.NET user controls which will update the same data source provided by middle tier logic. In this particular scenario we have one user control...
1
2682
by: JLD | last post by:
I need to know the commands in DOS to create a batch file that produces a spinner in DOS. I am in desperate need. I have searched all over the web and have found nothing. I also need to know if I...
6
12064
by: Guy Noir | last post by:
Hello. Is there a way to make the spinner control "Rollover" In other words, when we hit the down button on the control and reach zero, if I press down again I would like it to rollover to 9. ...
4
4203
by: anudu | last post by:
Hi, I am developing a system using asp.net, ajax and javascripts. I have an interface that display user details. when the user enters the Id and press search button the user details will be...
1
1945
by: Brian | last post by:
How do i make the spinner control... spin the time... like the windows time setting?
0
7221
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7109
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7313
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7029
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7481
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5039
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1537
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
758
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.