|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Hello all,
I am new to cold fusion. I want to generate a table, "Email List", with data from an access db. I can display this table with the content that is needed from access. My problem is that the table ,"Email List", which used to display selected # of names along with there coresponding emails, is in a form. This form had the same table before, but the content was hard coded . The purpose of this form was to check all check boxes the user selected ( this check boxes had the value of various emails). I did that with some javascript. That javascript rolled thru all the form elements and added them to a variable. It does not work with new dynamic table. Any suggestions? See my code below: <code> <CFQUERY NAME = "xxx" datasource= "src" > SELECT Contact,JobEmail,PagerEmail FROM mail </CFQUERY> <FORM method="get" name="list" action=""> <TABLE cellpadding="2" cellspacing="2" border="3" align="center" width="75%"> <CAPTION><STRONG>Recipents of email</STRONG> </CAPTION> <THEAD> <TR height="30"> <TH width="60%"> Recipent </TH> <TH width="20%"> First Email </TH> <TH width="20%"> Second Email </TH> </TR> </THEAD> <TBODY> <cfoutput query="cab"> <TR height="20"> <TD> #Contact# </TD> <TD align="center"> <INPUT type="checkbox" value="#JobEmail#"> </TD> <TD align="center"> <INPUT type="checkbox" value="#PagerEmail#"> </TD> </TR> <tr> </tr> </tbody> </FORM></cfoutput> <!-- ABOVE CODE GENS TABLE --> <!-- JavaScript to run thru the form elements --> function dueboy() { var boxes = document.list; var display = ""; for (i = 0; i < boxes.length; i++) { if (boxes[i].checked == true && boxes[i].type == "checkbox") { display = display + boxes[i].value + ";"; } } return display; } </code> |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Cold Fusion Development > dynamic created table |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|