I've been asked to provide some tricky printing functionality to a dynamicly generated page. The page is to display each record along with a checkbox. Then one print button at the bottom of the page. The idea is to let the user check the box next to each record they want to print, then when they click the print button at the bottom of the page, only those records that were selected will be printed.
I'm assuming some combination of CSS and Javascript will be required, but I really don't know. Any ideas? Thanks in advance!
Below is some basic code to give an idea of what I'm working with:
<form name="form1" method="post" action="">
<cfoutput query="records">
<tr>
<table width="100" border="1" cellspacing="0" cellpadding="0">
<tr>
<td><input type="checkbox" name="checkbox" value="checkbox"></td>
<td>#records.fname#</td>
<td>#records.mname#</td>
<td>#records.lname#</td>
</tr>
<tr>
<td colspan="4">#records.bio#</td>
</tr>
</table>
</tr>
</cfoutput>
<p>
<input type="button" value="Print Cards" onclick="doprint()">
</form>
I'm assuming some combination of CSS and Javascript will be required, but I really don't know. Any ideas? Thanks in advance!
Below is some basic code to give an idea of what I'm working with:
<form name="form1" method="post" action="">
<cfoutput query="records">
<tr>
<table width="100" border="1" cellspacing="0" cellpadding="0">
<tr>
<td><input type="checkbox" name="checkbox" value="checkbox"></td>
<td>#records.fname#</td>
<td>#records.mname#</td>
<td>#records.lname#</td>
</tr>
<tr>
<td colspan="4">#records.bio#</td>
</tr>
</table>
</tr>
</cfoutput>
<p>
<input type="button" value="Print Cards" onclick="doprint()">
</form>