S
sjsean
While I have figured out how to pass the value of a checkbox to a new
window using javascript what I really need is to evaluate if the
checkbox is checked then set a variable to a certain value.
below is my starting example code.
<script type="text/javascript">
<!--
if (window.opener.document.form1.option1.checked);
var setting1 = "1";
document.write(setting1);
//-->
</script>
Code from parent page:
<xsl:if test = "Option1 !=''"><td style="text-align: right; white-
space: nowrap;"><input type= "checkbox" name="option1" id="option1"
value="{Option1}" /><xsl:attribute name="value"><xsl:value-of
select="Option1"/></xsl:attribute></td><td style="text-align:
left;"><xsl:value-of select="Option1"/></td></xsl:if>
Thanks for the help..or if you need additional information.
sean
window using javascript what I really need is to evaluate if the
checkbox is checked then set a variable to a certain value.
below is my starting example code.
<script type="text/javascript">
<!--
if (window.opener.document.form1.option1.checked);
var setting1 = "1";
document.write(setting1);
//-->
</script>
Code from parent page:
<xsl:if test = "Option1 !=''"><td style="text-align: right; white-
space: nowrap;"><input type= "checkbox" name="option1" id="option1"
value="{Option1}" /><xsl:attribute name="value"><xsl:value-of
select="Option1"/></xsl:attribute></td><td style="text-align:
left;"><xsl:value-of select="Option1"/></td></xsl:if>
Thanks for the help..or if you need additional information.
sean