iEntry 10th Anniversary Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Code > JavaScript

Reply
 
LinkBack Thread Tools
Old May 24th, 2006, 11:28 AM   #1
New Member
 

Join Date: May 2006
Location: Ireland
Age: 28
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 javanui is on a distinguished road
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!!
javanui is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 24th, 2006, 01:07 PM   #2
Highly Reputable Member
 
masonbarge's Avatar
 

Join Date: Jan 2006
Location: Atlanta GA
Posts: 649
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 masonbarge will become famous soon enough
Re: changing cursor icon

Something like this might help:
Code:
 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 01:11 PM..
masonbarge is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks

Tags
changing , cursor , icon


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 4 June 26th, 2007 11:07 AM
Cursor focus getting lost in IE kallol HTML, XHTML and CSS 5 April 10th, 2007 05:09 AM
HUUUUGE custom cursor issue dazzelworks Flash and ActionScript 5 January 14th, 2007 08:50 PM
turn cursor into magnefying lens? ktsirig JavaScript 2 November 1st, 2006 11:00 AM
Custom cursor bruno89 HTML, XHTML and CSS 16 August 14th, 2006 09:49 PM


Search Engine Optimization by vBSEO 3.2.0 RC8