|
| |
|
|
zacky0
Posts: 1 Joined: 7/14/2003 Status: offline
|
displaying a list of check boxes based on a sql query - 7/14/2003 17:50:28
Hi, Iam trying to do the following. I have a list of about 50 checkboxes that are displayed on the ASP form. I need to enable the checkboxes as available and also disable the checkboxes as not available for the user based on the result from a SQL query using javascript. NB : The sql query returns the name of the checkbox that are avl as a column of the result set. The below code does not work currently. I need some help to complete or change the following code to help solve my requirement. <% Sql = " select * from Sponsor_TBL" Set rs = conn.Execute(SQL) Do while not rs9.eof if rs(4) <> " 0" then cbox = rs9(0) %> <script language = " javascript" > document.all[" cbox" ].disabled = true; </script> <% end if rs9.movenext loop %> Thanks zack.
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|