[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Webmasterplein.net • Toon onderwerp - ENTER ipv klikken
Pagina 1 van 1

ENTER ipv klikken

BerichtGeplaatst: 31 mei 2005 17:00
door superpromo
<input type="text" ....>
<input type="button" onClick="javascript:mijnfunctie()">

Is er een mogelijkheid om ervoor te zorgen dat je op ENTER kunt drukken waarna het genoemde JavaScript programma wordt gestart met de ingetypte tekst als data?

BerichtGeplaatst: 31 mei 2005 18:22
door vosManz
Ik denk dat dat wel kan ja.

Bedoel je zoiets?:

[syntax="html"]<script>
function test() {
alert(document.formulier.veld.value);
}
</script>

<form name="formulier" action="javascript:test();">
<input type="text" name="veld" />
<input type="submit" />
</form>[/syntax]

een klein voorbeeldje.. je kan dit natuurlijk verder uitbreiden.

//edit: die & #058; is een dubbele punt ( : )

(kan er iets gedaan worden aan dat converteren van dubbele punt enz. in de syntax-tag?)

//nog een edit: deze hoort lijkt mij niet in overige thuis Wink

BerichtGeplaatst: 31 mei 2005 19:13
door superpromo
Ik zal het eens proberen...
Waar zou dit volgens jou dan wel thuishoren? HTML is er niet, en dit is geen XHTML.

BerichtGeplaatst: 31 mei 2005 19:19
door Weeeyaa
er staat dit onder:

Werkt je stylesheet niet? Geeft hij het verkeerd weer in Firefox? Vragen met betrekking tot (X)(D)HTML en CSS kun je hier kwijt.

BerichtGeplaatst: 31 mei 2005 19:26
door KillerSponge

BerichtGeplaatst: 31 mei 2005 19:30
door vosManz
dit is een mengeling van (x)html en client-side scripting... html kun je ook gewoon onder xhtml posten hoor superpromo Wink

[mod="Anthony"]Moving to HTML[/mod]

BerichtGeplaatst: 31 mei 2005 19:44
door superpromo
Whatever... In ieder geval werkt het, met één kleine kanttekening:
de tekst in het input-veld blijft staan. Ik zou ook nog iets willen toevoegen om die te laten verdwijnen wanneer je die hebt ingevoerd (hetzij door ENTER, hetzij door klikken).
Als iemand dat nog weet, dan hou ik me aanbevolen.

aanvulling:
Ik zie dat dit verplaatst is. Is dat de oorzaak dat ik dit onderwerp even niet kon oproepen (foutmelding toen ik de pagina ververste)?

BerichtGeplaatst: 31 mei 2005 21:08
door vosManz
dat kan heel eenvoudig door één regeltje toe te voegen Smile

[syntax="html"]<script>
function test() {
alert(document.formulier.veld.value);
document.formulier.veld.value = '';
}
</script>

<form name="formulier" action="javascript:test();">
<input type="text" name="veld" />
<input type="submit" />
</form> [/syntax]

je hoeft dus alleen maar even het veld op een lege waarde in te stellen (4e regel: document.formulier.veld.value = ''; )

BerichtGeplaatst: 31 mei 2005 21:42
door superpromo
Jaaaaaaaaaaa, het is gelukt.

Wel, dan is de site nu "af". En het leuke is, dat die site al eens bekeken is in het hoofdstuk "sitecheck", alleen had de site toen een andere url. Die is nu:
(wat betekent je naam?)