Question : How can I add a total cost for each row that has at least one dynamic checkbox checked?

Hello,

I have basic skills in JS so this issue is a little too complex for me.

I have several rows of checkboxes that are dynamically created by Coldfusion. In each row I might have 10 checkboxes. I need help in writing some javascript to determine if there is at least one checkbox checked in the row (row of 10 or so).

I need to be able to set a initial total into the beginning of the script and the other parameters are...

4-7 sub categories or rows of any checkbox selected EQ 95.00
8-12 sub categories or rows of any checkbox selected EQ 115.00
13-19 sub categories or rows of any checkbox selected EQ 135.00

From the pricing above, I need to display the cost within a div layer (innerHTML)

Brian
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
<form name="form1" method="post" action="Step3.cfm">
						<cfoutput query="getMyData" group="category_id">
							<div style="width: 700px; padding-left: 25px;">
							<strong>#getMyData.category_name#</strong>
							</div>
							<br>
							<table width="871" border="0" align="center" cellpadding="4">
							
								<tr>
									<td>&nbsp;</td>
									<td width="10">1</td>
									<td width="10">2</td>
									<td width="10">3</td>
									<td width="10">4</td>
									<td width="10">5</td>
									<td width="10">6</td>
									<td width="10">7</td>
									<td width="10">8</td>
									<td width="10">9</td>
									<td width="10">10</td>
								</tr>
								<cfoutput group="sub_category_id">
								<tr>
									<td width="215">
									<cfif getMyData.sub_category_name EQ "Other">
										<input name="sub_category_other_input#CurrentRow#" type="text" size="28" value="Other" >
									<cfelse>
										#getMyData.sub_category_name#
									</cfif>
									<input name="sub_category_id#CurrentRow#" type="hidden" value="#sub_category_id#" >
									</td>
									<td width="36"><input type="checkbox" name="seminars_beginner#CurrentRow#" id="seminars_beginner#CurrentRow#" value="1" OnClick="selectAll(sub_category_id#CurrentRow#)"/></td>
									<td width="36"><input type="checkbox" name="seminars_intermediate#CurrentRow#" id="seminars_intermediate#CurrentRow#" value="1" /></td>
									<td width="36"><input type="checkbox" name="seminars_advanced#CurrentRow#" id="seminars_advanced#CurrentRow#" value="1" /></td>
									<td width="48"><input type="checkbox" name="job_site_training_consulting#CurrentRow#" id="job_site_training_consulting#CurrentRow#" value="1" /></td>
									<td width="47"><input type="checkbox" name="webinars#CurrentRow#" id="webinars#CurrentRow#" value="1" /></td>
									<td width="75"><input type="checkbox" name="technical_support#CurrentRow#" id="technical_support#CurrentRow#" value="1" /></td>
									<td width="75"><input type="checkbox" name="books#CurrentRow#" id="books#CurrentRow#" value="1" /></td>
									<td width="75"><input type="checkbox" name="DVD_CD#CurrentRow#" id="DVD_CD#CurrentRow#" value="1" /></td>
									<td width="75"><input type="checkbox" name="A_credit#CurrentRow#" id="A_credit#CurrentRow#" value="1" /></td>
									<td width="37"><input type="checkbox" name="offered_in_spanish#CurrentRow#" id="offered_in_spanish#CurrentRow#" value="1" /></td>
								</tr>		
								</cfoutput>
							</table>
							<br><br>   
						</cfoutput>
						<div style="text-align:center">
						<table width="98%" border="0" align="center" cellpadding="15" cellspacing="0">
           		<tr>
           			<td width="90%" align="left" bgcolor="#999999"><input type="submit" name="Submit" id="Submit" value="Submit" /></td>
           			<td width="10%" bgcolor="#999999">$195.00</td>
           			</tr>
           		</table>
						<br />
						</div>
						</form>

Answer : How can I add a total cost for each row that has at least one dynamic checkbox checked?

Don't know that I will be of much assistance.  

Looking at the file structure of the Worldship install on my computer, I would think that it is possible to accomplish what you are requesting, IF.....

First of all, you would need to be able to open/expand the .bak file that is generated to get to the files that were backed up.  Then there are .mdf files that SQL Database or Access uses.  If you have a copy of either, you may be able to open and access the databases.  Without knowing which is which, it would be hit or miss to find the proper records.  If they are accessible, then it would be fairly straightforward to export those into a .cvs file and import that into Worldship.

Without UPS support, this would be a job for the database guys, and that only if UPS hasn't locked down their database files.
Random Solutions  
 
programming4us programming4us