RE: [ cf-dev ] OT: JavaScript and hourglass

2004-01-15 Thread Aidan Whitehall
> I did this one on instinct, and it is untested. Did it work? Yeah -- just changed the onclick in the checkbox to call your function instead and it worked first time :-) -- Aidan Whitehall Macromedia ColdFusion Developer Fairbanks Environmental Ltd +44 (0)1695 5177

RE: [ cf-dev ] OT: JavaScript and hourglass

2004-01-15 Thread Peter Harrison
I did this one on instinct, and it is untested. Did it work? - Peter -Original Message- From: Aidan Whitehall [mailto:[EMAIL PROTECTED] Sent: 15 January 2004 10:28 To: [EMAIL PROTECTED] Subject: RE: [ cf-dev ] OT: JavaScript and hourglass > You need to allow the window time to upd

RE: [ cf-dev ] OT: JavaScript and hourglass

2004-01-15 Thread Aidan Whitehall
> You need to allow the window time to update. This can be done by doing the following: > > function checkBoxClicked(parentElementNo) > { > document.body.style.cursor = "wait"; > setTimeout("toggleCheck(" + parentElementNo + ")", 10); // hope this is long enough > } > > And then remov

RE: [ cf-dev ] OT: JavaScript and hourglass

2004-01-15 Thread Peter Harrison
h } And then remove the "wait" line from toggleCheck function. HTH - Peter -Original Message- From: Aidan Whitehall [mailto:[EMAIL PROTECTED] Sent: 14 January 2004 14:40 To: [EMAIL PROTECTED] Subject: [ cf-dev ] OT: JavaScript and hourglass Have an HTML tree-display where eac

RE: [ cf-dev ] OT: JavaScript and hourglass

2004-01-14 Thread Aidan Whitehall
> maybe i'm reading your code wrong (it's all garbled on my display), but it > looks like you're setting it back to the default cursor as the last line in > your function? Yeah, you're right. I wanted it to (i) change cursor to hourglass, (ii) check all child nodes, then (iii) change hourglass bac

Re: [ cf-dev ] OT: JavaScript and hourglass

2004-01-14 Thread duncan . cumming
Subject: [ cf-dev ] OT: JavaScript and hourglass 14/01/2004 14:40

RE: [ cf-dev ] OT: JavaScript and hourglass

2004-01-14 Thread Paul Johnston
Now, I have seen something like this... I believe it has to do with when Javascript actually does things (don't ask me why). In other words because of the type of event changing the cursor is, it doesn't happen until after the function is completed. So if you stuck it in another function and cal

[ cf-dev ] OT: JavaScript and hourglass

2004-01-14 Thread Aidan Whitehall
Have an HTML tree-display where each node has a checkbox next to it. When a user ticks a parent node, the onClick calls a function which selects or deselects the checkboxes for any child nodes. Some users have a large number of checkboxes and the browser freezes for up to a ten seconds when one of