Scripting Languages
There are two types of scripting languages which include server-side scripting languages and client-side scripting languages.
Server-side scripting language
This type of scripting language runs on the server,
server side scripting language processes the users input, displays web pages,
structures web applications and interacts with the permanent storage files such
as SQL. Server script languages have more access to data and functions on the
server whereas client scripting languages have more access to data and
functions on a user’s browser.
Some examples of server-side scripting languages are PHP,ASP,Perl
<h1
id="hello"><?php echo 'Hello'; ?></h1>
Client-side scripting language
This type of scripting language runs on the user’s browser, client
side scripting language makes web pages interactive, enables dynamic web pages
to work, it interacts with the temporary and local storage on a user’s computer
e.g. cookies ,it also sends requests to the server for data and retrieves
the data.
Some examples of client-side scripting languages are JavaScript.
<script>
Document.getElementbyId(‘Good Morning’).innerHTML=
‘Good Morning’’;
</script>
Validation
Validation is the process of checking if something is correct or incorrect. Validations ensures that the user has entered the required information correctly in the right format e.g. letters and numbers. It can also be used to check that the user has inputted some sort of data in the required field this is called a presence check. Validation can take place in two different places which include the users browser and on a serverClient side validation
client side validation take place on the users browser which means that the validation process is done quicker compared to server side validation. Client side validation is executed by the users browser it can be easily bypassed because it depends on the browser meaning it can not be trusted. There can be many design problems with client side validation because users use different versions of different browser that might not all be compatible because different browser support different types of scripts. client side validation can improve the usability of websites for users who's browsers support the script.
Server side Validation
Interactivity
Scripting languages enables interactivity because it is embedded with HTML, Web interactivity gives the user feedback when they have hovered their mouse over a button or when they have clicked on button on a webpage. e.g. when a user has clicked on button it may change colour which lets the user know on which button they have clicked on. There are many types of feedback a user can get not just from buttons but also pictures.
scripting lanugages can make it easier to include things like user prompts,
navigation assistance and user choice confirmation. It can improve the
experience the user has by adding client side interaction to provide a more
interactive interface and also dynamic web pages can remember the user and their
preference which improve their browsing experience.
Dynamic web pages can be constructed using either server
side languages or client side languages. They will show varying content every
time they are viewed, because they are influenced by many factors including the
day of the week, date, and the user’s browsing history.
Jquery is free open
source software which contains a JavaScript library which simplifies
client-side scripting for HTML which makes it easier to use JavaScript on a
website. Jquery provides advance web page manipulations, decorations, functions
and animations and also functions for sending HTTP, GET and POST requests. With
Jquery you insert more features in to a web page with less code than if you
used JavaScript. Jquery works in all popular browsers. Jquery helps
to improve the performance of an application.
The jQuery library contains the following :- HTML/DOM manipulation
- CSS manipulation
- HTML event methods
- Effects and animations
- AJAX
- Utilities
Features of JavaScript
JavaScript
is a programming language that is used to make web pages interactive from Netscape. Javascript is normally already built in a
users browser which means that it doesnt need to be downloaded every time you
use a we browser. Browers which have JavaScript built in include Internet Explorer,
Firefox and Safari.JavaScript
interacts with HTML code which allows web designers to make dynamic web sites Java script can run both on a client and server side.JavaScripts enables features such as the following on a website :
·
A linked-to page to
appear in a popup window
·
Cause text or a graphic
image to change during a mouse rollover
·
Automatically
change a formatted date on a Web page
·
Validating the user's input
·
Browser
Detection
Reference
http://www.webdesign.org/web-programming/javascript/4-powerful-features-of-javascript-programming-language.17008.html
http://en.wikipedia.org/wiki/JavaScript