|
Due: 2019.Apr.09 (Tue) at start of class but it should be completeable it by Apr.05 (Fri). Submit on D2L, and as usual have your a link to your form available at https://php.radford.edu/~yourUserId/itec325/hw06/index.php. (No hardcopy needed.)
Note: Points-possible are approximate, and may change somewhat when grading.
We will further improve on server-side-validation/’s Okaymon page by
adding client-side validation.
Make a copy of your directory from hw051, named hw06/.
(cp -pR hw05/ hw06 will
Be sure to use your named-constants file, for the field-lengths. (1/3 of the points are for that.)
Note that this interacts with our previously-written functions for generating dropdowns
and radio-buttons;
we now want to have those input tags include a
Write a separate javascript function which does this:
if the field is too big, it inserts the message-text into a nearby span whose
(You may write
Make sure that
You do not need to have your javascript in an external file, for this homework. In fact, since some of the validation requires info from the constants-file, a pure-external-javascript solution would mean generating that .js — either on each fetch, or a more-static version which you must be sure to regenerate each time okaymon-constants.php is changed.
This page licensed CC-BY 4.0 Ian Barland Page last generated | Please mail any suggestions (incl. typos, broken links) to ibarlandradford.edu |