Jump to content

[SOLVED] Blinking cursor on setTimeout function...


blackcell

Recommended Posts

I have an xajax(http://community.xajaxproject.org/) function that basically reads values from a database. I have a javascript function that uses setTimeout to restart the function every 1000 ms.  The thing that is annoying is when your hovering the mouse on the page, the mouse cursor blinks to an hour glass and back. Everything works fine but it is annoying.  I know it can be done to where this won't happen because of a W3C example at:

http://www.w3schools.com/js/tryit.asp?f … ming_clock

 

Anybody know what is happening or the science behind it?

Link to comment
Share on other sites

I assume xajax sets the body cursor to an hour glass when it runs an ajax request. Search the JS code for "cursor" and you might find the solution.

 

Just downloaded the code and they have an option to set it off

 

in the xajax_core_uncompressed.js line 62 (line 5 in the compressed version)

 

xajax.config.setDefault('waitCursor', false);

 

You might've turned it to true somewhere in your script

 

or comment the following code in the compressed version

 

update:function(){return{onWaiting:function(){if(xajax.config.baseDocument.body)

xajax.config.baseDocument.body.style.cursor='wait';},

 

line 18

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.