By the end of this lecture, students will be able to:
describe the Client-Server Model
differentiate between client-side scripting and server-side scripting
Client- Server Model
Processing User Input, DOM.
e.g @the cashier
developed by SUN
a powerful OO programming language .
involved compiling java code into executable applications.
Java programs created for use in a web page is called APPLET.
Designed by Netscape
A powerful OO scripting language
Need an interpreter (Browser dependent)
To enhance the interactivity of web pages
It is usually embedded directly into an HTML doc
Is an interpreted language – browser dependent
Pages that think .
The Client-Server Model Client Side Scripting of 15
...The Client-Server Model Server Side Scripting of 15
In the <body> section
In the <head> section
As an external file
Processing User Input
View a list of available objects http://www.w3schools.com/js/js_obj_htmldom.asp
Click eg_js_02.html to view an example of DOM and onchange() event.
eg_js_01.html example of event, onclick() .
Arithmetic Operator of 15 Operator Description Example Result + Addition z = 5 + 4; z = 9 - Subtraction z = 5 – 4; z = 1 * Multiplication z = 5 * 4; z = 20 / Division z = 5 / 4; z = 1.25 % Modulus (remainder) z = 5 % 4; z = 1 ++ Increment z = 1; y = ++z; y = 2 -- Decrement z = 1; y = --z; y = 0