[JS] wat klopt hier niet?

Pagina: 1
Acties:

  • Karp
  • Registratie: Augustus 2001
  • Laatst online: 13-09 08:03
code:
1
2
3
4
5
6
7
8
<script language="javascript">
function go()
{
var user = document.form.user.value;
var pass = document.form.pass.value;
if ( pass == null ) { history.refresh(); } else { location = user.toLowerCase() + "/" + pass.toLowerCase() + ".htm"; }
}
</script>

staat op de pagina http://www.geocities.com/tgf_rulez/News.html

ik krijg in IE6 de fout "tekenreeksconstante is niet afgesloten"


BvD, kan ik weer iemand blij maken

Ik weet alles over digitale toegankelijkheid, of ik weet wie het wel weet.


  • Bosmonster
  • Registratie: Juni 2001
  • Laatst online: 29-08 19:47

Bosmonster

*zucht*

de functienaam "go" is gereserveerd..

Verwijderd

Op dinsdag 05 maart 2002 16:01 schreef Bosmonster het volgende:
de functienaam "go" is gereserveerd..
"kennen jullie deze nog???? "
history.go(-1)
;)

daarom doet ie dus zo weinig.
zou je van je script dit maken lukt t misschien wel:
code:
1
2
3
4
5
6
7
8
<script language="javascript">
function gaanmetdiebanaan()
{
var user = document.form.user.value;
var pass = document.form.pass.value;
if ( pass == null ) { history.refresh(); } else { location = user.toLowerCase() + "/" + pass.toLowerCase() + ".htm"; }
}
</script>

staat ook nog eens heel leuk :+

  • drm
  • Registratie: Februari 2001
  • Laatst online: 09-06-2025

drm

f0pc0dert

Lezen kan geen kwaad, jongens:
ik krijg in IE6 de fout "tekenreeksconstante is niet afgesloten"
Overigens krijg ik op die pagina een "Access Denied" melding is IE6...

Music is the pleasure the human mind experiences from counting without being aware that it is counting
~ Gottfried Leibniz


  • Bosmonster
  • Registratie: Juni 2001
  • Laatst online: 29-08 19:47

Bosmonster

*zucht*

ow ja..

de naam "form" is ook gereserveerd...

  • Bosmonster
  • Registratie: Juni 2001
  • Laatst online: 29-08 19:47

Bosmonster

*zucht*

Maar tis helemaal bagger.. De access denied komt van de GeoCities code (als ik die weghaal is die ok).

Verder is het ook wel handig om <html></html> enzo te gebruiken :P

  • Karp
  • Registratie: Augustus 2001
  • Laatst online: 13-09 08:03
You cant blame me! It aint my page! :D


maar anyhoe, danke schoon
ik zal het ff doorspelen

Ik weet alles over digitale toegankelijkheid, of ik weet wie het wel weet.


  • Bosmonster
  • Registratie: Juni 2001
  • Laatst online: 29-08 19:47

Bosmonster

*zucht*

You cant blame me! It aint my page!

maar anyhoe, danke schoon
ik zal het ff doorspelen
Zou'k ook zeggen ;)

  • drm
  • Registratie: Februari 2001
  • Laatst online: 09-06-2025

drm

f0pc0dert

Ja, ach... gereserveerde woorden doet JS over het algemeen niet zo moeilijk over. Wat dat betreft is referentie by-array altijd veiliger (of natuurlijk getElementById)
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<html>
<head>
   <script>
   function go ()
   {
    alert ( document.forms [ "form" ].elements [ "sjaak" ].value );
   }
   </script>
</head>

<body onload="go ();">
<form id="form" name="form">
<input type="text" name="sjaak" value="melp">
</form>


</body>
</html>

Music is the pleasure the human mind experiences from counting without being aware that it is counting
~ Gottfried Leibniz


Verwijderd

Op dinsdag 05 maart 2002 16:42 schreef drm het volgende:
Lezen kan geen kwaad, jongens:
[..]

Overigens krijg ik op die pagina een "Access Denied" melding is IE6...
:o
sowwy :)

  • Bosmonster
  • Registratie: Juni 2001
  • Laatst online: 29-08 19:47

Bosmonster

*zucht*

Access Denied krijg ik overigens pas nadat ik die twee fouten deruit haal (go()/form).

En die fout lost zich weer op door die GeoCities shit deruit te halen (wat je zelf waarschijnlijk niet kan :P)...
Pagina: 1