Cold Fusion Development
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Remember me

Go Back   Dev Articles Community ForumsProgrammingCold Fusion Development

Add This Thread To:   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
Unread Dev Articles Community Forums Sponsor:
Old January 18th, 2004, 10:11 PM
catopc catopc is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
Join Date: Jan 2004
Location: south florida
Posts: 1 catopc User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question dynamic created table

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:
<CFQUERY NAME = "xxx" datasource= "src" >
SELECT Contact,JobEmail,PagerEmail
FROM mail


<FORM method="get" name="list" action="">
<TABLE cellpadding="2" cellspacing="2" border="3" align="center" width="75%">
<CAPTION><STRONG>Recipents of email</STRONG>
<TR height="30">
<TH width="60%"> Recipent
<TH width="20%"> First Email
<TH width="20%"> Second Email
<cfoutput query="cab">
<TR height="20">
<TD> #Contact#
<TD align="center">
<INPUT type="checkbox" value="#JobEmail#">
<TD align="center">
<INPUT type="checkbox" value="#PagerEmail#">


</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;


Reply With Quote

Viewing: Dev Articles Community ForumsProgrammingCold Fusion Development > dynamic created table

Developer Shed Advertisers and Affiliates

Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 

Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap