JavaScript & Introduction to AJAX
Introduction to JavaScript The most popular scripting language used in Web pages. Most web browser support it. But…. The function support and object definition differ between browsers and versions. It’s not JAVA.
Introduction to JavaScript Where to write it: In the HTML … Or include it At some web object’s action
Introduction to JavaScript Hello World! Alert(“Hello world!!”); Debug friend Alert(“Debug message.”); Mark part of code you think might have problem.
Why do we need JavaScript? DHTML Dynamically update the web page. Without reload the hole page. Data validation Check user input data before sending. Do some work at client side Some web based tool even application.
The reference documents Netscape ascript/ ascript/ Resources listed by mozilla (ECMA) MSDN (JScript) ary/en-us/script56/html/b7a0a54e-dfaa-4e41-bf25- bcaa43e601fb.asp ary/en-us/script56/html/b7a0a54e-dfaa-4e41-bf25- bcaa43e601fb.asp
What’s AJAX? Asynchronous JavaScript And XML How it works? Using XHTML(HTML), CSS, for marking up and styling information. DOM? Special Object: Mozilla: XMLHttpReques IE: ActiveXObject("Microsoft.XMLHTTP") XML?