Chapter-1 Web
Chapter-1 Web
By Meresa H.(MSc.)
1
Topics:
2
1. Introduction to Scripting Language
■ What is Scripting Language ?
– Scripting languages are a type of programming language designed to
automate tasks and integrate complex systems.
3
1. Introduction to Scripting Language
■ Features of Scripting Language
1. Cross Platform Dependency:
■ The scripting languages are independent of the Operating
system they are executing.
■ These codes work on all types of OS without any major
modifications.
2. Fast Development:
■ The scripting languages are easy to code, test, and debug and
make any changes faster than other programming languages.
■ Therefore the software development process takes place very
fast.
3. Easy Integration:
■ The scripting language can be easily integrated with other
programming languages like Java, and C++.
4. Versatile:
■ Scripting languages are very versatile they can be used for
different purposes.
■ It can be used for web development, scientific study,
administration, and analysis.
5. Easy to learn:
■ One of the major benefits of scripting language is that it is
easy to learn when compared to programming languages.
■ As it is open source it has an online community to support.
4
1. Introduction to Scripting Language
■ Usage of Scripting Language
– Different scripting languages have different usages, and they can be used in different
industries. Some of them include:
• Automation: They are widely used to automate tasks like data manipulation,
maintenance, maintenance, and managing updates and backups.
• Dynamic web development: Using JavaScript and its interactive framework greatly
enhances the user experience of the website. They are used to develop web applications
on the client and server sides.
• System administration and configuration: Scripting languages are widely used to
configure and manage networks using scripting languages like PowerShell and Bash.
• Data Analytics: Scripting languages like R programming and Python are widely used as
tools for the analysis of the data and also to visualize it.
• Testing: They are used to check the software product developed and ensure the quality
is maintained. Frameworks like Selenium and PyTest are used for testing software
components.
• Cross-platform development: They are used to develop cross-platform applications,
which include both web and mobile applications, with JavaScript frameworks like
React.js and Node.js.
• Embedded System: Scripts can be written to embed systems, IoT devices,
microprocessors, and microcontrollers into the hardware to collect and implement
different functionalities.
5
1. Introduction to Scripting Language
6
2. Client-Side Scripting Language
■ Client side scripting is used when the users browser already has all the
code and the page is altered on the basis of the users input.
■ The Web Browser executes the client side scripting that resides at the
user's computer.
■ It does not involve server processing
■ Complete application is downloaded to the client browser
■ Client browser executes it locally
■ Are normally used to add functionality to web pages
■ e.g. different menu styles, graphic displays or advertisements
7
2. Client-Side Scripting Language (..continued)
■ The browser receives the page sent by the scripting language and
executes the client-side scripts.
■ Client side scripting cannot be used to connect to the databases on the
web server.
■ Client side scripting can't access the file system that resides at the web
server.
■ The files and settings that are local at the user's computer can be
accessed using Client side scripting.
■ Response from a client-side script is faster as compared to a server- side
script because the scripts are processed on the local computer.
■ Examples of Client side scripting languages: Javascript, VB script, etc.
8
2. Client-Side Scripting Language (..continued)
■ What can JavaScript do?
– Control document appearance and content
– Control the browser
– Interact with the user
– Read and Write Client State with Cookies
– - my.yahoo.com
– Interact with Applets
– - Read/write files
■ List of Client-Side Scripting Languages
– JavaScript
– ActionScript
– Dart
– VBScript
– Typescript
9
3. Server-Side Scripting Language
■ A server-side scripting language is used to create scripts that run on a web
server, rather than in the user’s browser.
■ "Server-side" just means that the control of the script is handled by the Web
Crossing server rather than running a script on each user's personal
computer.
■ Web Crossing runs the scripts and sends standard HTML (web pages) to
each user's browser.
■ All the end user's browser has to worry about is displaying the results and
does not have to worry about the underlying script used to generate the web
pages.
10
3. Server-Side Scripting Language (…Continued)
11
3. Server-Side Scripting Language (…Continued)
12
3. Server-Side Scripting Language (…Continued)
Advantage Disadvantage
■ Interpreted, low processing overhead
■ Interpreter is integrated into web server, so it is fast ■ Debugging tools can be scarce
■ Secure, code runs on server ■ Can be more difficult to develop
■ Content based on live data ■ Requires a running server to test
■ Can use basic devices, eg phone, browsers as ■ Has no direct control over the
processing is server side user interface
■ does not require the user to download plug-in like
Java or Flash (as in client-side scripting).
■ Load times are generally faster than client-side
scripting.
■ Your scripts are hidden from view.
13
3. Server-Side Scripting Language (…Continued)
■ What can server scripts do?
– Provide security since your server code cannot be viewed from a browser.
14
4. Common Scripting Language with their Extensions?
– ASP (*.asp)
– ASP.NET (*.aspx)
– SMX (*.smx)
– Lasso (*.lasso)
– WebDNA (*.dna,*.tpl)
Languages JavaScript, HTML, CSS PHP, Python, Ruby, Java, C#, Node.js
Interaction Directly interacts with the user Interacts with the server and databases
Visibility Code is visible to the user Code is hidden from the user
Performance Depends on the client's device and Depends on the server's performance
browser
Security Less secure, as code is exposed More secure, as code is executed on the server
Use Cases Form validation, animations, user Database operations, user authentication, dynamic
interface content generation
Examples JavaScript for form validation, CSS for PHP for database access, Python for server logic
styling
16
17