English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Hi Friends,
Currently I'm working in the struts 1.1 envi. I am using layout tag to create the dynamic multiple columns table. In which I include the one more functionality called selectable row in a table. For this I have the javascript function. When I run the project, the javascript which i wrote for select a row with certain color is not working.
Please refer me what is the problem I am facing.
I have attached my javascript program here:

2007-02-04 17:17:39 · 3 answers · asked by sri 1 in Computers & Internet Programming & Design

3 answers

In function changeRowColor, you have this:

for(i=0;children.length();i++)
children.length() is defined as true (by definition) as long as it
doesn't equal 0. Does it ever equal zero? Nothing in your code
suggests that anything ever happens to make it equal to 0. Did
you mean, as you typed in the function unSelect below,
for(i=0;i
Also, its probably not a good idea to call unSelect() at the beginning of changeRowColor() unless you've defined it first. Javascript is not a strongly typecast language, but you should still be in the habit of defining things before you use them.

I hope this helps.

2007-02-04 17:42:38 · answer #1 · answered by G A 5 · 1 0

hy, can you send me your page. i done that solution before ... so may be i help you. i generate dynamic insert row in table function i posted to you.

2007-02-04 17:51:03 · answer #2 · answered by Hardik Shah 1 · 0 0

children.length is a property not a method. It should be called like
children.length not children.length()

2007-02-04 20:05:02 · answer #3 · answered by venkata krishnan s 1 · 1 0

fedest.com, questions and answers