========== Actual Code That Works ================
function setCursorAll(argType)
{//Sets the cursor to desired type
var len = document.all.length
//Intrinsic Objects
for (var i = 0; i < len; i++){
if (typeof document.all[i] == "object"){
document.all[i].style.cursor = argType
}
}
//3rd Party Objects
if (argType == "wait"){
userGrid.MousePointer = 11
}else{
userGrid.MousePointer = 0
}
}
function fillGrid()
{
setCursorAll("wait")
window.setTimeout("fillGrid2()",1)
}
function fillGrid2()
{
var rsObj
var rs
var recs = 0
var cntr = 0
var indx
userGrid.Enabled = false
userGrid.Clear()
userGrid.BulkUpdate = true
window.defaultStatus = "Please wait --- Reading Data!"
rsObj = document.ADS.createobject("MaintenanceMTS.CUserMaint",
"http://<%=Request.ServerVariables("SERVER_NAME")%>" );
rs = rsObj.GetUsersInfoAll()
rs.MoveFirst();
if (rs.Fields(0).name == "ErrCode"){
alert("Error Code: " + rs.Fields("ErrCode").value +
" Error Description: " + rs.Fields("ErrDesc").value )
return
}
rs.MoveFirst()
recs = rs.RecordCount
while (cntr < recs){
indx = userGrid.AddItem(rs.Fields("UserID").Value)
userGrid.CellText(indx, 1) = rs.Fields("Name").Value
if (rs.Fields("AcctMgrFL").Value == "true"){
userGrid.CellText(indx, 2) = "Yes"
}else{
userGrid.CellText(indx, 2) = "No"
}
userGrid.CellText(indx, 3) = rs.Fields("OrgName").Value
//Store corresponding OrgID
userGrid.CellItemData(indx, 3) = rs.Fields("DfltOrgID").Value
rs.MoveNext()
cntr++
}
userGrid.BulkUpdate = false
userGrid.SortDependents(-1, 0, 0)
userGrid.Enabled = true
window.defaultStatus = gDefaultStatus
setCursorAll("default")
}
Figure 2 Another Way
<html>
<head>
<script>
function SetWait()
{
document.all("wait").style.display=""
window.setTimeout ("doCalc()", 10);
}
function doCalc()
{
for (i=0; i<1000; i++) {
document.all("wait").innerText = i
}
document.all("wait").style.display="none"
}
</script>
</head>
<body bgcolor=white topmargin=0 leftmargin=0>
<div id="wait" style="position:absolute; width:100%; height:100%; cursor:wait; display:none"></div>
<input type=button onclick="SetWait()" value="Click Me To Wait A While...">
</body>
</html>