Page 212 - PYTHON-12
P. 212

Some Popular Client-Side Scripting Languages are:


                   1.  JavaScript
                   2.  VBScript

                   3.  PHP
                   1.  JavaScript

                      JavaScript was the first web scripting language to be introduced and it is still by far the
                       most popular. The original name of JavaScript was “LiveScript” and it was first introduced
                       in Netscape Navigator 2.0 in 1995 and was renamed JavaScript so as to correlate with Java
                       Language. JavaScript is primarily used for client-side processing. It is a scripting language
                       and not a programming language. It can easily be embedded in HTML tag and executes
                       immediately as the page is displayed. JavaScript, along with languages like XML, can call in
                       only the required data from the server without receiving a full web page.
                       Example of Java Script is as follows:


                       <HTML>
                      <HEAD>

                      <TITLE>My first java script</TITLE>
                      </HEAD>

                      <BODY>
                      <SCRIPT LANGUAGE="JAVASCRIPT">

                      document.write("Welcome")
                      </SCRIPT>

                      </BODY>

                      </HTML>
                       JavaScript allows the user to perform several functions such as:

                          (i)  Add scrolling or changing messages to the browser’s status line.
                         (ii)  Update the contents of a form by using validation checks and make calculations.
                              (For example, on entering the marks of 5 subjects of a student, it will calculate total
                              marks and percentage.)
                        (iii)  Display messages to the user, either in a new web page, which is a sub-part of the
                              main web page, or in alert boxes.
           Computer Science with Python–XII  8.58      2.   VBScript is a  light weight programming  language  developed by Microsoft Corporation.
                        (iv)  Create and animate images that change when the user hovers the mouse over them.

                         (v)  Detect the browser in use and display different contents for different browsers.

                        (vi)  Detect installed plug-ins and notify the user if a plug-in is required.

                       VBScript (Visual Basic Script)



                       VBScript is the default scripting language for ASP (Active Server Pages). VBScript is a server-
                       side scripting language. However, it may also be used for client-side scripting (although it is
                       currently only supported by Internet Explorer).
   207   208   209   210   211   212   213   214   215   216   217