Asked by duncanb7
at 2024-04-14 02:15:56
Point:500 Replies:7 POST_ID:828471USER_ID:11059
Topic:
JavaScript;;Hypertext Markup Language (HTML)
At the beginning of my javascript code, i used insertRow and insertcells to form a table with 350*12 cells,
the speed is really slow in IE7, so from suggestion of other EE thread, I change my code to the method
suggest for string.push and string.join method in last test example at
http://www.quirksmode.org/dom/innerhtml.html. It improve a lot, and the display is came out really faster in
IE same as in FIrefox, Safari, Chrome.
My question is
1- What is clonenode method meaning in the first two example in the http link above. Why
people is using clonenode if string.push method is good or better
2- WHat is string.join('') meaning , what is meaning.
3- In Jquery, they aslo use clone() function, is it same method in first two example at the link
4- Last, I really hard to understand what is innerHTML vs DOM method , i though inner HTML is in DOM method
What is different ?
5- How to make the fastest a table nowsday, what method is the best ?
Please advise
the speed is really slow in IE7, so from suggestion of other EE thread, I change my code to the method
suggest for string.push and string.join method in last test example at
http://www.quirksmode.org/dom/innerhtml.html. It improve a lot, and the display is came out really faster in
IE same as in FIrefox, Safari, Chrome.
My question is
1- What is clonenode method meaning in the first two example in the http link above. Why
people is using clonenode if string.push method is good or better
2- WHat is string.join('') meaning , what is meaning.
3- In Jquery, they aslo use clone() function, is it same method in first two example at the link
4- Last, I really hard to understand what is innerHTML vs DOM method , i though inner HTML is in DOM method
What is different ?
5- How to make the fastest a table nowsday, what method is the best ?
Please advise