bbeat
08-09-2004, 08:02 AM
Hello,
I'm trying to write a script that would allow me to keep some parameters with different URL. Let say I have a default.htm page with 2 boxes where you can put your name and password. This page exists in different laguages with names like this: defaultse.htm, defaultde.htm, defaultfr.htm for instance. Each country has a specific extention. Currently if a user enters a name and password and then decides to change language, the url changes but the name/password fields remain blank and need to be reentered.
How could I make this work?
Thanks!
Here is what I've put:
<form name="jump">
<select name="menu" OnChange="createUrl();"
value="GO">
<option value="en">English</option>
<option value="fr">Français</option>
<option value="sp">Español</option>
<option value="de">Deutch</option>
<option value="se">Svenska</option>
</select></form>
function createUrl()
{
location.href='http://test/default'+jump.menu[jump.menu.selectedIndex].value+'.htm?Name='+name+'&Pin='+pin;
}
I'm trying to write a script that would allow me to keep some parameters with different URL. Let say I have a default.htm page with 2 boxes where you can put your name and password. This page exists in different laguages with names like this: defaultse.htm, defaultde.htm, defaultfr.htm for instance. Each country has a specific extention. Currently if a user enters a name and password and then decides to change language, the url changes but the name/password fields remain blank and need to be reentered.
How could I make this work?
Thanks!
Here is what I've put:
<form name="jump">
<select name="menu" OnChange="createUrl();"
value="GO">
<option value="en">English</option>
<option value="fr">Français</option>
<option value="sp">Español</option>
<option value="de">Deutch</option>
<option value="se">Svenska</option>
</select></form>
function createUrl()
{
location.href='http://test/default'+jump.menu[jump.menu.selectedIndex].value+'.htm?Name='+name+'&Pin='+pin;
}