Results 1 to 3 of 3

Thread: Javascript Code

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2002
    Location
    Malaysia
    Posts
    345

    Javascript Code

    Can I get the Javacript code for check all the Child checkboxes, on clicking the Master check box.(Just like hotmail does) The child checkboxes are generated with stylesheet code and its not HTML.

    This is the stylesheet code (in an .asp page) to generate the child checkboxes.

    Following is the stylesheet in an .asp page

    Code:
    <XML id='listXSL'>
       <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
         <xsl:template match="/">
    	<table width="100%">
    
              <xsl:for-each select="/itemlist/item">
                <tr>
    	      <td width="40" class="fmText4"><input type="checkbox" name="chkChild" value="chkChild"><xsl:attribute 
    
    name="name">chk<xsl:value-of select='id'/></xsl:attribute></input></td>
    							
                </tr>
             </xsl:for-each>
            </table>
          </xsl:template>
       </xsl:stylesheet>
    </XML>
    Thanks.

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Javascript Code

    I've already answered your post in the HTML forum. Do not crosspost, it's extremely annoying and does more damage than good for you.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2002
    Location
    Malaysia
    Posts
    345

    Re: Javascript Code

    Extremely sorry! Will not do this again. Thanks for the help.
    Thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width