H
Holger Butschek
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=hallowelt 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="JavaScript">
function GetUrlValue(Entry)
{
urlText=location.search;
fc=urlText.slice(0,1);
if(fc=="?")
{
l=urlText.length;
urlText=urlText.slice(1,l);
ArgSet=urlText.split("&");
for(i=0;i<ArgSet.length;i++)
{
as=ArgSet.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
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=hallowelt 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="JavaScript">
function GetUrlValue(Entry)
{
urlText=location.search;
fc=urlText.slice(0,1);
if(fc=="?")
{
l=urlText.length;
urlText=urlText.slice(1,l);
ArgSet=urlText.split("&");
for(i=0;i<ArgSet.length;i++)
{
as=ArgSet.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