Pages: 123

  2008-01-29 07:01:02

feruzz
» Banned
FTalk Level: zero
1557
0
1969-12-31

[quote=xavierkym]Wew =( There are tons of tutorials using innHTML with just using different tags and ids :lol: I can't count them honestly. Some of them were rubbish. :puke: I hope we can just com

[b]I had a few things about innerHTML[/b] - It's not a standard W3C DOM :wasted: - innerHTML is a string...the DOM methods (document.createElement, appendChild etc...) is not a string, it's a hierarchal object structure... shoving a string into an object is impure and similar to wrapping a spaghetti noodle around an orange and calling it lunch.. [b]anything good about it?[/b] - It's faster than DOM methods :eh: by a lot see [url=http://www.quirksmode.org/dom/innerhtml.html][b]W3C DOM vs. innerHTML[/b][/url] :D - it's less verbose than DOM methods - it allows you to take arbitrary chunks of markup and drop them into a document without having to parse them. anyway this function creates much faster than innerHTML <">you can use the above as [b]el = replaceHtml(el, newHtml)[/b] instead of [b]el.innerHTML = newHtml[/b] this function has been applied to this code --> [url=http://theftalk.com/t18202-Pop-up-Testimonial-v3.1.2.html][b]Pop-up Testimonial Box[/b][/url] :lol:

Pages: 123

Board footer

© 2024 F Talk

Current time is 10:21

[ 12 queries - 0.011 second ]
Privacy Policy