how to create treecheckbox using javascript and xml file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • snitu
    New Member
    • Apr 2007
    • 30

    how to create treecheckbox using javascript and xml file

    Hi All

    I m new with javascript and xml. can any one plz........
    help me how to show treecheckbox using xml file. that means the nods name of the tree came from xml file.


    Reply Plz???????????? ??????????


    Thanks.
    snitu.
  • chandrashekhar maral
    New Member
    • Apr 2007
    • 19

    #2
    hi,
    on which platform ur doing??
    In Ajax i got it but with xml -Xsl file if u want just reply/mail me....

    Comment

    • dorinbogdan
      Recognized Expert Contributor
      • Feb 2007
      • 839

      #3
      Originally posted by chandrashekhar maral
      hi,
      on which platform ur doing??
      In Ajax i got it but with xml -Xsl file if u want just reply/mail me....
      If it's possible I'd like the disscussions and answers to be posted in this thread.
      It may help others with similar questions.

      Thanks,
      Dorin.

      Comment

      • snitu
        New Member
        • Apr 2007
        • 30

        #4
        Originally posted by dorinbogdan
        If it's possible I'd like the disscussions and answers to be posted in this thread.
        It may help others with similar questions.

        Thanks,
        Dorin.

        Hi
        i have also the same problem.
        i am creating tree checkbox using dojo but the problem is the name of the nodes came from xml file.
        plz............
        help me how to display the nodes name from xml file?


        Thanks

        Comment

        • dorinbogdan
          Recognized Expert Contributor
          • Feb 2007
          • 839

          #5
          Please post the XML you are using, with few data in it.

          Comment

          • snitu
            New Member
            • Apr 2007
            • 30

            #6
            Originally posted by dorinbogdan
            Please post the XML you are using, with few data in it.

            Helllo

            I am sending few xml file
            _______________ _____________

            Code:
            <?xml version="1.0" encoding="ISO-8859-1"?>
            
            <bookstore>
            
            <book category="WEB">
              <title lang="en">XQuery Kick Start</title>
              <author>James McGovern</author>
              <author>Per Bothner</author>
              <author>Kurt Cagle</author>
              <author>James Linn</author>
              <author>Vaidyanathan Nagarajan</author>
              <year>2003</year>
              <price>49.99</price>
            </book>
            
            <book category="WEB">
              <title lang="en">Learning XML</title>
              <author>Erik T. Ray</author>
              <year>2003</year>
              <price>39.95</price>
            </book>
            <book category="COOKING">
              <title lang="en">Everyday Italian</title>
              <author>Giada De Laurentiis</author>
              <year>2005</year>
              <price>30.00</price>
            </book>
            
            <book category="CHILDREN">
              <title lang="en">Harry Potter</title>
              <author>J K. Rowling</author>
              <year>2005</year>
              <price>29.99</price>
            </book>
            
            <book category="WEB">
              <title lang="en">XQuery Kick Start</title>
              <author>James McGovern</author>
              <author>Per Bothner</author>
              <author>Kurt Cagle</author>
              <author>James Linn</author>
              <author>Vaidyanathan Nagarajan</author>
              <year>2003</year>
              <price>49.99</price>
            </book>
            
            <book category="WEB">
              <title lang="en">Learning XML</title>
              <author>Erik T. Ray</author>
              <year>2003</year>
              <price>39.95</price>
            </book>
            </bookstore>
            _______________ ___



            Thanks

            Comment

            • dorinbogdan
              Recognized Expert Contributor
              • Feb 2007
              • 839

              #7
              Ok, but which nodes do you want to read?
              And do you need the node name only, or node text too?

              Comment

              • snitu
                New Member
                • Apr 2007
                • 30

                #8
                Originally posted by dorinbogdan
                Ok, but which nodes do you want to read?
                And do you need the node name only, or node text too?

                hi

                i need both node value and text also.

                Thanks

                Comment

                • dorinbogdan
                  Recognized Expert Contributor
                  • Feb 2007
                  • 839

                  #9
                  Until other replies, please take a look at this short tutorial.
                  You will need to use:
                  Code:
                  <xsl:value-of select="name()" />
                  -- to get the current node name

                  Code:
                  <xsl:value-of select="name(parent::node())" />
                  --to get the parent node name

                  Use xsl:for-each to loop through all nodes.

                  If any problems appear please come back and post your XSL.

                  Comment

                  • snitu
                    New Member
                    • Apr 2007
                    • 30

                    #10
                    Originally posted by dorinbogdan
                    Until other replies, please take a look at this short tutorial.
                    You will need to use:
                    Code:
                    <xsl:value-of select="name()" />
                    -- to get the current node name

                    Code:
                    <xsl:value-of select="name(parent::node())" />
                    --to get the parent node name

                    Use xsl:for-each to loop through all nodes.

                    If any problems appear please come back and post your XSL.
                    Thanks

                    No sir i am not using any xsl file. can i do it with out using xsl file or not?

                    Comment

                    Working...