Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
What are the advantages of DOM over other DHTML
Old 04-11-2006, 03:25 AM What are the advantages of DOM over other DHTML
Novice Talker

Posts: 12
Trades: 0
I was wondering if people had any views as to what the advantage of using the DOM objects, ie getElementById, createElement, createTextNode etc were over just using document.write('tag') DHTML commands are.

Simplisitcally I would think that the use of the DOM mechanism will abstract authors from change in syntax of the HTML/DHTML/XHTML tags - because they would invoke the same methods irrespective of the underlying page technology?

Is this a true assumption?

Are there any others?

I guess the downside of DOM at the moment may be perceived to be cross browser adoption/implementation?

Thoughts?
akn846 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-11-2006, 02:22 PM Re: What are the advantages of DOM over other DHTML
Super Talker

Posts: 144
Trades: 0
uhm... well DHTML as it is, Dynamic HTML, is best done by manipulating the Document Object Model. Using document.write and innerHTML are more quick fix / hacks that are unefficient in comparisson. So.. I would not put a separation between DHTML and DOM. And as for cross-browser adoptions / implementation, you would be surprised how much alike FF and IE are for manipulation. Sure, IE has spent years developing its client-side scripting technology, before standards became ... a standard .. so they are surely going to support other things which they have worked so hard at providing for their developers; but as a standard is in place, cross-browser manipulation of the DOM has become MUCH more tollerable.

http://www.w3.org/DOM/
__________________
create.vibe

Please login or register to view this content. Registration is FREE
createvibe.com is offline
Reply With Quote
View Public Profile Visit createvibe.com's homepage!
 
Reply     « Reply to What are the advantages of DOM over other DHTML
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.54492 seconds with 12 queries