In this assignment you will:
- Continue practice handling various Javascript events by writing dynamic event handlers.
- Use Javascript commands perform form validation.
In all you do please remember that being a part of CSCI@HSU means DOING THE RIGHT THING.
- Doing the right thing matters.
- Doing the right thing means developing competence.
- Doing the right thing means living in community.
- Doing the right thing means finding moral, effective, and correct solutions.
- Doing the right thing means honoring God in all we do.
So, do this assignment in a way that demonstrates integrity, develops
competence, is correct, and honors God ... because what we do matters!
In completing this assignment you MAY use/access the following resources:
- The quick reference guides below (which include the printed guides
handed out in class):
- VSCode Editor in its configuration as provided in the course repo. You may use the
extensions that were suggested when you first launched VS Code in the repo directory.
- The instructor-provided notes for this course: https://docs.google.com/presentation/d/1NvzTydQUHc8_-bX2oH1hyzSbFMYByCsp/edit?usp=sharing&ouid=102845346193600525432&rtpof=true&sd=true
- Your own course notes
- Your instructor
- Discussions about the assignment with other students as long as you
never look at the working code of another student. Another student should
never tell you what to type and you should never tell another student what
to type.
- Websites that provide general instruction on HTML and CSS as long as they are
not targeted specifically to the assignment on which you are working. As an
example, if you want to learn about techniques for applying a color scheme
to a web site, this is a good thing to look up. If you are looking for a
solution to a specific Javascript programming exercise given in a homework
assignment, that is NOT something you should look up. REMEMBER: The goal is
for you to become proficient, so you need to figure some things out.
- Examples provided at: https://josephus.sergeantservices.com/classes/w1/source/
You may NOT use/access:
- Resources not expressly listed above, including, but not limited to,
the following ...
- Code-producing extensions to VSCode that are beyond the default
configuration (such as code completion, CoPilot, or other AI-enabled extensions).
- Code produced by code-generating tools of any kind (ChatGPT as one example).
- Code produced by other people (including classmates) that is targeted
to solve the specific assignment you are working on.
Failure to abide by these guidelines will result in a zero for the assignment
and the incident will be reported to the university provost as a violation of
the university academic integrity policy. A second incident of academic
dishonesty (whether from this course or another computer science course) will
result in an F in the course.
If you haven't done so already. Complete your lab day work. Your final form
should:
- Provide error messages on the form itself when the form is submitted
(when error messages are needed).
- If there are not error messages the form should submit normally. If there
are errors the form should not submit.
- The form should display all appopriate error messages when applicable and
should not ever display error messages when not applicable.
- Add Radio Buttons to Your Form
- Continuing working on the form in
poemlayout.html. Add a form element to the form called “Poet Rating”
that will provide a set of radio buttons that will allow the poet to rate
themselves as one of the following: Beginner, Intermediate, Advanced. The
buttons should be attratively arranged and labeled in accordance with your
color scheme.
- Modify the Poem Type Dropdown
- It is common, when creating a drop-down
select box to have the first option provide instructions rather than be a
valid entry. One reason for this is that sometimes you don't want to have
a “default” value, but rather to know that the user has explicitly
chosen something. In this case, the first/default entry should say
something like: “Select Poem Type ...”.
- Validate All Form Elements
- Using the same techniques as from the lab
day exercise, continue adding form validation to the form as follows:
The error messages should use the same styling and methodology as prescribed in
the lab day exercise. Commit your work and push it to GitHub.
If you haven't done so already, copy the most recent version of your personal
site into the hw07 directory. Now use the same techniques to add
trimming, validation, and well-formed error messages to the form on your
personal site.
Commit your work and push it to GitHub.