Scripting
Modern web browsers typically provide a language for writing extensions to the browser itself, and several standard embedded languages for controlling the browser, including JavaScript (a dialect of ECMAScript) or XUL. Types of scripting languages Job control languages and shells Main article: Shell script A major class of scripting languages has grown out of the automation of job control, which relates to starting and controlling the behavior of system programs.These languages may be technically equivalent to an application-specific extension language but when an application embeds a "common" language, the user gets the advantage of being able to transfer skills from application to application.
Web browsers Client-side scripting Web browsers are applications for displaying web pages.
A scripting language is usually interpreted from source code or bytecode. By contrast, the software environment the scripts are written for is typically written in a compiled language and distributed in machine code form; the user may not have access to its source code, let alone be able to modify it.
The first interactive shells were developed in the 1960s to enable remote operation of the first time-sharing systems, and these used shell scripts, which controlled running computer programs within a computer program, the shell.
General-purpose dynamic languages See also: Dynamic programming language Some languages, such as Perl, began as scripting languages[8] but were developed into programming languages suitable for broader purposes.
(In this sense, one might think of shells as being descendants of IBM's JCL, or Job Control Language, which was used for exactly this purpose.) Many of these languages' interpreters double as command-line interpreters such as the Unix shell or the MS-DOS COMMAND.COM.
Embedding of such general purpose scripting languages instead of developing a new language for each application also had obvious benefits, relieving the application developer of the need to code a language translator from scratch and allowing the user to apply skills learned elsewhere. GUI scripting With the advent of graphical user interfaces, a specialized kind of scripting language emerged for controlling a computer. These languages could in principle be used to control any GUI application; but, in practice their use is limited because their use needs support from the application and from the operating system.
He originally called this processor COMMAND, later named EXEC. Multics included an offshoot of CTSS RUNCOM, also called RUNCOM. Languages such as Tcl and Lua were specifically designed as general purpose scripting languages that could be embedded in any application. These include JavaScript; VBScript by Microsoft, which only works in Internet Explorer; XUL by the Mozilla project, which only works in Firefox; and XSLT, a presentation language that transforms XML content into a new form. scripting language or script language is a programming language that supports the writing of scripts, programs written for a software environment that automate the execution of tasks which could alternatively be executed one by one by a human operator.
Client-side scripts are sent by the server "as-is" and are run by the client's computer. Other applications embedding ECMAScript implementations include the Adobe products Adobe Flash (ActionScript) and Adobe Acrobat (for scripting PDF files).
]Text processing languages The processing of text-based records is one of the oldest uses of scripting languages. Emacs Lisp, while a fully formed and capable dialect of Lisp, contains many special features that make it most useful for extending the editing functions of Emacs.
Scripts can be run by web browsers to change the appearance or behaviour of a web page, for example, to change the content to be specific to the current user.Early mainframe computers (in the 1950s) were non-interactive, instead using batch processing.
Multics calls these active functions. Louis Pouzin wrote an early processor for command scripts called RUNCOM for CTSS around 1964.
Client Scripting | Server Scripting |
Client side scripting is a script, (ex. Javascript, VB script), that is executed by the browser (i.e. Firefox, Internet Explorer, Safari, Opera, etc.) that resides at the user computer
Client side scripting can access files and settings that are local at the user computer.
|
Server side scripting, (ex. ASP.Net, ASP, JSP, PHP, Ruby, or others), is executed by the server (Web Server), and the page that is sent to the browser is produced by the serve-side scripting.
So when a server sends out a page, it executes server-side scripts, but does not execute client-side scripts. Once the browser receives the page, it executes the client-side scripts.
Server side scripting can connect to databases that reside on the web server or another server reachable from web server. Client side scripting cannot do that.
Server side scripting can access the file system that reside at the web server, client side cannot.
Server side scripting can access settings belong to Web server while client side cannot.
|
If you enjoyed this post and wish to be informed whenever a new post is published, then make sure you subscribe to my regular Email Updates. Subscribe Now!
0 comments:
Have any question? Feel Free To Post Below: