On Jun 24, 3:23 pm, ASM <stephanemoriaux.NoAd...@wanadoo.fr.invalid>
wrote:
artev a écrit :
for make on-fly some box te3xt and select,
(select that will be use for to choose datas)
is better to use Dom or innerhtml?
http://stephane.moriaux.perso.wanado...nerHTML_danger
--
Stephane Moriaux et son (moins) vieux Mac
Stephane Moriaux and his (less) old Mac already out of date
It depends on how much you're going to develop your application, how
much it is going to be based on javascript and how much you worry
about speed issues.
If you want to make a clean object oriented application, than you'll
better start with DOM instead of constructing strings for innerHTML.
That way it will be more extensible and readable. However, innerHTML
is said to be faster than DOM - haven't tested it, but heard about it
several times. I myself use innerHTML as little as possible, but as I
said - it depends on your needs.