Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #9190 > unrolled thread
| Started by | "Mel Smith" <med_cutout_syntel@aol.com> |
|---|---|
| First post | 2011-12-13 10:26 -0700 |
| Last post | 2011-12-15 14:34 -0700 |
| Articles | 2 on this page of 22 — 8 participants |
Back to article view | Back to comp.lang.javascript
Showing a 'Waiting ...' Message "Mel Smith" <med_cutout_syntel@aol.com> - 2011-12-13 10:26 -0700
Re: Showing a 'Waiting ...' Message Gene Wirchenko <genew@ocis.net> - 2011-12-13 12:17 -0800
Re: Showing a 'Waiting ...' Message "Mel Smith" <med_cutout_syntel@aol.com> - 2011-12-13 15:31 -0700
Re: Showing a 'Waiting ...' Message Gene Wirchenko <genew@ocis.net> - 2011-12-13 17:50 -0800
Re: Showing a 'Waiting ...' Message Gene Wirchenko <genew@ocis.net> - 2011-12-13 18:10 -0800
Re: Showing a 'Waiting ...' Message Martin Pearman <warwound@gmail.com> - 2011-12-13 23:07 -0800
Re: Showing a 'Waiting ...' Message Gene Wirchenko <genew@ocis.net> - 2011-12-14 10:46 -0800
Re: Showing a 'Waiting ...' Message Jake Jarvis <pig_in_shoes@yahoo.com> - 2011-12-14 21:18 +0100
Re: Showing a 'Waiting ...' Message Gene Wirchenko <genew@ocis.net> - 2011-12-14 13:30 -0800
Re: Showing a 'Waiting ...' Message "Evertjan." <exjxw.hannivoort@interxnl.net> - 2011-12-14 22:56 +0000
Re: Showing a 'Waiting ...' Message Gene Wirchenko <genew@ocis.net> - 2011-12-14 18:55 -0800
Re: Showing a 'Waiting ...' Message tony@mountifield.org (Tony Mountifield) - 2011-12-15 08:40 +0000
Re: Showing a 'Waiting ...' Message Gene Wirchenko <genew@ocis.net> - 2011-12-15 12:08 -0800
Re: Showing a 'Waiting ...' Message tony@mountifield.org (Tony Mountifield) - 2011-12-15 20:36 +0000
Re: Showing a 'Waiting ...' Message Gene Wirchenko <genew@ocis.net> - 2011-12-15 15:24 -0800
Re: Showing a 'Waiting ...' Message Scott Sauyet <scott.sauyet@gmail.com> - 2011-12-16 06:31 -0800
Re: Showing a 'Waiting ...' Message Dr J R Stockton <reply1150@merlyn.demon.co.uk> - 2011-12-16 21:17 +0000
Re: Showing a 'Waiting ...' Message "Evertjan." <exjxw.hannivoort@interxnl.net> - 2011-12-15 11:03 +0000
Re: Showing a 'Waiting ...' Message Dr J R Stockton <reply1150@merlyn.demon.co.uk> - 2011-12-15 20:42 +0000
Re: Showing a 'Waiting ...' Message Dr J R Stockton <reply1150@merlyn.demon.co.uk> - 2011-12-14 21:11 +0000
Re: Showing a 'Waiting ...' Message "Mel Smith" <med_cutout_syntel@aol.com> - 2011-12-14 16:54 -0700
Re: Showing a 'Waiting ...' Message "Mel Smith" <med_cutout_syntel@aol.com> - 2011-12-15 14:34 -0700
Page 2 of 2 — ← Prev page 1 [2]
| From | "Mel Smith" <med_cutout_syntel@aol.com> |
|---|---|
| Date | 2011-12-14 16:54 -0700 |
| Message-ID | <9ksr97FauoU1@mid.individual.net> |
| In reply to | #9245 |
Dr. Stockton said:
> Display the message as the last thing but one that gets executed. The
> last thing is a setTimeout that calls the sort routine after some short
> interval, say 100 ms. At the end of the sort, remove or alter the wait
> message.
>
Dr Stockton:
Thank you for the suggestion above. I'll go back to work on it
tomorrow.
( Been golfing/partying lately :)) )
-Mel
[toc] | [prev] | [next] | [standalone]
| From | "Mel Smith" <med_cutout_syntel@aol.com> |
|---|---|
| Date | 2011-12-15 14:34 -0700 |
| Message-ID | <9kv7ffFt0qU1@mid.individual.net> |
| In reply to | #9247 |
Dr John Stockton and Gene Wirchenko:
Following the instructions of Dr. John, I build this little 'looperr'
below that shows my warning message finally :((
Hope this helps others.
-Mel Smith
*************************
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>loopmsg.htm</title>
<script type="text/javascript">
var nCrud = 0
function LooperSorter() {
var el = document.getElementById("looptotal") ;
el.value = nCrud.toString() ; // clear out the total field
var mypi = 3.1415926 ;
// You may wish to make a significantly more complex loop so that
// the 'Looping' Message can be seen easier
for (var i=0; i <= 3000000; i++) {
nCrud = (i / mypi) + 1234.567;
}
// Now at end of Loop, So, prove it by placing the
// nCrud vrbl total in the looptotal field
var el = document.getElementById("looptotal") ;
el.value = nCrud.toString() ;
// Now, Restore the original message
var el = document.getElementById("looptext") ;
el.style.color = "yellow" ;
el.style.background = "gray" ;
el.value = "Ready to Loop"
}
function showwaitmsg() {
var el = document.getElementById("looptext") ;
el.style.color="white";
el.style.background="red" ;
el.value = " Looping ... " ;
return ;
}
function startloop() {
// First, show the 'Looping ... ' Message
showwaitmsg() ; // shows the message White on Red background
// Then, wait 1/20th of a second to give the 'wait' message
// some time to display.
// At the end of the 'LooperSorter' Code, the original message
// is restored to the message field.
// You may also wish to set the delay to 0 millisecs to test it.
setTimeout("LooperSorter()",200) ; // wait .20 secs, then restore message
// You cannot place the message restoration code *here* because the
// message will be restored *before* the 'looper' even runs !
}
</script>
</head>
<body>
<form action="#" >
Click to Loop : <input type="button" onclick="startloop();"
value="Start Timer" />
Loop Total : <input type="text" id="looptotal" value="0" />
<br />
<br />
Loop Message : <input type="text" readonly="readonly"
id="looptext"
style="width:12em;font-weight:bold;color:yellow;background:gray;text-align:center;" value="Ready to Loop" /></form></body></html>
[toc] | [prev] | [standalone]
Page 2 of 2 — ← Prev page 1 [2]
Back to top | Article view | comp.lang.javascript
csiph-web