This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

checking checkboxes based on a value of an xml node


I have a check box which is generated regardless of
whether the node exists or not, and beneath the
declaration for the check box i apply the template for
said node.
<tr>
  <td class="OFFICElabel">Can Dial</td>
  <td class="OFFICEaddress"><INPUT type="checkbox"
name="Can_Dial"/></td>
  <xsl:apply-templates
select="/page/Building/Can_Dial/>
</tr>

Within this template I check to see if the value is 1
if it is i check the box using javascript
(document.frmBuilding.Can_Dial.checked = true).

this doesn't work, anyone know why? I think it might
be that you can't check boxes on load, as if i create
a button, using the same code will work after the page
has loaded.

Any ideas as to an alternative?

____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]