🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.javascript
Article #49

Re: Jak wywołać metode submit formularza po nacisnięciu klawisza enter na jednym z jego pol

#49
From: Waldemar Thiel
Date: Thu, 27 Dec 2001 12:22
14 lines
1871 bytes
| funkcja jest spoko pobiera kody wszystkich klawiszy prócz :( klawiszy
| specjalnych
| (np:enter,alt,shift itd.)

U mnie pod 'Miskiem 6' dziala wszystko ok. Pod 5.5 i 5.0 na pewno tez.
Pod N6.2 nie dziala wylapanie tego 'eventu' (window.event.keyCode), ale mysle, ze tutaj nalezy dla N umiescic odpowiedni dla niego kawalek kodu...

PS. to, ze nie lapie alt i shift to sie nie dziwie, natomiast enter to taki sam klawisz jak kazdy alfanumeryczny tylko o kodzie 13. N6.2 wylapuje wcisniecie enter'a i robi sam submit tego formularza -> nie dochodzi do rzucenia zdarzenia onkeypressed!

-- 
Waldemar Thiel
waldemar.thiel@ce-market.com

*** There are no mistakes, just learning experience ***
Technical Details
Message-ID: <a0f3od$2t$1@news.tpi.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!news.man.poznan.pl!newsfeed.tpinternet.pl!news.tpi.pl!not-for-mail
References: <a0el0a$481$1@news.tpi.pl> <a0erq5$ke8$1@news.tpi.pl> <a0ertn$lqk$1@news.tpi.pl> <a0f2fh$cpv$1@news.tpi.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!news.man.poznan.pl!newsfeed.tpinternet.pl!news.tpi.pl!not-for-mail
From: "Waldemar Thiel" <waldemar.thiel@ce-market.com>
Newsgroups: pl.comp.lang.javascript
Subject: Re: Jak wywołać metode submit formularza po
 nacisnięciu klawisza enter na jednym z jego pol
Date: Thu, 27 Dec 2001 13:22:16 +0100
Organization: tp.internet - http://www.tpi.pl/
Lines: 91
Message-ID: <a0f3od$2t$1@news.tpi.pl>
References: <a0el0a$481$1@news.tpi.pl> <a0erq5$ke8$1@news.tpi.pl> <a0ertn$lqk$1@news.tpi.pl> <a0f2fh$cpv$1@news.tpi.pl>
NNTP-Posting-Host: hermes.ce-market.com
Mime-Version: 1.0
X-Trace: news.tpi.pl 1009455693 93 195.116.250.42 (27 Dec 2001 12:21:33 GMT)
X-Complaints-To: usenet@tpi.pl
NNTP-Posting-Date: Thu, 27 Dec 2001 12:21:33 +0000 (UTC)
X-MSOESRec: 797374-200112427122216913-00820101005800320074
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MSMail-Priority: Normal
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit