/    Sign up×
Community /Pin to ProfileBookmark

Pobulationg dropdownlist with XML Data

hello,
i have a page with two dropdownlists one for the company and the other is for the branches, and i have two XML Islands one is the companies Dataset and the other is Branches Dataset.

<Xml id=”xmlBranches”>
<Branches>
<Branch_ID>1</Branch_ID >
<Company_ID>1</Company_ID>
< Branch_Name>Branch1 </ Branch _Name>
</ Branches >
< Branches >
<Branch_ID>2</BranchCompany_ID>
<Company_ID>1</Company_ID>
<Branch_Name>Branch2</ Branch_Name >
</ Branches >
<Branches>
<Branch_ID>3</Branch_ID >
<Company_ID>2</Company_ID>
< Branch_Name>Branch1 </ Branch _
Name>
</ Branches >
< Branches >
<Branch_ID>4</BranchCompany_ID>
<Company_ID>2</Company_ID>
<Branch_Name>Branch2</ Branch_Name >
</ Branches >

</Xml>

now i want to pobulate the first dropdownlist with the companies dataset and the the other with the branches dataset, and i want to adjust the onchange event for the companies dropdownlist to automatically filter and pubulate the branches dropdownlist with the related branches to only.

can you help me with this issue.

Thank you

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@toicontienJan 07.2008 — At this point in the development of the Web, you're far better off putting that data in a JSON object.
×

Success!

Help @sam7_976 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...