Programming | JavaScript, Ajax » Zhiwei Wang - JavaScript

Datasheet

Year, pagecount:2012, 2 page(s)

Language:English

Downloads:19

Uploaded:November 28, 2012

Size:10 KB

Institution:
-

Comments:

Attachment:-

Download in PDF:Please log in!



Comments

No comments yet. You can be the first!


Content extract

Zhiwei(Nikky)Wang Apr.2,2012 ITP104 JavaScript JavaScript is a prototype-based and object oriented scripting language that works for all major browsers such as Firefox, Internet, Chrome, Safari It is designed for the use within a web page or on a web server. It is a programming language that is used to make web pages interactive by creating special effects within a web page that are not achievable with simple html. It allows developers to create rich and interactive web interfaces and establish asynchronous communication with servers for constantly up-to-date data without a page refresh. Also, it supplements server-side programming languages and platforms. In other words we can say that JavaScript is a simple programming language that can be written directly into HTML documents to allow for increased interactivity with the user. JavaScript is a client-side scripting language which can be used to create special effects within the web page, such as link effects, mouse overs, image roll

overs, navigational systems and much more. JavaScript is not a stand-alone language, but rather it is a scripting add-on to HTML. It is added to HTML commands by use of the <SCRIPT> tag. For example: <HTML> <HEAD> <TITLE>hello</TITLE> <SCRIPT> (JavaScript code) </SCRIPT> </HEAD> If developers wants to place JavaScript code within a file on the server, then he/she has to create a JavaScript file on a plain text editor and save its with “.js” extension. Now if there is a need to call JavaScript code within HTML code, the developer will have to link the file with .js extension within HTML code This can be done like this: <SCRIPT language=”JavaScript” src=”http://www.yoursitecom/yourfilejs”> JavaScript can also be used in applications outside Web pages, for example, in PDF documents, site-specific browsers, and desktop widgets. In modern web design, JavaScript is an essential component. The emergence of JavaScript has

provided the necessary tools to create beautiful websites, making the designers free from all worries concerned to the accessibility issues. Aside from its functionality, JavaScript can enhance user experience by creating transitional effects such as fading and sliding animation. Thanks to the open source JavaScript frameworks, there is no need to write custom JavaScript from scratch anymore. Here are 47 JavaScript plug-ins that people can use to enhance their user experience and functionality of their own website. It should be noted that Java and Java script are not the same thing. Java is an OOP programming language while Java Script is an OOP scripting language. Java creates applications that run in a virtual machine or browser while JavaScript code is run on a browser only. Java code needs to be compiled while JavaScript codes are all in text They require different plug-ins