Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 04-24-2009, 05:33 AM   #1 (permalink)
melvinng
Recruit
 
Join Date: Apr 2009
Posts: 1
melvinng is on a distinguished road
Unhappy Populating Dropdown list based on xml file

I have been trying this for quite sometime and even looked on google but could not find a solution that works.

I am trying to populate a dropdown box I have on my html page using javascript.

I need the something like:

www.website1.ca
www.website2.com
...
in the drop down box

My xml format is as follows:

Code:
<?xml version="1.0" ?>  
<websites>
<url id="1" url="www_website1_ca" cluster="mediaweb1">www.website1.ca</url>
<url id="2" url="www_website2_com" cluster="mediaweb1">www.website2.com</url>
<url id="3" url="www_website3_lala" cluster="mediaweb2">www.website3.lala</url>
<url id="4" url="www_website4_something" cluster="mediaweb2">www.website4.something</url>
<url id="5" url="www_website5_here" cluster="mediaweb5">www.website5.here</url>
<url id="6" url="www_website6_fish" cluster="mediaweb3">www.website6.fish</url>
<url id="7" url="www_website7_food" cluster="mediaweb2">www.website7.food</url>
</websites>
Anyone that can do assist please help ...
melvinng is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Populating Dropdown list based on the other dropdownlist praveenhathwar HTML, XML, Javascript, AJAX 2 04-13-2009 12:23 AM
list within in a list (lisp) coolman All Other Coding Languages 1 03-20-2006 09:42 PM
sending dropdown list value as form parameter SeetaramaRaju HTML, XML, Javascript, AJAX 1 08-26-2005 06:02 PM
Populating tree control with specified directory folders and files HanaDin Platform/API C++ 2 07-14-2004 05:16 PM
Dropdown list in HTML JoeyJoeJo HTML, XML, Javascript, AJAX 8 02-26-2003 11:00 AM


All times are GMT -8. The time now is 12:36 AM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 RC8 ©2007, Crawlability, Inc.





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting