OZONE Asylum
Forums
DHTML/Javascript
Javascript InnerHTML Table performance
This page's ID:
28268
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
in my experience creating BIG tables ( like thousands of cells ) is MUCH faster when you build the markup in a string ( by adding the string to itself as much as you can ) and injecting it in the innerHTML of an element. [b]H][RO:[/b] Have benchmarked various parts of you script as [b]DizzZ[/b] suggested ? i.e. parsing the string, doing the eval(sic), injecting it in the DOM, which of these operation takes most of the time, on which browser ? if you only return values ( no markup ) you can get rid of JSON and return a multiline string which is a piece of cake to transform into a table. ... or you could send/create the whole table in several chunks. [url=http://www.p01.org/][sigrotate][img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_love.gif[/img]|[img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_love_small.gif[/img]|[img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_charly.gif[/img]|[img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_dk.gif[/img]|[img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_reason.gif[/img]|[img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_galaxy.gif[/img][/sigrotate][/url] [small](Edited by [url=http://www.ozoneasylum.com/user/2185]poi[/url] on 09-11-2006 19:49)[/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »