Hey all,
This will be easy for some of you but it's making me pull my hair out. Here is the relevant URL: http://www.neuverband.ch/index_TEMP.html
I want to set the 'choose language' switch in the top right so that it will jump to the same page, in the chose language, as the one which is currently loaded... e.g. if the 'about-us' page is loaded and you switch language, rather than going back to the main page, it should go to 'about-us' in the new language.
The site is organised in this way: page-name-in-English + _ + LANGUAGE + .html so, the possible URLs for 'about-us' are:
about-us_EN.html
about-us_DE.html
about-us_FR.html
about-us_IT.html
As I see it, to do this, it's just a simple three-step process:
1. Store current iframe URL as variable 'X' - ALREADY DONE
2. Remove suffix _LANG from X and store as variable 'Y' - ALREADY DONE
3. set links in the 'choose-language-switch' to Y_EN, Y_DE, Y_FR & Y_IT - THIS PART IS WHAT I AM TRIPPING UP ON
All of this will happen in the index_TEMP.html because the whole site displays with inline frames (id="mainframe").
PLEASE HELP!
Paul