By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,548 Members | 1,735 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,548 IT Pros & Developers. It's quick & easy.

how to create treecheckbox using javascript and xml file

P: 30
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.
Apr 9 '07 #1
Share this Question
Share on Google+
9 Replies


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

dorinbogdan
Expert 100+
P: 839
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.
Apr 10 '07 #3

P: 30
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
Apr 10 '07 #4

dorinbogdan
Expert 100+
P: 839
Please post the XML you are using, with few data in it.
Apr 10 '07 #5

P: 30
Please post the XML you are using, with few data in it.

Helllo

I am sending few xml file
____________________________

Expand|Select|Wrap|Line Numbers
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2.  
  3. <bookstore>
  4.  
  5. <book category="WEB">
  6.   <title lang="en">XQuery Kick Start</title>
  7.   <author>James McGovern</author>
  8.   <author>Per Bothner</author>
  9.   <author>Kurt Cagle</author>
  10.   <author>James Linn</author>
  11.   <author>Vaidyanathan Nagarajan</author>
  12.   <year>2003</year>
  13.   <price>49.99</price>
  14. </book>
  15.  
  16. <book category="WEB">
  17.   <title lang="en">Learning XML</title>
  18.   <author>Erik T. Ray</author>
  19.   <year>2003</year>
  20.   <price>39.95</price>
  21. </book>
  22. <book category="COOKING">
  23.   <title lang="en">Everyday Italian</title>
  24.   <author>Giada De Laurentiis</author>
  25.   <year>2005</year>
  26.   <price>30.00</price>
  27. </book>
  28.  
  29. <book category="CHILDREN">
  30.   <title lang="en">Harry Potter</title>
  31.   <author>J K. Rowling</author>
  32.   <year>2005</year>
  33.   <price>29.99</price>
  34. </book>
  35.  
  36. <book category="WEB">
  37.   <title lang="en">XQuery Kick Start</title>
  38.   <author>James McGovern</author>
  39.   <author>Per Bothner</author>
  40.   <author>Kurt Cagle</author>
  41.   <author>James Linn</author>
  42.   <author>Vaidyanathan Nagarajan</author>
  43.   <year>2003</year>
  44.   <price>49.99</price>
  45. </book>
  46.  
  47. <book category="WEB">
  48.   <title lang="en">Learning XML</title>
  49.   <author>Erik T. Ray</author>
  50.   <year>2003</year>
  51.   <price>39.95</price>
  52. </book>
  53. </bookstore>
__________________



Thanks
Apr 10 '07 #6

dorinbogdan
Expert 100+
P: 839
Ok, but which nodes do you want to read?
And do you need the node name only, or node text too?
Apr 10 '07 #7

P: 30
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
Apr 11 '07 #8

dorinbogdan
Expert 100+
P: 839
Until other replies, please take a look at this short tutorial.
You will need to use:
Expand|Select|Wrap|Line Numbers
  1. <xsl:value-of select="name()" />
-- to get the current node name

Expand|Select|Wrap|Line Numbers
  1. <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.
Apr 11 '07 #9

P: 30
Until other replies, please take a look at this short tutorial.
You will need to use:
Expand|Select|Wrap|Line Numbers
  1. <xsl:value-of select="name()" />
-- to get the current node name

Expand|Select|Wrap|Line Numbers
  1. <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?
Apr 12 '07 #10

Post your reply

Sign in to post your reply or Sign up for a free account.