Jun 1, 2011

JAVASCRIPT


History of JavaScript JavaScript was first introduced by Netscape in 1995. In the beginning, is now called the JavaScript language was formerly named "LiveScript" "that serves as a simple language for the browser Netscape Navigator 2, which is very popular at the time. Then, in line with being jealous of cooperation between Netscape and Sun (the developer programming language "Java") at the time, then Netscape gave the name "JavaScript" to the language on 4 December 1995.

At the same time, Microsoft's own attempt to adapt this technology, which they called "JScript" in their own browser is Internet Explorer 3. JavaScript itself is a modification of the programming language C + + with a pattern of writing that is simpler than C + + programming language.
javascript
Understanding JavaScript JavaScript is a prototype-based programming language that runs client side. If we are talking in the context of the web, quite simply, we can understand the JavaScript as a programming language that run specifically for the browser or web page web pages to become more alive. When viewed from the tribe he says consists of two syllables, namely Java and script. Java is object-oriented programming language, while the script is a series of program instructions.

    
Functionally, JavaScript is used to provide access to objects embedded scripts (embedded). A simple example of using JavaScript is to open a pop up page, the function validation on the form before data is sent to the server, change the cursor image as it passes through certain objects, and others.
What to Look For in Writing JavaScript That must be considered in the management of the JavaScript programming, including JavaScript is a "case sensitive", which means JavaScript distinguish uppercase and lowercase letters. If you never learn a programming language such as Turbo C or C + +, the same as the programming language, where the letter T is not the same with the letter t.
In the JavaScript programming language, too, as an example of the command function should not be written Var var and also should not be written in VAR (capital letters), the truth is var (all lowercase). Other commands are new Date new date must not be written (all small letters), etc..
Excess JavaScript JavaScript is working on the browser side. the point is this: to display the web page, users write the web address in the address bar url. after that, the browser's "taken" html file (with file jJvaScript attached to it if there is one) to the server which is located at the URL typed by the user. Finished files retrieved, the file is displayed in a browser. Well, after the JavaScript file located in your browser, then the JavaScript script is working.
Effect of Javascript that work on this browser side, Javascript can respond to user commands quickly, and make web pages more responsive. JavaScript to do what can not be done by HTML, PHP, and CSS: handle things - things that require quick response to actions of the user.
Example: validation function on the form. when you fill in a form that is validated using JavaScript, you type the data and then typing submit, before the data is sent to the server, the data will be "checked" prior to the browser using JavaScript functions that exist on web pages. so, if indeed the data you enter is invalid, rather than waste - waste of time by sending data to a new server on the validation on the server and then the server sends back the response regarding the lack validan input your data, better data validation check form made locally in the browser using JavaScript functions.
Faster and More Efficient Implementation is currently the most popular of JavaScript programming is AJAX techniques. (Asynchronous JavaScript and XMLHTTP). This technique is often used by web based applications like Gmail, Google Reader, and others. The technique makes the exchange of data between servers and browsers happening behind the scenes so that the interaction between users and web applications more responsive. Separate post to discuss this will be prepared.

No comments:

Post a Comment