473,320 Members | 1,900 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,320 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 1560
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: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.