blackcell Posted March 31, 2008 Share Posted March 31, 2008 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? Quote Link to comment Share on other sites More sharing options...
nogray Posted April 2, 2008 Share Posted April 2, 2008 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 Quote Link to comment Share on other sites More sharing options...
blackcell Posted April 2, 2008 Author Share Posted April 2, 2008 Thanks man, I forgot to mark this solved. Thanks for going out of your way to help though. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.