Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199807

Re: [PHP3] Offtopic - JavaScript From: Alex Belits (abelits <email protected>)
Date: 07/20/98

#ifdef FLAME

On Mon, 20 Jul 1998, Wintermute wrote:

> I just HAD to interject.. cuz.. well.. I feel generous.
>
> We generally use something like:
>
> function check_form( thisForm ) {
> if( *field doesn't meet some condition* ) {
> alert("Message about it here.");
> return;
> }
>
> // more checks and preprocessing in here
>
> // if it makes it down this far
> thisForm.submit();
> }
>
> And, we use input type "button" and not "submit".
>
> <input type="button" value="Yadda Yadda"
> onClick="check_form(document.forms[0])">
>
>
>
> But that's just us..

  The fact that it doesn't work at all with Javascript not supported or
disabled (as opposed to submit-filter that just won't be called, but
server-side filter is mandatory for such programs anyway) probably doesn't
bother you.

#if FLAME_LEVEL >= RMS

  Guys, why do you bother with HTML at all? Use Java, ActiveX

#if FLAME_LEVEL >= DJB

(there are great experts on it here)

#endif

, write plugins with all user interface built in, or even make independent
clients -- you don't give a damn about compatibility with clients other
than your own one anyway, do you?

#endif
#endif

--
Alex

-- PHP 3 Mailing List http://www.php.net/ To unsubscribe send an empty message to php3-unsubscribe <email protected> To subscribe to the digest list: php3-digest-subscribe <email protected> For help: php3-help <email protected> Archive: http://www.php.net/mailsearch.php3