Board Logo

how to multi-select the items on the tree menu?
jacky_xu - 9/19/2006 at 09:00 PM

hello.i wanna multi-select the items on the tree menu so i added '<INPUT TYPE="checkbox" NAME="">' but then i was not able to select any one checkbox and the error said 'need ;'
what can i do?help me,thanks


tigra - 9/19/2006 at 09:07 PM

Looks like some syntax error. Try escaping the double quotes:
'<INPUT TYPE="checkbox" NAME="">'


jacky_xu - 9/19/2006 at 09:26 PM

Quote:
Originally posted by tigra
Looks like some syntax error. Try escaping the double quotes:
'<INPUT TYPE="checkbox" NAME="">'


thanks for your reply.but i just adjusted my code and tried again,the error was the same
my code is as following:
......
['<INPUT TYPE="checkbox" NAME="id" value="<%=func.getFunctionId()%>"><%=func.getFunctionName()%>', '',],
......
thanks you.


jacky_xu - 9/19/2006 at 09:36 PM

when i added the <td></td>lables to hug the checkbox.it worked.and my code is here:
['<td><INPUT TYPE="checkbox" NAME="id" value="<%=func.getFunctionId()%>"><%=func.getFunctionName()%></td>','',],

whatever,thanks to everybody.


jacky_xu - 9/19/2006 at 10:37 PM

what a shame.the question is still bother me.the error is "lack of ;"
who can help me ?thanks for any reply.


jacky_xu - 9/19/2006 at 11:39 PM

this is the right string:
['<td><INPUT TYPE='checkbox' NAME='id' value='<%=func.getFunctionId()%>'><%=func.getFunctionName()%></td>','',],
not
['<td><INPUT TYPE="checkbox" NAME="id" value="<%=func.getFunctionId()%>"><%=func.getFunctionName()%></td>','',],


Softcomplex: http://www.softcomplex.com/
Back to forum: http://www.softcomplex.com/forum/