ThePlace

Home ] Search ] Resources ] Site Map ] Contact Me ]
Dave's Information Technology Resource

Up ]

[ JavaScript Background ] JavaScript Language ]

--- JavaScript Background ---

How Client Scripting (e.g., JavaScript) Works...

bulletThe script is contained within the HTML of the web page.  It may be found in a script tag or as as DHTML code tied to a form event (or other CSS event).
bulletClient scripts are "programs" that run within the browser environment.
bulletThe programming languages are relatively powerful with data, control, and structuring syntax in addition to being able to access object-based features of the web browser.
bulletThe script is processed by a "scripting engine" that is part of the browser.
bulletThe scripting engine has access to the web document object, HTML and form objects, and many system functions (date, time, ability to access cookies)
bulletScript engines may not read and write other files (security reasons primarily) in the operating system of the client computer.
bulletImplementation of the scripting engine is operating system (to some degree) and browser (more so) dependent.  
bullet There are subtle differences in JavaScript for Netscape and JScript for Internet Explorer.

 

Client Scripting Architecture

 

Common Uses of JavaScript in Web Pages

bulletUser interface presentation  (e.g., button transitions, dynamically modifying layout, etc.), usually used to draw attention to information/content on a web page
bulletEntertainment - special effects and "eye-catchers"
bulletEducation - support quizzes and testing activities
bulletInformation presentation - slide shows, animations
bulletCalculators - browser based calculators (math, payment/interest, special purpose)
bulletData validation - check forms for completeness and or pre-processing prior to sending data to a server

JavaScript is also used a "server-based" programming environment.  Typically it is extended with objects to support server-based operations (file open, save; database access, etc.).

 

Keys to Learning JavaScript

bulletDevelop a basic understanding of the DOM (Document Object Model-different for various browsers) and DHTML (Dynamic HTML), specifically...
bulletVarious HTML and form objects
bulletThe use of the "name" property
bulletBasic use of properties for DHTML
bulletEvents and how they are triggered
bulletUnderstand the use of the script tag with other HTML.
bulletGet a handle on basic JavaScript syntax (parenthesis, brackets, etc.).  JavaScript  is similar to C and Java.
bulletUnderstand how a web applications work in order to create your own applications (in other words, understand the browser).
bulletAlso...
bulletDon't try to memorize all functions, properties, methods
bulletBuild a library of usable constructs
bulletBuild simple into complex
bulletPlan, plan, plan
bulletTest, test, test
bulletNever trust a browser you haven't tested!

Tips and Tricks

bulletDon't try to learn the entire JavaScript language at once.
bulletUse examples to learn, use examples to build (from this you will learn).
bulletNever write what you have already written (keep libraries).
bulletNever write something someone else has already written (especially when you can get your hands on it).

Web Sites for JavaScript

bulletwww.javascript.com - Netscape sponsored, references and  tutorials are available
bullet http://msdn2.microsoft.com/en-us/library/ms950396.aspx  - Microsoft sponsored, references and  tutorials are available
bullethttp://www.devguru.com/ DevGuru has an excellent reference on JavaScript.

 

 

Home ] Up ] Computer Architecture ] Programming Bootcamp ] Database Bootcamp ] Visual BasicS ] Web Basics ] Web Multimedia ] Web Programming ] Advanced Web Topics ] Developing Web Sites ] XML Technology ] Web Glossary ]

Copyright © 1999 - 2005 
ThePlace - Written and Sponsored by Dave Hillman