Web Design Forum: Autofill line in another page with select letters - Web Design Forum

Jump to content

WDF
WDF Premium Memberships Reseller Hosting
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Autofill line in another page with select letters How do I avoid 50 html files where changes is 3 letters in each

#1 User is offline   Danielo 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 36
  • Joined: 10-December 08
  • Reputation: 2
  • Gender:Male
  • Location:USA
  • Experience:Intermediate
  • Area of Expertise:Entrepreneur

Posted 11 April 2009 - 12:34 AM

Help needed!
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)


0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users