|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
Triggering an alert when all boxes are ticked
I have a Do...Loop which contains the code to display all returned results. These are displayed as checkboxes. What I want is for a message box to appear when all the check boxes are ticked. How can I do this.
Note that the number of check boxes will be different for each search so I'll need to count the records I guess... Can anyone help? Here's the code: <% rs.movefirst Do While NOT rs.EOF %> <td width="205"> <div align="center"> <input type="checkbox" name="Invoiced<%= rs("ID") %>" value="YES" <%If rs("Invoiced") then response.write "checked"%>> </div> </td> <% rs.movenext Loop %> Thanks, J |
|
#2
|
|||
|
|||
|
Just count the number of checboxes that are checked in a variable, and also count the number of checkboxes drawn (the number of times through the loop)
Then compare the two variables after the loop. If they are the equal then all boxes where checked. simple.
__________________
-- ngibsonau |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > Triggering an alert when all boxes are ticked |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|