473,498 Members | 1,838 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to create treecheckbox using javascript and xml file

30 New Member
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
9 2033
chandrashekhar maral
19 New Member
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
839 Recognized Expert Contributor
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
snitu
30 New Member
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
839 Recognized Expert Contributor
Please post the XML you are using, with few data in it.
Apr 10 '07 #5
snitu
30 New Member
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
839 Recognized Expert Contributor
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
snitu
30 New Member
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
839 Recognized Expert Contributor
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
snitu
30 New Member
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

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

Similar topics

1
2608
by: D. Lee Christopher | last post by:
Can anyone point me to a good tutorial for creating a site-level search applet? I am trying to create a virtual catalog of sorts, and I would like to be able to search the catalog and have the...
16
23264
by: datactrl | last post by:
Hi, Is that posible to create a web page completely with javascript and open it without request to server? Please show a simple sample. Thanks in advance! Jack
7
18784
by: Martin | last post by:
I have a situation where I'm displaying some information in a table on a web page. I've given the user the ability to make several different "queries" and show different sub-sets of the data. I...
7
7753
by: moondaddy | last post by:
I want to dynamically create a JavaScript file and cache it on the client for re-use. I know how to write javascript to a web page from the code behind, but I don't know how to actually create a...
2
3032
by: Jake Barnes | last post by:
Using javascript closures to create singletons to ensure the survival of a reference to an HTML block when removeChild() may remove the last reference to the block and thus destory the block is...
2
1837
by: SteMc | last post by:
Hi, I'm trying to create a text file on an asp page but am having loads of trouble. At the minute what happens is this - I have a form with a textarea. When the form posts, the action is to run...
7
2508
by: snitu | last post by:
hello i am new user of this forum. i have a problem in javascript code. plz. give me idea about how to create tree using xml file (not using xsl file) in javascript. i am also sending my...
4
8259
by: sirjohnofthewest | last post by:
If I possessed the power to sway the mind of every user in the world to delete all forms of Internet Explorer I would die a happy man. Hi guys, I frequently visit this site to get answers to my...
0
3708
by: TrevRex | last post by:
Hello, I work for a non-profit in San Diego as a GIS Specialist. I have had to teach myself about some scripting to create some dynamic maps, but I am still very limited in my skills, so I have...
0
7125
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7004
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7208
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5464
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4593
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3095
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3085
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
657
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
292
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.