Web Site for Teachers - Java Script

STARTKLAAR
  • Phones Away in Your Bag or Pocket
  • Please sit with your Scrum Team
  • Reminder for taking attendance 
1 / 26
suivant
Slide 1: Diapositive
InformaticaMiddelbare schoolhavoLeerjaar 4

Cette leçon contient 26 diapositives, avec quiz interactifs et diapositives de texte.

time-iconLa durée de la leçon est: 90 min

Éléments de cette leçon

STARTKLAAR
  • Phones Away in Your Bag or Pocket
  • Please sit with your Scrum Team
  • Reminder for taking attendance 

Slide 1 - Diapositive

Today
  • Understand how JavaScript interacts with HTML forms.
  • Learn how to capture and validate form data.
  • Implement JavaScript to handle form submission in their teacher job-search website

Slide 2 - Diapositive

What have you done for website HTML part until now ?

Slide 3 - Question ouverte

What have you done for website CSS part until now ?

Slide 4 - Question ouverte

Slide 5 - Diapositive

What is JavaScript?
  • JavaScript is a programming language used to make web pages interactive.
  • Works with HTML (structure) and CSS (design).

Slide 6 - Diapositive

What do you think JavaScript is used for in websites?

Slide 7 - Question ouverte

Slide 8 - Diapositive

Slide 9 - Diapositive

Event Handling

Slide 10 - Diapositive

Slide 11 - Diapositive

Capturing Form Data

Slide 12 - Diapositive

Slide 13 - Diapositive

Slide 14 - Diapositive

What does document.getElementById do?

Slide 15 - Question ouverte

 How JavaScript Works with Forms ?
  • Forms collect user data: name, subject, experience, email.
  • JavaScript captures this data for processing.

Slide 16 - Diapositive

Validating Form Input

Slide 17 - Diapositive

Slide 18 - Diapositive

Slide 19 - Diapositive

Assignment 4

Slide 20 - Diapositive

Slide 21 - Diapositive

Slide 22 - Diapositive

Students work in pairs to debug a pre-written JavaScript form validation code

  • Fix the broken form validation.
  • Ensure all fields (name, subject, experience, email) are correctly validated.

Slide 23 - Diapositive

Challenge Instructions:
Debug the Code: Identify what is missing and what is incorrect.
Fix the Errors: Ensure that all fields (name, subject, experience, email) are validated.
Test the Code: Run the code and make sure that the form does not submit unless all fields are filled in.

Slide 24 - Diapositive

Slide 25 - Diapositive

Slide 26 - Diapositive