Java Scripts Web design history HTML code taken

Java. Scripts

Web design history • HTML code taken in and interpreted by the user’s machine on initial load • Static in nature – Not “static/dynamic” but singular scan static

Immediate Problems • No “checking” functionality – Database writing • Many pages for multiple menus – Example (FGCU Alico Arena) • No User OS/Browser Detection

Additional HTML Limitations • No access to browser interface • No real date/time handling • Cannot create or access “Pseudo registry” files (ie: cookies) • Cannot verify field input

Overall Interactivity At this point HTML pages are basically electronic Newspapers. Display only.

Java. Scripts - Basic Definition • Created by Brendan Eich. • First implemented by Netscape Navigator 2 Beta in 1995 to make newly added support for Java applets more accessible to non-Java programmers and web designers. • Originally known as “Live. Script” called Java. Script for marketing.

Basic Info • Java. Script programs, or Scripts, are often directly embedded in HTML pages and executed by the browser. • Usually accessed as a listed “. js” file.

Basic Info Because Java. Script is an interpreted language, it requires no preliminary compilation by the host machine. Thus it runs independent of the code.

Basic Java. Script Functions • Control over the browser – Background, scrollbars, navigation, status bar • User Detection – Browser, Operation System • Client-side Calculation

Basic Java. Script Functions • Verify User input – Text fields • Handling dates and times – Clocks, Calendars, “time of day” handling • HTML generation – Java. Script menus generated by the host machine.

Limitations • Direct access to server or client side files – Exception (cookies) • Multithreading • May be disabled by browser

Common Practical Uses • Java. Script menus • Selection/Search Fields • Cookie generation and access • Form validation
- Slides: 12