Waiting cursor when I'm sending data to dataProcessor

Hi,

I have a windows, with a grid and a toolbar, and I’m trying to add waiting cursor, when I’m pressing the button to sendData() to dataProcessor. I added the events:

dp.attachEvent("onAfterUpdateFinish",function(){ document.getElementById("dhtmlx_window_active").style.cursor='default'; }); dp.setOnBeforeUpdateHandler(function(id,type) { document.getElementsByClassName("dhtmlx_window_active")['0'].style.cursor='wait'; return true; }); dp.sendData();

The problem is, when I press the button, I can’t see in the windows space the cursor, just outside. how can I do to see on the top of the application?

Regards

Hi
Unfortunately we can’t reproduce your issue locally. We need completed demo to test it and help you. Or you can provide us a direct link.
docs.dhtmlx.com/doku.php?id=othe … leted_demo

I found an alternative solution, and now I’m stick with it:

I added a new div:

<div id="cursor-area"></div>

and when I’m saving data, it’s like a top layer, so you can’t access what’s “down” from it, and I add the cursor: wait;

[code]case “save”:
dp.attachEvent(“onAfterUpdateFinish”,function(){
document.getElementById(“cursor-area”).style.cursor=‘default’;
document.getElementById(“cursor-area”).style.zIndex=‘0’;
document.getElementById(“cursor-area”).style.position=‘static’;
document.getElementById(“cursor-area”).style.top=‘none’;
document.getElementById(“cursor-area”).style.bottom=‘none’;
document.getElementById(“cursor-area”).style.right=‘none’;
document.getElementById(“cursor-area”).style.left=‘none’;
});
dp.setOnBeforeUpdateHandler(function(id,type) {
// document.getElementsByClassName(“dhtmlx_window_active”)[‘0’].style.cursor=‘wait’;

					document.getElementById("cursor-area").style.cursor='wait'; 
					document.getElementById("cursor-area").style.zIndex='99'; 
					document.getElementById("cursor-area").style.position='absolute'; 
					document.getElementById("cursor-area").style.top='0'; 
					document.getElementById("cursor-area").style.bottom='0'; 
					document.getElementById("cursor-area").style.right='0';
					document.getElementById("cursor-area").style.left='0';
					return true; 
				});
				dp.sendData();
				break;[/code]

It’s ok from now. Thanks!