I want to reduce my web page files from 50+ to a couple by having a drop down selection autofill target page with three letter code that will in turn open specific data from an xml file.
Why?
The site am working on has a drop down menu that on selection opens a page from 50 plus pages. These pages are so dynamic that I was forced to figure out using xml to manage data input rather than going through page by page changes.
Specifics:
In the attached sample, from the pulldown menu in the Menu page, I want selecting Portland to execute an event that replaces, on the portland page,
("") with three letter code (''PDX") so that the line changes from
var x=xmlDoc.getElementsByTagName("");
to
var x=xmlDoc.getElementsByTagName("PDX");
then loads the page with tagname PDX from xml file.
This way I can use same page to load different destinations and my changes will be restricted to the xml file.
Tricky, but I am firm believer in posibilities, that someone somewhere knows how to do this.
Thanks.
Attached File(s)
-
back_button.gif (2.91K)
Number of downloads: 0 -
Portland.htm (9.69K)
Number of downloads: 0 -
style.css (7.97K)
Number of downloads: 0 -
Travelnews.xml (1.56K)
Number of downloads: 0 -
menu.html (7.86K)
Number of downloads: 2
Help














