Comments on: Avoiding timing problems with innerHTML http://www.benjaminkeen.com/avoiding-timing-problems-with-innerhtml/ Web Developer Sun, 17 Feb 2013 10:08:19 +0000 hourly 1 By: BenjaminKeen.com http://www.benjaminkeen.com/avoiding-timing-problems-with-innerhtml/comment-page-1/#comment-23736 BenjaminKeen.com Mon, 09 Aug 2010 18:43:13 +0000 http://www.benjaminkeen.com/?p=136#comment-23736 [...] is a re-write of an old post, written back in 2007. I recently re-used this code in another script and it's as useful today as [...]

]]>
By: ben.keen http://www.benjaminkeen.com/avoiding-timing-problems-with-innerhtml/comment-page-1/#comment-9603 ben.keen Thu, 20 Mar 2008 17:30:45 +0000 http://www.benjaminkeen.com/?p=136#comment-9603 Thanks for the post Scott – and I’m glad it worked out! Sounded like a neat problem.

I’ve heard of other problems with that other approach too, but never confirmed them. But the opportunity just arose: I’ve started working on an Adobe AIR version of the script that uses the queue approach above, but AIR prevents the use of eval() for security reasons. Should be interesting to see if the DOM approach works instead…!

- Ben

]]>
By: Scotty http://www.benjaminkeen.com/avoiding-timing-problems-with-innerhtml/comment-page-1/#comment-9602 Scotty Thu, 20 Mar 2008 16:13:16 +0000 http://www.benjaminkeen.com/?p=136#comment-9602 Works for me!
Thanks!

As for your “better solution” there are some cases that the domscripting example does not apply.
For example.

My application generates a report that has quite a few output tables with hundreds of rows with tens of cells fancy sorting, etc, etc.

This can cause real heartache with IE trying to render all those tables at the same time.

My solution was to write those tables to hidden the value of hidden fields and then sequentially load div’s with the table code.

This allows IE to focus on one table at a time and keeps it from crashing under the load.

Your g_queue solution worked perfectly and I am a very happy man.

thanks again
-Scott

]]>
By: Bo Huge http://www.benjaminkeen.com/avoiding-timing-problems-with-innerhtml/comment-page-1/#comment-9539 Bo Huge Mon, 17 Mar 2008 10:30:02 +0000 http://www.benjaminkeen.com/?p=136#comment-9539 Thanks, this helped a lot!

]]>
By: ben.keen http://www.benjaminkeen.com/avoiding-timing-problems-with-innerhtml/comment-page-1/#comment-8106 ben.keen Mon, 31 Dec 2007 20:49:26 +0000 http://www.benjaminkeen.com/?p=136#comment-8106 Here’s a MUCH better solution.

http://domscripting.com/blog/display/99

]]>