By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,934 Members | 1,441 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,934 IT Pros & Developers. It's quick & easy.

make select, better DOM or innerhtml

P: n/a
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?
Jun 24 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
ASM
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
Jun 24 '07 #2

P: n/a
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.

Jun 24 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.