473,396 Members | 1,990 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

make select, better DOM or innerhtml

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
2 1564
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: cedawe | last post by:
I have two select boxes. When the user picks a value in the first one it completely re-populates the second one. It works fine, but only generates a standard OPTIONS list and I now want to group...
3
by: foldface | last post by:
Hi This works but is a bit long-winded. Is there a better way? ta F <style> ..Header { background-color: gray;
4
by: Michael Schuerig | last post by:
I'm trying to change the options of a select element by setting its innerHTML. Here's a demo case: <html> <head> <script language="javascript" type="text/javascript"> function addOpts() { var...
3
by: Ayrton | last post by:
I need to have tooltips in a select list (or combo ), are there some examples ? -- Questa è una firma automatica di MesNews. Sito: http://www.mesnews.net
1
by: Jan Doggen | last post by:
Hello all, I have a SELECT like this (the 'alert()s are temporary): <FORM method="POST" action="/scripts/runisa.dll?OVB2.132964:PGSPLITVACAFMELDEN:1095144287.9159" id="hulpform"...
10
by: mjpdatadev | last post by:
I am relatively new to XMLRequest, DOM and Ajax but I really like the functionality. I have the DIV and SPAN changes working well but I thought that I would experiment with changing the actual...
1
by: artev | last post by:
for make on-fly some box text and select, (select that will be use for to make on-fly at click others text ) and box text, where the values can to be used in others area of the code. is better...
8
by: andersond | last post by:
I have a form with several questions whose answers are chosen from select object. Some work and some don't. Here's an example This works: var y =...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.