HTML Forms and Scripts - PowerPoint PPT Presentation

About This Presentation
Title:

HTML Forms and Scripts

Description:

HTML Forms were the first way for users to ... Dynamic HTML / dHTML / DHTML ... DHTML = HTML CSS scripts (generally, JavaScript) Example: Dynamic HTML ... – PowerPoint PPT presentation

Number of Views:23
Avg rating:3.0/5.0
Slides: 13
Provided by: went
Learn more at: http://www.aworc.org
Category:
Tags: html | dhtml | forms | scripts

less

Transcript and Presenter's Notes

Title: HTML Forms and Scripts


1
HTML Forms and Scripts

2
Session overview
  • What are forms?
  • Static vs dynamic
  • Client-side scripts
  • JavaScript

3
HTML Forms
  • HTML Forms were the first way for users to
    interact with the Web
  • controls (input fields)
  • form submission
  • form processing (nothing to do with HTML!)

4
HTML Forms
  • ltFORMgt
  • action
  • method
  • enctype
  • accept
  • accept-charset

5
Static vs Dynamic
  • Static
  • page appears exactly as it was encoded, nothing
    changes
  • Dynamic
  • page is compiled, or able to be changed

6
Scripts server-side vs client-side
  • Server-side
  • the first type possible on the Web
  • action occurs at the server
  • Client-side
  • generally easier to implement
  • may be prepared and implemented offline
  • action occurs on the client side (browser)

7
Examples of client-side scripts
  • JavaScript (most common)
  • VBScript (Microsoft)
  • Java applets - can be server-side or client-side

8
Embedding scripts in HTML
  • ltSCRIPTgt
  • can appear anywhere in the HTML document (but
    best in the ltHEADgt)
  • the script can be linked (like a separate style
    sheet)
  • ltscript typetext/javascript languageJavaScrip
    t srcrollovers.jsgt

9
JavaScript
  • Can be used to make Web page tricks like image
    rollovers, form validation, calculations etc
  • Developed by Netscape to be simple, cross-browser
    scripting language for Web
  • Syntax based on C - a good starting point to
    learn other programming languages
  • JavaScript is not Java

10
Example JavaScript rollover...
  • Satellite Dispatch (http//www.toysatellite.org/ne
    ws)

11
Dynamic HTML / dHTML / DHTML
  • HTML elements (or objects) that can change after
    the document has loaded in browser
  • DHTML HTMLCSS scripts (generally, JavaScript)

12
Example Dynamic HTML
  • Auslaender Micro http//www.toysatellite.org/agart
    on/MA/project/micro02/splash.htm
Write a Comment
User Comments (0)
About PowerShow.com