473,320 Members | 1,974 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Mouse cursor pointer change problem

1
I use the following code in my clientside JavaScript to make calls back to the server.
I call asp pages with querystring data.
This allows me to save, retrieve, and delete data without submitting the page.

Expand|Select|Wrap|Line Numbers
  1. function ProcessURL(strURL) {
  2. var XMLHTTP;
  3. var strResult;
  4. document.body.style.cursor='wait';
  5. XMLHTTP = new ActiveXObject( "Microsoft.XMLHTTP" );
  6. XMLHTTP.open( "GET", strURL, false );
  7. XMLHTTP.send();
  8. document.body.style.cursor='auto';
  9. }
  10.  
As per the above code the mouse pointer cursor need to change for few mints(upto my url got processed) but for me it is not getting changed.

Can anyone tell me any solution for this.
Sep 25 '06 #1
4 7394
steven
143 100+
I use the following code in my clientside JavaScript to make calls back to the server.
I call asp pages with querystring data.
This allows me to save, retrieve, and delete data without submitting the page.

function ProcessURL(strURL) {
var XMLHTTP;
var strResult;
document.body.style.cursor='wait';
XMLHTTP = new ActiveXObject( "Microsoft.XMLHTTP" );
XMLHTTP.open( "GET", strURL, false );
XMLHTTP.send();
document.body.style.cursor='auto';
}

As per the above code the mouse pointer cursor need to change for few mints(upto my url got processed) but for me it is not getting changed.

Can anyone tell me any solution for this.

The cursor simply changes whilst those extra 3 lines are being processed. I imagine that happens relatively quickly, probably too fast for you to notice. The results may take a little longer to display, but the code is executed pretty fast, so the cursor change would be too quick for you to notice.

Does the page change or reload after the code is run? Is so, try removing the last line that sets the cursor back. If the page is reloaded, the cursor will go to auto again anyway.
Sep 27 '06 #2
Hi Guys,

Iam struck with the same problem, please let me know what is the solution you guys done for the cursor change.

I have tried with quite some ways but nothing is working.

Please let me know the answer.

Regards,
Vijay.B
Apr 9 '07 #3
acoder
16,027 Expert Mod 8TB
Hi Guys,

Iam struck with the same problem, please let me know what is the solution you guys done for the cursor change.

I have tried with quite some ways but nothing is working.

Please let me know the answer.

Regards,
Vijay.B
Welcome to TSDN.

Use the onreadystatechanged event handler and the state/status properties. When the state is 4 (ready) and status is OK (200), then change the cursor back otherwise keep it as busy.

How about using a div and displaying a graphic image showing activity instead?
Apr 10 '07 #4
Hello,

Expand|Select|Wrap|Line Numbers
  1. OnStateChanged()
  2. {
  3. ....
  4. ....
  5.  
  6. if (xmlHTTP.statusText == "OK") document.body.style.cursor="default";
  7. ...
  8. }
  9.  
Regards,

Wael
Nov 22 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Csaba2000 | last post by:
I have set onmousedown to change the cursor, but this setting is ignored (IE 5.5; NN 6.1 on Win 2K Pro) until the mouse is either moved or the mouse button is released. On Opera 7.01, the setting...
4
by: Videos 4 Sale | last post by:
Would you know how to change the look of a mouse pointer on a web page. On the page I have the mouse pointer is exactly as I have at work.... white. But what I want to do is change the look of it...
2
by: Tom Alcendor | last post by:
I am building a chess game application that allows a user to click on a piece and move it to a new square. When the user clicks on a piece the mouse pointer must change to the image associated...
7
by: fernandoronci | last post by:
Hi, I've been given the task of mantaining and fixing a website which I didn't design. I'm using Internet Explorer 5.5 and 6.x. Specifically, the problem is that navigation menues (written in...
4
by: Maria | last post by:
Hello ! I try to change the cursor on the form like this : Me.Cursor = Cursors.WaitCursor 'reading from database 'showing file Me.Cursor = Cursors.Arrow
1
by: Stefan Mueller | last post by:
With the following code I can change the mouse pointer. However, if you click in Mozilla (with IE it works perfect) on 'Show hourglass' the mouse pointer changes only if you move the mouse at least...
1
by: Andy Baxter | last post by:
hello, I'm writing a panoramic image viewer in javascript. When the mouse is over the image, I want it to be a crosshair (over most of the image), or a hand/pointer (when it's over an image map...
5
by: mcraven.2 | last post by:
I know this works on all objects except drop down boxes. doc = document.all for (i=0;i<doc.length;i++) { doc(i).style.cursor = 'wait'; } Is it possible to make a cursor into an hourglass...
6
by: Jan Heppen | last post by:
Is it posible to set something so that when my vb.net (visual studio 2005, framework 2.0) application is busy that the mouse pointer change into a hourglass ? Or do i have to set everywhere...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.