Hi!
schrieb:
> u r correct. i've change my script.now there is no prob in addRow()
> script.but still have a problem in HexToDec( ) script which is called
> from colorchooser function.i've marked the script code where my problem
> is.please check my code.......
[...]
> hexvalue=document.maintain_form.frm_colortext.valu e;//////////??(my
> problem is here. frm_colortext will be an array,then how to access
> this by index.i've passed the index object into hextodec
> function.)**************************************** ************************
Uhm, it's quite hard for me to give an exact answer, just because
you've posted quite a lot of code. However, just a quick guess:
frm_colortext is probably an array, because the element name (not the
id!) is still not unique.
You have to possibilities:
1. You could try to add the index also to the element name, just like
you did it for the id. Of course, you have to change all references to
the element and all the places where you create the element.
2. Do not reference the element by name, but by id. This would be
something like
hexvalue = document.getElementById("result_id"+index).value;
Note however, that using this method, some other issues might remain
due to the duplicate names. One candidate for those issues might be
submitting the form, because you'll have to use the element names to
reference the values on the server side.
Bye
Nils