Advertisement
| 10.10.2008 at 01:45PM PDT, ID: 23805458 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
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: 57: 58: |
<script language="JavaScript">
<!--
//this function will display the next berry species option if the one above it has been selected, otherwise the fields do not display.
function anotherSpecie(n) {
var showRow = (navigator.appName.indexOf("Internet Explorer") != -1)?"block":"table-row";
switch(n){
case 1:
if (document.fmWorksheet.species_id[4].value != 0)
{document.getElementById('berry2').style.display = showRow;}
else
{document.getElementById('berry2').style.display = 'none';}
case 2:
if (document.fmWorksheet.species_id[5].value != 0)
{document.getElementById('berry3').style.display = showRow;}
else
{document.getElementById('berry3').style.display = 'none';}
case 3:
if (document.fmWorksheet.species_id[6].value != 0)
{document.getElementById('berry4').style.display = showRow;}
else
{document.getElementById('berry4').style.display = 'none';}
case 4:
if (document.fmWorksheet.species_id[7].value != 0)
{document.getElementById('berry5').style.display = showRow;}
else
{document.getElementById('berry5').style.display = 'none';}
case 5:
if (document.fmWorksheet.species_id[8].value != 0)
{document.getElementById('berry6').style.display = showRow;}
else
{document.getElementById('berry6').style.display = 'none';}
}
}
//-->
</script>
This is an examplo of of the rows default condition:
(I am also using Coldfusion with this page.)
<tr style="display:none;padding:0 2px 0 2px;" id="berry2">
<td ><cfinput name="PRODUCT_ID" type="hidden" value="#products.PRODUCT_ID#">
<cfinput name="species_description" type="hidden" value="0"> </td>
<td>
<div align="right"><span class="small">(2)</span>
<select name="species_id" onChange="anotherSpecie(2)" id="purchase2">
<option value="0">Select a berry specie</option>
<cfloop query="berries">
<option value="#species_id#">#common_name#</option>
</cfloop>
</select>
</div></td>
<td>#MAX_UNITS# #UNITS# Total </td>
<td><div align="center">
<cfinput name="units_purchased" type="text" size="7" maxlength="6" value="0" range="0,75" validate="range" validateat="onblur" message="You have exeeded the maximum number of units that can be purchased for this item." onChange="Calc(#products.max_units#,#products.cost_per_unit#,this)" required="yes" >
</div> </td>
<td>$#COST_PER_UNIT#/#UNITS#</td>
<td>$<cfinput name="paid_per_product" type="text" size="10" maxlength="10" value="0" required="yes" message="A value is required in every field. Use a 0 if there is no value." readonly="yes" style="background-color:##CCCCCC" tabindex="-1"></td>
</tr>
|
Advertisement