Unit 20 – Client Side
Customisation of Web Pages
P3 – Explain the fundamentals of a scripting language
Introduction
Within this written report I will be describing and discussing
all the fundamentals of JavaScript and jQuery, I will explain in depth how each
scripting language is used. I will also explain all the differences between
each scripting language and how they are used for different purposes.
JavaScript
JavaScript is known as a scripting language, it contains many of the features of a
programming language. There are a variety of different programming features
within JavaScript such as Loops, If
Statements, Functions and Procedures and you cannot really use JavaScript
properly without being able to use functions and sub procedures. JavaScript is
a client side scripting language;
JavaScript is widely used on Web pages for different user experiences and
interactivity on the website as well as for displaying messages, drop-down
menus and other user interface elements. Many websites gather information from
users in online forms, and JavaScript can help validate entries.
JavaScript simply works by making a request to the server
and went on to Amazon and typed in the search bar Shoes or Books. JavaScript is
not executed, data is simply sent to the server and the language on the server,
PHP for example will interrogate the database and make the page up to send back
to you.
The performance of JavaScript as a scripting language allows
the tasks on the user computers to be performed, this makes the performance of
the web much more immediate for the users as it does not have to perform
validation tasks for each field for an example in a form, otherwise the server
would have to check all the requests made by the users which can decrease the
performance of the webserver. Another benefit of the JavaScript is that it
allows the website to be more interactive and dynamic such as adding shopping
baskets unlike other programming language that runs on the server.
When comparing JavaScript to Java has control structures compared
to Java but it cannot complete powerful actions and Java code needs to be
compiled while JavaScript code
are all in text.JQuery
JQuery is an open source JavaScript library, which means
that it is a free collection of pre-coded
routines and actions that JavaScript can use. JQuery is not a language, but
instead is a well written JavaScript code; it is a type of framework which is
built using JavaScript. JQuery is a type of coding which almost simplifies
basic tasks that you would want to happen in a web browser. It is very useful
simply because of simple functions and features such as making a pop-up box
appear in a website when a button is pressed could be written in 2-3 lines of
JQuery coding whilst in JavaScript it would take a whole page of coding for
this function to be completed. This is because JQuery is its own library where
it stores all the different type of information related to JQuery so that you
do not need to define each and every single aspect.
JQuery helps to implement user interface related to
functionality without having to write a lot of lines of coding, in other words
it is very simple, easy and fast to complete functions and features using the
JQuery coding. There are a variety of different features and functions that
JQuery can complete such as being able to navigate HTML documents and also
allows the user to be able to modify text, process form data, move elements on
a page, and perform animations. JQuery is a type of code that is used by web
developers to increase the interactivity of websites, handle events and to
mainly increase the ease of use for both the user and the designer. It is also
very useful for simplifying the client side scripting languages used in HTML.
https://en.wikipedia.org/wiki/JavaScript
http://stackoverflow.com/questions/162159/javascript-client-side-vs-server-side-validation http://www.answers.com/Q/What_is_the_difference_between_scripting_language_and_programming_language
http://ecommerce.hostip.info/pages/1058/Web-Scripting-Language.html http://www.w3schools.com/js/js_intro.asp
https://en.wikipedia.org/wiki/JQuery
http://stackoverflow.com/questions/162159/javascript-client-side-vs-server-side-validation http://www.answers.com/Q/What_is_the_difference_between_scripting_language_and_programming_language
http://ecommerce.hostip.info/pages/1058/Web-Scripting-Language.html http://www.w3schools.com/js/js_intro.asp
https://en.wikipedia.org/wiki/JQuery
No comments:
Post a Comment