changing cursor icon

This is a discussion on "changing cursor icon" within the JavaScript Forum section. This forum, and the thread "changing cursor icon are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old May 24th, 2006, 14:28
New Member
Join Date: May 2006
Location: Ireland
Age: 27
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
changing cursor icon

Hi,

I am writing some script that posts some data to a server. I want to be able to change the cursor to a busy (processing) icon while it waits for a respose from the server. I call this line of code just before the request is sent:

app.setCursorType(
"wait");

and then reset it back to "default" when the response comes in. However the cursor does not change to the wait icon until after the response comes in.

Can anyone give me a solution as to how i could do this?

Cheers!!
Reply With Quote

  #2 (permalink)  
Old May 24th, 2006, 16:07
masonbarge's Avatar
Highly Reputable Member
Join Date: Jan 2006
Location: Atlanta GA
Posts: 631
Thanks: 0
Thanked 0 Times in 0 Posts
Re: changing cursor icon

Something like this might help:
Code: Select all
 function calc() {
  var dummy = 0;

  for (var i=0; i<1000000;i++) {
    for (var z=0; i<1000000;i++) {
      dummy = dummy + z + i;
    }
  }
app.setCursorType("default")
}

Last edited by masonbarge; May 24th, 2006 at 16:11.
Reply With Quote
Reply

Tags
changing, cursor, icon

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
finding cursor position bahy JavaScript Forum 4 Jun 26th, 2007 14:07
Cursor focus getting lost in IE kallol Web Page Design 5 Apr 10th, 2007 08:09
HUUUUGE custom cursor issue dazzelworks Flash & Multimedia Forum 5 Jan 14th, 2007 23:50
turn cursor into magnefying lens? ktsirig JavaScript Forum 2 Nov 1st, 2006 14:00
Custom cursor bruno89 Web Page Design 16 Aug 15th, 2006 00:49


All times are GMT. The time now is 10:52.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43