Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
In this lecture from the cs101 introduction to computing course, students learn how to add more interactivity to forms using javascript. The basics of form tags, various input types, and the role of client-side scripts in form validation. Students will also explore the advantages and disadvantages of client-side scripting.
Typology: Slides
1 / 52
Focus of the last lecture was on Interactive Forms
In Today’s Lecture …
But first lets review the tags that are
used in forms
Single-Line Text Input Field
Password Input Field
Hidden Input
Checkbox Input Element
Radio Button Input Element
File Upload Input Element
Reset Button Input Element
Submit Button Input
8 Possible Values for the “type” Attribute
of tag
Multi-Line Text Input Area
Select from a (Drop Down) List
<SELECT name=“name” size=“numberOfDisplayedChoices” multiple
(^) Docsity.com 16
End of the Review of Tags Used in Forms
Now let’s take a look at a form that we constructed last time, and see how we can make it better
Let’s now review what happens when I enter all the required info and press the “Send eMail” button?
22
Info contained in the form
Message to the receiver’s eMail address
User’s Computer
Web Server
Server-Side Script
Browser
This is what happens when the form is filled correctly. What if
the form is filled incorrectly?
A Reasonable Scenario
This process …