/ Forside / Teknologi / Udvikling / Java / Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
Java
#NavnPoint
molokyle 3688
Klaudi 855
strarup 740
Forvirret 660
gøgeungen 500
Teil 373
Stouenberg 360
vnc 360
pmbruun 341
10  mccracken 320
<base href="/"> is fucking my javascript
Fra : Villy Skov


Dato : 22-11-01 08:54

When i run this script, it calls the Submithandle like is shuld

If i add the line <base href="/"> at the top, the form don't find the
submitHandle, what is happening?

Is there a way to call the function when i have the <base href="/"> ?



-----Start script-------


<script language="javascript">
<!--

function submitHandler()

{
qs += "navn=" + document.inputforma.navn.value;


document.location = "/sv_nytlaan.htm?" + qs + "&bannersite=LIH");

return true;

}

// -->
</script>


<form name=inputform action="/sv_nytlaan.htm" method="get">

<INPUT NAME="navn" VALUE="Indtast dit navn">

<input type="Submit" value=" Send" onClick="submitHandler();">

</form>

------End Script--------

 
 
Soren 'Disky' Reinke (22-11-2001)
Kommentar
Fra : Soren 'Disky' Reinke


Dato : 22-11-01 09:17

This is a JAVA group not Javascript !

--
With many Thanks

Soren ' Disky ' Reinke ICQ #1413069
http://www.disky-design.dk/fish
Remove IHSYD from email address when replying by email

"Villy Skov" <villyskov@my-deja.com> skrev i en meddelelse
news:6a0581f1.0111212353.23460d25@posting.google.com...
> When i run this script, it calls the Submithandle like is shuld
>
> If i add the line <base href="/"> at the top, the form don't
find the
> submitHandle, what is happening?
>
> Is there a way to call the function when i have the <base
href="/"> ?
>
>
>
> -----Start script-------
>
>
> <script language="javascript">
> <!--
>
> function submitHandler()
>
> {
> qs += "navn=" + document.inputforma.navn.value;
>
>
> document.location = "/sv_nytlaan.htm?" + qs +
"&bannersite=LIH");
>
> return true;
>
> }
>
> // -->
> </script>
>
>
> <form name=inputform action="/sv_nytlaan.htm" method="get">
>
> <INPUT NAME="navn" VALUE="Indtast dit navn">
>
> <input type="Submit" value=" Send" onClick="submitHandler();">
>
> </form>
>
> ------End Script--------


Thorbjørn Ravn Ander~ (22-11-2001)
Kommentar
Fra : Thorbjørn Ravn Ander~


Dato : 22-11-01 16:49

Villy Skov wrote:

> If i add the line <base href="/"> at the top, the form don't find the
> submitHandle, what is happening?

Tal pænt. Der er kvinder og børn tilstede i gruppen.

Måske ville du få et bedre svar i en javascript gruppe?


Søg
Reklame
Statistik
Spørgsmål : 177501
Tips : 31968
Nyheder : 719565
Indlæg : 6408526
Brugere : 218887

Månedens bedste
Årets bedste
Sidste års bedste