473,581 Members | 2,285 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to create Treecheckbox using xml file in dojo

30 New Member
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 xml file .

<?xml version="1.0"?>
<tree>
<entity id="e1">
<description>Cu stomers</description>
<oncontextmenu> </oncontextmenu>
<image>images/book.gif</image>
<imageOpen>imag es/bookOpen.gif</imageOpen>
<contents>
<entity id="e2">
<description>Mi crosoft</description>
<image>images/book.gif</image>
<imageOpen>imag es/bookOpen.gif</imageOpen>
<onClick>displa yCustomer(12345 )</onClick>
<contents>
<entity id="e3">
<description>Or ders</description>
<image>images/book.gif</image>
<imageOpen>imag es/bookOpen.gif</imageOpen>
<onClick></onClick>
<contents/>
</entity>
</contents>
</entity>
<entity id="e4">
<description>IB M</description>
<image>images/book.gif</image>
<imageOpen>imag es/bookOpen.gif</imageOpen>
<onClick>displa yCustomer(12346 )</onClick>
<contents>
<entity id="e5">
<description>Or ders</description>
<image>images/book.gif</image>
<imageOpen>imag es/bookOpen.gif</imageOpen>
<onClick></onClick>
<contents/>
</entity>
</contents>
</entity>
<entity id="e6">
<description>Su n Microsystems</description>
<image>images/book.gif</image>
<imageOpen>imag es/bookOpen.gif</imageOpen>
<onClick>displa yCustomer(12347 )</onClick>
<contents>
<entity id="e7">
<description>Or ders</description>
<image>images/book.gif</image>
<imageOpen>imag es/bookOpen.gif</imageOpen>
<onClick></onClick>
<contents>
<entity id="e8">
<description>#1 2345</description>
<image>images/paper.gif</image>
<imageOpen>imag es/paper.gif</imageOpen>
<onClick></onClick>
<contents/>
</entity>
<entity id="e9">
<description>#1 2346</description>
<image>images/paper.gif</image>
<imageOpen>imag es/paper.gif</imageOpen>
<onClick></onClick>
<contents/>
</entity>
</contents>
</entity>
</contents>
</entity>
<entity id="e10">
<description>Or acle</description>
<image>images/book.gif</image>
<imageOpen>imag es/bookOpen.gif</imageOpen>
<onClick>displa yCustomer(12348 )</onClick>
<contents>
<entity id="e11">
<description>Or ders</description>
<image>images/book.gif</image>
<imageOpen>imag es/bookOpen.gif</imageOpen>
<onClick></onClick>
<contents/>
</entity>
</contents>
</entity>
</contents>
</entity>
<entity id="e12">
<description>Re ports</description>
<oncontextmenu> </oncontextmenu>
<image>images/book.gif</image>
<imageOpen>imag es/bookOpen.gif</imageOpen>
<contents>
<entity id="e13">
<description>In come</description>
<oncontextmenu> </oncontextmenu>
<image>images/paper.gif</image>
<imageOpen>imag es/paper.gif</imageOpen>
<contents>
</contents>
</entity>
<entity id="e14">
<description>Ex penses</description>
<oncontextmenu> </oncontextmenu>
<image>images/paper.gif</image>
<imageOpen>imag es/paper.gif</imageOpen>
<contents>
</contents>
</entity>
</contents>
</entity>
</tree>


Thanx.
nitu
Apr 5 '07 #1
7 2513
snitu
30 New Member
hello

I have created TreeCheckBox in dojo but the problem is the header or the content of the tree is came from xml file.

file:///D:/DojoAjaxProject/tests/widget/tree/test_tree_10.ht ml

This is the link of TreeCheckbox file.
i am tring to get the node name from xml file
Plz. help me............. ............... ............... ............... .........



Thanks.
snitu
Apr 6 '07 #2
acoder
16,027 Recognized Expert Moderator MVP
See this link.
Apr 9 '07 #3
snitu
30 New Member
hello

i am using this code for displaying data in a table.
But can it is also working for showing the nodes name in treecheckbox?
Apr 9 '07 #4
snitu
30 New Member
See this link.


hello

i am using this code for displaying data in a table.
But can it is also working for showing the nodes name in treecheckbox?
Apr 10 '07 #5
acoder
16,027 Recognized Expert Moderator MVP
See this link (traversing the XML node tree)
Apr 10 '07 #6
snitu
30 New Member
See this link (traversing the XML node tree)

hi
Thanks for solving my problem.
Apr 17 '07 #7
acoder
16,027 Recognized Expert Moderator MVP
That's no problem. You're most welcome.
Apr 17 '07 #8

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

Similar topics

13
2098
by: Andy Baxter | last post by:
Can anyone recommend a good online guide to using objects in javascript? The book I bought (DHTML Utopia) suggests using objects to keep the code clean and stop namespace clashes between different parts of the code, but as far as I can see, the way objects work in javascript is quite awkward. I had it working the way they suggest in the book,...
9
2039
by: snitu | last post by:
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.
5
3665
by: plsHelpMe | last post by:
How to create dynamic javascript arrays using dojo toolkits Hello frens, I am in a big trouble. My objective is: I am having some categories shown by differnent radio buttons, on the click of a particular radio button i making an ajax call using dojo and retirieving the data corresponding to that category. Now i am suppose to create array...
15
13385
by: plsHelpMe | last post by:
Hi All, I am having a problem. I am using DOJO toolkits to fetch some data on my webpage. Now suppose if i leave my webpage for some time and the session gets expired and then i try to click on the link which invokes the DOJO(AJAX) call, it tries to re-authenticate and establish a session by itself. But, it then forwards me the...
7
6954
by: raknin | last post by:
Hi, Hi, Now that I am handle the way of use the dojo combobox I moving to the next stage. What I want to do is updating a second combobox automatically when a value is selected in the first combobox. I have a php that can handle the server side. Any suggestion how it can be done with dojo. I believe the code below can help other to start a...
5
9947
by: gaya3 | last post by:
Hi, can anyone find error in the following example <%@ include file="JspBean.jsp" %> <%@ page import="java.util.*"%> <html> <head> <%
2
1859
by: pincopallo_it | last post by:
I started using dojo for my AJAX application . i need really a selectbox which read a json file and that with the onchange() modify a second select box. I tried using the filtering select of dojo but i get errors noone can explain me in dojo forums ! Is there a javascript ajax framework which has more documentation and which i can use it...
1
3964
by: kokababu | last post by:
I am trying to load dojo module from different domain; such as dojo.parser, dijit.form.TextBox etc. <html> <head> <script type="text/javascript"> djConfig = { isDebug: true, parseOnLoad: true, xdWaitSeconds: 10
1
3308
by: ashutoshjoshi10 | last post by:
Hi, I am using a Dijit.form.filteringSelect to display values using the dojox.data.QueryReadStore. But, after overriding _filterResponse() to format the data in a Dojo-parsable format, whatever value I select gets bypassed and the only value that gets selected is the the first one on the list. I am using the following code…please let me know...
0
7862
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
1
7894
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8169
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6551
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5670
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5361
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3803
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2300
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1400
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.