
















































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
If you are looking for Web Programming course, you are at right place. This lecture key words are: Javascript, Javascript Background, Purpose of Javascript, Javascript Syntax, History Lesson, Dynamic Html, Client Side Data Entry Validation, Client Side Cgi, Process and Manage Cookies, Creating a First Script
Typology: Slides
1 / 56
This page cannot be seen from the preview
Don't miss anything!

















































JavaScript background The purpose of JavaScript JavaScript syntax
A starter list Adds sizzle to pages (Animation) Dynamic HTML (DHTML) Client side data entry validation Client side CGI Reduce the load on overburdened servers Process and manage cookies Some servers are beginning to support JavaScript AJAX to load parts of Web pages
It‟s a programming language that „closely‟ resembles Java Implementations European Computer Manufacturers Association created ECMAScript to standardize different scripting versions See ECMA- I‟ll try to conform There are others It‟s a “C ish” language
****
**
**
script tag
Script tag
Script language
Scripts appearing in a **** tag but outside a procedure execute first in the order they appear More about procedures later Code in a procedure is not executed unless explicitly called Scripts appearing in a **** tag execute as they are encountered The placement has an effect on page rendering
Include the **** directive to display a message when JavaScript is disabled
**
JavaScript is not enabled.
**
Semicolons need not terminate statements although they do no harm Unless two statements are placed on the same line Variables var data type is generic JavaScript is not strongly typed like Java Type conversion happens on the fly Other types number , boolean , string , function , object
See JavaScriptExample1.htm
Pay particular attention to the order in which the script code executes
**
**
JavaScript is “loosely typed‟ data types change dynamically as the program runs Declare variables with the var statement
Like VB, there are local and global variables Local variables are declared inside of a procedure Global variables are declared in a
They are the same thing as a VB function or any other programming language function Functions execute When called by another procedure When implemented as an event handler Event handlers are discussed later