Who Should Attend:
This module is ideal for individuals who would like to know more about JavaScript, one the most widely used scripting languages. Learning JavaScript will improve participants’ understanding of web-based projects, and help enhance their understanding of how to develop ASP or XML based projects.
Prerequisites:
None, but some knowledge of programming and an understanding of web concepts will be useful. The module begins with basic concepts.
Objectives:
JavaScript is an open, cross-platform object scripting language used for creating and customising applications on enterprise networks and the Internet. By using systematic examples, this practical module teaches participants to write, and to add a JavaScript script to an HTML document. It encompasses all aspects of JavaScripts, from features such as enhancing web pages with banners and outliners to using frames, windows, and style sheets. This module incorporates advanced topics such as debugging techniques with LiveConnect to merge JavaScript applications with Java applets and plug-ins, and utilising JavaScript with layers.
In addition to developing some server side scripts, participants will deepen their knowledge of how web based computing functions on the client side, and what they are able to perform with client browser support.
Contents:
JavaScript and HTML: Extending HTML; Plug-Ins, Applets, and CGI. What is JavaScript? JavaScript in a Browser; JavaScript and Java; Basic JavaScript Structure; Conventions; Printing JavaScript Output; Page Layouts; Command Blocks; Functions; Defining and Calling a Function; Placing Scripts in Documents; Executing Deferred Scripts. JavaScript Language: Data Types; Type Conversion; Literals; Statements and Expressions; Mathematical, String, Bitwise, Assignment, and Relational Operators. Control Structures: Dialog Boxes; if-else Statement; Loops; with Statement. Functions and Variable Scope: Defining and Calling Functions; Function Parameters; Returning a Value; Recursion. Creating Object Instances; Constructor Functions; Nested Objects. Arrays: Simple and Dense Arrays; Array Properties and Methods, Multidimensional Arrays.
Events in JavaScript: Events and Event Handlers; Emulating Events via Methods; Cancelling Events.
Date, Time, Mathematics, and Strings: Date Object: Creating Date Instance; Date Method; Time-related Methods; Math Object: Constants, Arithmetic, Trigonometric Methods, Number Object. Handling Strings: String Indexing, Characters, Creating Strings, String Methods, Number-to-String Conversion, Evaluating Text Expressions, String Handling.
Browser Object: Object Hierarchy; Creating Browser Objects; Topmost Objects: window, document, history, location.
Status Bar: Writing to Status Bar; Setting Default Value; Banners.
URLs and History List: URL Schemes: HTTP, FTP, Gopher, Mailto, News, File, JavaScript; Location Object and Properties; Search Utilities; location Methods. History List: The history Object; History List Length and Entry Indexing; Methods.
Document Object: The document Object; title Property; Colours, Output, and Properties; Output Methods and Streams.
Form: HTML Forms; JavaScript Form; Form Object; Text Object; Password Object; Textarea Object; Hidden Object; Button Object; Submit Object; Reset Object; Checkbox Object, Radio Object; Select Object.
Links: Anchors, and Image Maps: Defining a Link; Anchors; Image Map; Link and Area Event Handlers; Link and Area Properties.
Cookies: Maintaining State; Cookies and HTTP; Cookies and JavaScript; Cookie Functions.
Graphics, Frames, and Windows: Graphics: Defining Images in HTML; Creating Image Object Instance; Event Handlers; Frames: Creating and Targeting Frames, Nesting Frames, Event Handler. Windows: Opening a Window with JavaScript, Referencing Windows, Window Names, Remotes, Closing a Window, Scrolling, Event Handler.
Style
Sheets: Content Layout; Font Properties; Text Properties; Inheritance
of Styles; Creating Style Sheets; Format Properties.