× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



This programming method sounds great for some of my applications, thanks, I will read more. (no single tool is the best for everything)

If you store in the AS the validated data, you don't need to do anything else, but I consider the validation in the server CGI vital when the data is received, even if it comes (supposedly) from a FORM with validation, because it is very easy to fake the origin of the data. It is very usefull to be able to automatize sending the data to your server by simulating the submit of a form.
_______________________________________________________________________________________________
Bill Meecham wrote:

Note that when I validate on the html page, for an input box that needs
validation (rare) I submit it to the server (midrange name du jour) and
validate it as the field loses focus.  That validation is done in a hidden
iFrame. When the validation page is complete it will throw an error for the
input field...shortly after focus is lost.
So the validation IS done on the I5.....except for things like input field
dates....for them I script validate and on submit validate on the server as
well.....that's why combobox date fields or calendar select date fields are
much better, the validation is built into the field.

Most other fields are combo, list, check or radio boxes...all self
validating.....unless there is referential validation required, then it's
back to the hidden iFrame method.



cheers.
bill




----- Original Message ----- From: Raul A. Jager W. <mailto:raul@xxxxxxxxxx> To: Midrange Systems Technical <mailto:midrange-l@xxxxxxxxxxxx> Discussion Sent: Wednesday, March 15, 2006 4:12 PM
Subject: Re: date validate


I agree that the validation in the server is "duplicate" but I found it incredible how smart are the "dumb users". Somehow they will manage to submit invalid info to your program, and you don't want a crash in a web application. Using web you can not tell the users to "reply with C to continue". Bill Meecham wrote:
I agree.  To lessen network traffic as much validation as possible should
be
done in the browser so that each event is checked. There are at least a couple of ways to do that. One is with script, the other is to validate onblur or onchange with a form submit into an iFrame. Using the latter, a common validation routine can verify that the input for the field is
correct
and respond to any errors as they're made instead of submitting the full form and then seeing every error on the form.
Validation can be done on the server but I'd rather have it done as data is

entered than validating every input on the form after submit.



----- Original Message ----- From: Raul A. Jager W. <mailto:raul@xxxxxxxxxx <mailto:raul@xxxxxxxxxx> > To: Midrange Systems Technical <mailto:midrange-l@xxxxxxxxxxxx
<mailto:midrange-l@xxxxxxxxxxxx> > Discussion
Sent: Wednesday, March 15, 2006 2:43 PM Subject: Re: date validate

I belive that validation *must* be made in the server, and it is very convinient to do it also in the browser, javascript is an exelent tool for that. Also, javascript can help filling the form, suplying reasonable defaults and offering dinamic options. BUT the validation in the browser is easy to disable, so, it is mandatory to validate in the server. Michael_Schutte@xxxxxxxxxxxx wrote:


I'm out of touch with web-based programming, but I seem to recall that you

can verify that the browser if java-scripted enabled before continuing. Again, don't get me wrong, I'm not suggesting that you don't validate behind the scenes. I was only pushing to use the functions that are made available to you instead of "re-inventing the wheel". Nothing to do with design but to use

the tools that are made available to you. Michael Schutte




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.