Feedback on: irt.org FAQ Knowledge Base Q426
Comments:
Unfortunately, the answer is incorrect (unless the long process pauses for user input, or unless the long process is run in a new thread). For example, the following page does not work
<HTML><HEAD><TITLE>Hourglass Test</TITLE></HEAD>
<SCRIPT LANGUAGE="JavaScript">
function doTime() {
setPointer();
for( i = 1; i < 1000; i++)
for( j = 1; j < 1000; j++);
resetPointer();
}
<SCRIPT LANGUAGE="JavaScript"></SCRIPT>
<BODY><INPUT TYPE=submit ONCLICK=doTime() VALUE='Click Me'>
</BODY>
Worth:
Length:
Technical:
Not technical enough
Comments:
try this, it works...
<form runat="server" onsubmit="document.body.style.cursor = 'wait';">
Worth:
Worth reading
Length:
Technical:
Comments:
add the following to the form tag.... it works...
onsubmit="document.body.style.cursor = 'wait';"