AJAX - Client Side: JavaScript OverviewTag: AJAX, client side, javascript Category: PHP Applicationpost: 03 Mar 2008 read: 936 AJAX Client Side Step By Step Tutorial - part 2: JavaScript is heart of AJAX. If you still don't know anything (I know absolutely, it is not you!), we will talk a little JavaScript over here. We will talk completely about javascript at others tutorial series (next time). JavaScript program designed to run in a browser has to be attached to a document. Most at HTML or XHTML document. But, future, we can attach at XML, SVG, etc. To include JavaScript on an html page, we have to use <script> tag. Because script is not only JavaScript, tell to browser by adding a type attribut with a value of text/javascript.Look line 8-10 below:
Other choice, we can put JavaScript program to separate file. It is preferable because have several advantages: Look example below:
JavaScript file (named "example.js") will be downloaded by browser. |
| | Give Your Opinion | Recommend |
|


