🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.java
Article #276

Re: submit i java script

#276
From: Piotr Piatkowski
Date: Sat, 25 Jan 1997 19:58
26 lines
1672 bytes
Michal Nurzynski <michal@macrosoft.waw.pl> wrote:
: Panowie
: Mam pytanie:,
: jak funkcja java script wolana onSubmit formularza powinna sie zachowac,
: jesli po sprawdzeniu pewnych warunkow okazuje sie ze form nie jest
: wypelniony = jak odwolac submit? 

Z dokumentacji do JavaScript (m.in. http://www.agh.edu.pl/~java/js/ -
może być przestarzałe, oryginał gdzieś u Netscape):

- onSubmit event handler
-
- A submit event occurs when a user submits a form. The onSubmit event
- handler executes JavaScript code when a submit event occurs. 
-
- You can use the onSubmit event handler to prevent a form from being
- submitted; to do so, put a return statement that returns false in the
- event handler. Any other returned value lets the form submit. If you
- omit the return statement, the form is submitted. 


Czyli jak Ci się formularz nie podoba, robisz return false, jak się 
podoba - return true albo w ogóle bez return.

-- 
Piotr Piątkowski, Uczelniane Centrum Informatyki, AGH Krakow, POLAND
Technical Details
Message-ID: <5cdol3$3mh@galaxy.uci.agh.edu.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!news.icm.edu.pl!uw.edu.pl!cyfronet!galaxy.uci.agh.edu.pl!galaxy.uci.agh.edu.pl!news
References: <32E734C2.17CC@macrosoft.waw.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!news.icm.edu.pl!uw.edu.pl!cyfronet!galaxy.uci.agh.edu.pl!galaxy.uci.agh.edu.pl!news
From: kompas@galaxy.uci.agh.edu.pl (Piotr Piatkowski)
Newsgroups: pl.comp.lang.java
Subject: Re: submit i java script
Date: 25 Jan 1997 20:58:27 +0100
Organization: University of Mining & Metallurgy
Lines: 27
Message-ID: <5cdol3$3mh@galaxy.uci.agh.edu.pl>
References: <32E734C2.17CC@macrosoft.waw.pl>
NNTP-Posting-Host: galaxy.uci.agh.edu.pl
Mime-Version: 1.0
X-Newsreader: TIN [UNIX 1.3 unoff BETA release 960713]
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit