Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] DOM vs AJAX
- From: david at dorward.me.uk (David Dorward)
- Subject: [Javascript] DOM vs AJAX
- Date: Tue Jun 20 03:33:51 2006
On Tue, Jun 20, 2006 at 10:21:28AM +0200, Michael Borchers wrote: > when i discovered DOM i used it to dynamically create form elements. > now i also use AJAX. AJAX is a rather unhelpful buzzword and is best avoided. > with DOM i'd have to really create every element, Nothing stopping you writing routines (in JavaScript or elsewhere) to reduce the amount of work involved here. > but with AJAX i would simply store the elements in a seperate file > and then import it into a <div>. By "AJAX", do you mean "XMLRequest + innerHTML"? > any disadvantages? InnerHTML is non-standard, has an increased risk of broken markup, and has support issues in some XHTML implementations. -- David Dorward http://dorward.me.uk
- References:
- [Javascript] DOM vs AJAX
- From: Michael Borchers
- [Javascript] DOM vs AJAX
- Prev by Date: [Javascript] DOM vs AJAX
- Next by Date: [Javascript] DOM vs AJAX
- Previous by thread: [Javascript] DOM vs AJAX
- Next by thread: [Javascript] DOM vs AJAX
- Index(es):