1 / 7

JavaScript & Introduction to AJAX

JavaScript & Introduction to AJAX. 2006.05.11 cooldavid@cdpa.nsysu.edu.tw. 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.

nibal
Download Presentation

JavaScript & Introduction to AJAX

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. JavaScript &Introduction to AJAX 2006.05.11 cooldavid@cdpa.nsysu.edu.tw

  2. 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.

  3. Introduction to JavaScript • Where to write it: • In the HTML • <script type="text/javascript" > … </script> • Or include it • <script type="text/javascript" src=“a.js"></script> • At some web object’s action • <tag onclick=‘…’ onfocus=‘…’ onchange=‘…’>

  4. Introduction to JavaScript • Hello World! • Alert(“Hello world!!”); • Debug friend • Alert(“Debug message.”); • Mark part of code you think might have problem.

  5. 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.

  6. The reference documents • Netscape • http://wp.netscape.com/eng/mozilla/3.0/handbook/javascript/ • Resources listed by mozilla (ECMA) • http://www.mozilla.org/js/language/ • MSDN (JScript) • http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/b7a0a54e-dfaa-4e41-bf25-bcaa43e601fb.asp

  7. 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?

More Related