Hi folks,
first of all, I'm absolutly new to javascript. I have designed a html-form
and am trying to path parameters with the suffix of i.e.
?Seminartitel=h allowelt in the url.
In the head of the called page I put the following script (I found it some
where, many thanks to him):
<script language="JavaS cript">
function GetUrlValue(Ent ry)
{
urlText=locatio n.search;
fc=urlText.slic e(0,1);
if(fc=="?")
{
l=urlText.lengt h;
urlText=urlText .slice(1,l);
ArgSet=urlText. split("&");
for(i=0;i<ArgSe t.length;i++)
{
as=ArgSet[i].split("=");
if(as[0]==Entry)
{
return (as[1]);
}
}
return ("");
}
}
</script>
Now, I would like to preset the field Seminar of the form with the value
Seminartitel.
<input type="text" size="40" name="Seminar" value=" ... xxxxxxxx ......">
Many thanks,
Holger Butschek
--
Erstellt mit M2, Operas revolutionärem E-Mail-Modul:
first of all, I'm absolutly new to javascript. I have designed a html-form
and am trying to path parameters with the suffix of i.e.
?Seminartitel=h allowelt in the url.
In the head of the called page I put the following script (I found it some
where, many thanks to him):
<script language="JavaS cript">
function GetUrlValue(Ent ry)
{
urlText=locatio n.search;
fc=urlText.slic e(0,1);
if(fc=="?")
{
l=urlText.lengt h;
urlText=urlText .slice(1,l);
ArgSet=urlText. split("&");
for(i=0;i<ArgSe t.length;i++)
{
as=ArgSet[i].split("=");
if(as[0]==Entry)
{
return (as[1]);
}
}
return ("");
}
}
</script>
Now, I would like to preset the field Seminar of the form with the value
Seminartitel.
<input type="text" size="40" name="Seminar" value=" ... xxxxxxxx ......">
Many thanks,
Holger Butschek
--
Erstellt mit M2, Operas revolutionärem E-Mail-Modul:
Comment