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
[quote] [b]H][RO said:[/b] Well, Im assuming this is 'normal' but i just want to make sure. I am using javascript to call my php script which generates a table and sends it back to javascript, at which point i use the innerHTML method to insert it into a DIV.It seems to be getting increasingly slow however, even if its only 10 rows its noticably slow, if its 20 rows it twice as slow etc etc.Is this normal for even as few as 10 rows? I was considering using DOM but ive heard thats actually slower than innerHTML. It seems if i have a large table that its actually quicker to refresh the whole page than dynamically update the table. Does this seem right? [/quote] Usualy DOM is significaly faster. But in some cases it is faster to generate table into string and then write whole table as a one string into some element's innerHTML. Are you sure that bottleneck is a table building? --------------------------------------------------------------------------------------------------------------- [b]var[/b] pleaseVisit=window.open("http://[url]trickyscripter.com[/url]","mySite","")
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »