Tuesday, October 20, 2009

Java and Javascript (notes from for Dummies)

Javascript uses web client, interacts with HTML, browser plugins and Java applets
is object-based
is interpreted (by browser)- no need to be compiled
Javascript onload event handler triggers an action (e.g. play sound, lasunch pop-up, allows interaction with window, text field, image or embedded applet)
allows intelligence in pages, e.g. take a zip code and returns calculation of sales tax.

Examples of interactions possible with Javascript:(P16)

Load Content into multiple frames when user clicks button
Change screen images when user drags a mouse over certain are (Mouse rollover)
Display helpful information when user clicks or drags a mouse over certain page area
Inspect data that user types in and pops up helpful suggestions if they've made an invalid entry
Displays thank you message after user submits form


How much of Amazon's success is only possible due to Javascript?

Java lets you access web servers
refers to database
is compiled