<<BACK HOME CNCPT TTRL JS | sf.net/projects/validateformjs | [ u | s | M | ? ] |
rqd dec eml int len mcr bss trm sif | All Concepts | |
frm txt pwd txa rdo sl1 chk slm | All Object Types |
validate_form.js
A complete re-write. New features and changes :
:' )
validate_form.js
concept.SIFmt
-Attributes. Upgrade instructions are right below.sMsgBadSubStr
: ~BSS_FOUND~
, ~BSS_LIST~
sMsgTxtDec
: ~RANGE_MIN~
, ~RANGE_MAX~
sMsgTxtInt
~RANGE_MIN~
, ~RANGE_MAX~
sMsgBadLength
: ~RANGE_MIN~
, ~RANGE_MAX~
, ~CURRLEN~
(in previous versions) sMsgMCRange
: ~OPTS_TOTAL~
, ~OPTS_CHOSEN~
, ~RANGE_MIN~
, ~RANGE_MAX~
test_and_xmpl.testCode()
. Because running individual unit tests displays the code snippet and result, the 'error examples' section from previous versions has been eliminated.undefined
, null
, 0, '', true, ... (special thanks to Laurent Vallis). Some documented restrictions didn't crash like they said they would. Now they do.Upgrading To Version 1.9b
iDecMin
' to 'dDecMin
'iDecMax
' to 'dDecMax
'bsNoBadSubStrings
' to 'bsNoBadSubStrs
'SIFmt
-Attributes (particularly the 'Understanding' section) for details on how to implement them in this new version. Sorry for the trouble, but this is a much better implementation from both my and your perspectives.validate_form.js
has changed. See the code of the first tutorial for details, but, pretty much, all you need to do is...NAME
.loadVF()
and configVF()
as the very first JavaScript in the page.getFormErrorMsgs()
used to be i_dbgPerScreen
. It is now, instead, the second parameter of configVF()
.onLoad="completeVFLoad();"
to your body
tag.Please help me figure out the following, if you happen to come across the answer. I'm particularly looking for browser incompatibilites, and those browsers it definitely works properly in. Thank you. I'll look in the user forums for you.
alert()
in Mozilla 0.9:
Error: [Exception... "'Permission denied to get property XULElement.selectedIndex' when calling method: [nsIAutoCompletePopup::selectedIndex]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "JS frame :: file:///E:/build/validate_form_js-1.9-beta/documentation/tutorial/vfc_un/tryit/the_basics.html :: submitGoodValues :: line 25" data: no]
Source File: file:///E:/build/validate_form_js-1.9-beta/documentation/tutorial/vfc_un/tryit/the_basics.html
Line: 25
977kb
): Everything you need to run validate_form.js, including source code, documentation and example code
753kb
): Everything you need to build validate_form.js from scratch.
License change from GNU General Public License (GPL) to the BSD License (with no advertising clause). If you are using previous versions of validate_form.js
, they remain under the GPL. Special thanks to those who helped walk me through the licensing fire. :' )
Major reorganization and optimization of the build process and documentation, and also implemented into sourceforge.net. No changes have been made to any code.
...validate_form.js
: 88kb
uncompressed, 22kb
compressed (exactly 72.66% smaller).
...validate_form_js-1.3.zip (302kb
): Everything you need to run validate_form.js, including source code, documentation and example code
...validate_form_js_build-1.9.zip (410kb
): Everything you need to build validate_form.js from scratch.
A major update as far as overall usefulness, however there are no significant functionality deletions/additions/changes.
validate_form.js
, a compression routine has been added to the build process. Now the JavaScript file downloaded by your users is 74 percent smaller than in previous versions. See below for statistics, and compression.log
for way-too-many details. Because of this, every piece of example code has been duplicated, the first importing validate_form.js
(the compressed version) and the other validate_form.js
. Also see the new special note: What you need to know regarding the compressed versus uncompressed versions of validate_form.js
validate_form.js
. This functionality is not new, but I wanted to feature it more. Also the new line in the conceptual table of contents....validate_form.js
: 86kb
uncompressed, 23kb
compressed (73.71% smaller).
...everything (use): Code (with comments), documentation, tests and example code: 717kb
(181kb
zipped).
...everything (build): 1mb
(508kb
zipped).
A minor update. No functionality deletions or changes. Thanks to John Michael who inspired/suggested the changes in this update.
select-one
form element. See sMsgRequired.VALUE
HTML attribute is required for select-one
elements.validate_form.js.gtMCSelCountOTF()
utility function (see the first item under "You should understand these..."). This is a separate, utility function, and does not affect the core validate_form.js
functionality. The purpose of this function is for those desiring to get the number of multiple-choice items selected, "on-the-fly". See the internal documentation, near the top of validate_form.js
, and the corresponding vf example code and error examplesDownload to use or build. To download, you must join the validate_form.js
Yahoo! Group.
...validate_form.js
: 61kb
not including internal comments, 90kb
including comments.
...everything (use): Code (with comments), documentation, tests and example code: 462kb
(113kb
zipped).
...everything (build): 554kb
(232kb
zipped).
A major update, but 100 percent backwards compatible. You do not need to change any code to use this new version. Just replace your existing validate_form.js
file with the 1.1 version
sMsgTxtDec
, including example code, unit tests and error examples. Note the new documentation about precision, regarding both sMsgTxtDec
and sMsgTxtInt
.sMsgTxtPhone
has been greatly enhanced. Version 1.0 only allowed for American phone numbers. You can now configure ten different formats, reflecting your part of the world, or a minimum/maximum range specifically applying to your website. There is new example code, unit tests and error examples.sMsgTxtZip
has been greatly enhanced, in the same way as sMsgTxtPhone
. There is new example code, unit tests and error examples....validate_form.js
: 60kb
not including internal comments, 87kb
including comments.
...everything (use): Code (with comments), documentation, tests and example code: 433kb
(106kb
zipped).
Initial release
Download to use or build. To download, you must join the validate_form.js
Yahoo! Group.
...validate_form.js
: 43kb
not including internal comments, 61kb
including comments.
...everything (use): Code (with comments), documentation, tests and example code: 276kb
(72kb
zipped).
Copyright (C) 2003-2005, Jeff Epstein. All rights reserved.