[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
aan alle goede dingen komt een eind, webmasterplein.net 2003 - 2013
wij danken jullie voor al mooie momenten die dankzij dit forum ontstonden - Derk, Rutger en Stef

ENTER ipv klikken

Het echte opmaakwerk, alles vragen over HTMLen, CSSen en Javascripten.

ENTER ipv klikken

Berichtdoor superpromo » 31 mei 2005 17:00

<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?
Ik ben tegen spam, popups, Trojaanse paarden en alle andere vormen van internetvervuiling
Avatar gebruiker
superpromo
wmpr
 
Berichten: 66
Geregistreerd: 06 mei 2005 09:58

Berichtdoor vosManz » 31 mei 2005 18:22

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
Avatar gebruiker
vosManz
wmpr
 
Berichten: 139
Geregistreerd: 17 apr 2005 21:26

Berichtdoor superpromo » 31 mei 2005 19:13

Ik zal het eens proberen...
Waar zou dit volgens jou dan wel thuishoren? HTML is er niet, en dit is geen XHTML.
Ik ben tegen spam, popups, Trojaanse paarden en alle andere vormen van internetvervuiling
Avatar gebruiker
superpromo
wmpr
 
Berichten: 66
Geregistreerd: 06 mei 2005 09:58

Berichtdoor Weeeyaa » 31 mei 2005 19:19

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.
Avatar gebruiker
Weeeyaa
wmpr
 
Berichten: 2796
Geregistreerd: 10 jul 2004 07:39

Berichtdoor KillerSponge » 31 mei 2005 19:26

Blabla en andere onzin - http://killersponge.nl
Avatar gebruiker
KillerSponge
Beheerder
Beheerder
 
Berichten: 14456
Geregistreerd: 24 aug 2004 13:05

Berichtdoor vosManz » 31 mei 2005 19:30

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]
Avatar gebruiker
vosManz
wmpr
 
Berichten: 139
Geregistreerd: 17 apr 2005 21:26

Berichtdoor superpromo » 31 mei 2005 19:44

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)?
Ik ben tegen spam, popups, Trojaanse paarden en alle andere vormen van internetvervuiling
Avatar gebruiker
superpromo
wmpr
 
Berichten: 66
Geregistreerd: 06 mei 2005 09:58

Berichtdoor vosManz » 31 mei 2005 21:08

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 = ''; )
Avatar gebruiker
vosManz
wmpr
 
Berichten: 139
Geregistreerd: 17 apr 2005 21:26

Berichtdoor superpromo » 31 mei 2005 21:42

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?)
Ik ben tegen spam, popups, Trojaanse paarden en alle andere vormen van internetvervuiling
Avatar gebruiker
superpromo
wmpr
 
Berichten: 66
Geregistreerd: 06 mei 2005 09:58


Keer terug naar HTML, CSS, Javascript



cron