Server-Side vs. Client-Side Scripting Languages

Slides:



Advertisements
Similar presentations
Essentials for Design JavaScript Level One Michael Brooks
Advertisements

HTTP Request/Response Process 1.Enter URL ( in your browser’s address bar. 2.Your browser uses DNS to look up IP address of server.com.
Web Server Programming
Objective Understand web-based digital media production methods, software, and hardware. Course Weight : 10%
Languages for Dynamic Web Documents
DT211/3 Internet Application Development Active Server Pages & IIS Web server.
Copyright 2004 Monash University IMS5401 Web-based Systems Development Topic 2: Elements of the Web (g) Interactivity.
1 Chapter 12 Working With Access 2000 on the Internet.
Chapter Concepts Review Markup Languages
ASP Tutorial. What is ASP? ASP (Active Server Pages) is a Microsoft technology that enables you to make dynamic and interactive web pages. –ASP usually.
B.Sc. Multimedia ComputingMedia Technologies Database Technologies.
Introduction to Web Application Architectures Web Application Architectures 18 th March 2005 Bogdan L. Vrusias
Introduction to Web Interface Technology (CSE2030)
2440: 141 Web Site Administration Web Server-Side Programming Professor: Enoch E. Damson.
ECA 228 Internet/Intranet Design I Intro to the Web.
Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course materials.
Web Programming Language Dr. Ken Cosh Week 1 (Introduction)
8/17/2015CS346 PHP1 Module 1 Introduction to PHP.
Web Design Basic Concepts.
Form Handling, Validation and Functions. Form Handling Forms are a graphical user interfaces (GUIs) that enables the interaction between users and servers.
DAT602 Database Application Development Lecture 15 Java Server Pages Part 1.
Server Side Scripting Norman White. Where do we do processing? Client side – Javascript (embed code in html) – Java applets (send java program to run.
INTRODUCTION TO WEB DATABASE PROGRAMMING
What is Web Design?  Web design is the creation of a Web page using hypertext or hypermedia to be viewed on the World Wide Web.
Web Design Scripting and the Web. Books on Scripting.
Server- Side technologies Client-side vs. Server-side scripts PHP basic ASP.NET basic ColdFusion.
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
Introduction to ASP.NET. Prehistory of ASP.NET Original Internet – text based WWW – static graphical content  HTML (client-side) Need for interactive.
1 Web Server Concepts Dr. Awad Khalil Computer Science Department AUC.
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
Dr. Azeddine Chikh IS444: Modern tools for applications development.
Basics of Web Databases With the advent of Web database technology, Web pages are no longer static, but dynamic with connection to a back-end database.
INTERNET APPLICATION DEVELOPMENT For More visit:
 2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 21 - Web Servers (IIS, PWS and Apache) Outline 21.1 Introduction 21.2 HTTP Request Types 21.3.
Client Scripting1 Internet Systems Design. Client Scripting2 n “A scripting language is a programming language that is used to manipulate, customize,
ASP Introduction Y.-H. Chen International College Ming-Chuan University Fall, 2004.
Universiti Utara Malaysia Chapter 3 Introduction to ASP.NET 3.5.
Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
Active Server Pages  In this chapter, you will learn:  How browsers and servers interacted on the Internet when the Internet first became popular 
Lecture Note 1: Getting Started With ASP.  Introduction to ASP  Introduction to ASP An ASP file can contain text, HTML tags and scripts. Scripts in.
1Computer Sciences Department Princess Nourah bint Abdulrahman University.
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
ASP (Active Server Pages) by Bülent & Resul. Presentation Outline Introduction What is an ASP file? How does ASP work? What can ASP do? Differences Between.
ASP.NET in Definition: 1.ASP.NET is a web application framework developed and marketed by Microsoft to allow programmers to build dynamic web sites,
ASP. What is ASP? ASP stands for Active Server Pages ASP is a Microsoft Technology ASP is a program that runs inside IIS IIS stands for Internet Information.
By Tharith Sriv. To write a web page you use: HHTML (HyperText Markup Language), AASP (Active Server Page), PPHP (HyperText Preprocessor), JJavaScript,
WHAT IS SERVER SIDE SCRIPTING? Server-side scripting is a web server technology in which a user's request is verified by running a script directly on the.
Web Design and Development. World Wide Web  World Wide Web (WWW or W3), collection of globally distributed text and multimedia documents and files 
Scripting Languages Client Side and Server Side. Examples of client side/server side Examples of client-side side include: JavaScript Jquery (uses a JavaScript.
Introduction and Principles Web Server Scripting.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
NASRULLAH KHAN.  Lecturer : Nasrullah   Website :
ASP. ASP is a powerful tool for making dynamic and interactive Web pages An ASP file can contain text, HTML tags and scripts. Scripts in an ASP file are.
 Web pages originally static  Page is delivered exactly as stored on server  Same information displayed for all users, from all contexts  Dynamic.
 Before you continue you should have a basic understanding of the following:  HTML  CSS  JavaScript.
Understanding Web-Based Digital Media Production Methods, Software, and Hardware Objective
1 CSC160 Chapter 1: Introduction to JavaScript Chapter 2: Placing JavaScript in an HTML File.
Web Page Designing With Dreamweaver MX\Session 1\1 of 9 Session 1 Introduction to PHP Hypertext Preprocessor - PHP.
1 Chapter 1 INTRODUCTION TO WEB. 2 Objectives In this chapter, you will: Become familiar with the architecture of the World Wide Web Learn about communication.
Web Programming Language
Scripting - Client-side vs. Server-side Scripting
Introduction and Principles
Developing Web-Based Applications
PHP / MySQL Introduction
Client side & Server side scripting
Objective Understand web-based digital media production methods, software, and hardware. Course Weight : 10%
IntroductionToPHP Static vs. Dynamic websites
Web Application Development Using PHP
Presentation transcript:

Server-Side vs. Client-Side Scripting Languages What are they and what are their differences? By Lories Slockbower

What is server-side scripting? Server-side scripting is a method of programming for the web that runs software on the server rather than the browser or installed plugins to create dynamic web pages. Languages used for these tasks are normal programming languages which include Perl, PHP, JSP, Ruby, ColdFusion, and Python

What can server scripts do? Customize a web page and dynamically change its contents Respond to queries from users or from HTML forms Access database and send the information back to the browser

Advantages of server-side scripting User does not need to download plugins like Java or Flash User can create one template for the entire website The site can use a content management system which makes editing simpler. Generally quicker to load than client-side scripting User is able to include external files to save coding Scripts are hidden from view so it’s more secure. Users only see the HTML output.

Disadvantages of server-side scripting The scripts can be used by attackers to access the server. They do this by changing the URL to something that takes advantage of a hole in security. System administrators must keep all server- side scripting updated and use an application firewall to prevent this. Scripting software must be installed on the content management system tools in order to store the dynamic data.

Common server-side scripting languages ASP/ASP.net –Active Server Pages developed by Microsoft to make advanced web pages. Unix servers use Chillisoft ASP. Allows user to get any .net-enabled language to program a site. JSP/Servlets – Java Server Pages which include JSP tags mixed in with html. Most popular language for higher level applications. ColdFusion – Runs on top of a JSP/servlet engine. Can cost $1,299 a server. Users can download a free “developer” edition but that is limited to one IP address.

Server-side scripting example ASP source: Output result <html> <body> <% response.write("Hello World!")%> </body> </html> Hello world!

More server-side scripting languages Perl – Practical Extraction and Reporting Language, first released in 1987, is a powerful language with advanced features. Available for free from various scripting directories. Supported by operating systems UNIX, MAC OS 7-9 and PHP or PHP Hypertext Preprocessor is an open source language. Considered by “standard’ choice for server side scripting in Unix/Linux platforms. Python- Created in 1989, it is not supported by most web hosting companies. Although easy to learn, there is no standard web application framework for it.

What is client-side scripting language? Client-side scripts are placed within an HTML document in the user’s web browser rather than the web server to allow greater interactivity in a document. For example – client-side scripting could check the user’s form for errors before submitting it Enables web pages to change content according to user input and other variables, including the time of day. Can also be stored in a separate file that is referenced to the documents that use it.

How does it work? Usually, JavaScript code starts with the tag <script language="JavaScript"> and ends with the tag </script>. Files are first sent to the user’s computer by the web server which executes the script and displays the document. The client-side script may also include browser directions based on certain user functions such as clicking buttons. Frequently, you can see the the source card by viewing the file that contains the script.

Example of client-side scripting Suppose a person completes a form but omits information. When they slick the submit button, an alert box appears telling them about the mistake. This is JavaScript and is an example of Client Side Scripting because all the activity takes place inside the browser.>

Advantages of client-side scripting Allows for more interactivity Can perform actions quickly without going to the server May be easier to use for those whose browsers don’t support scripts Are available from many free resources such as Hotscripts.com and Javascript.com

Disadvantages of client-side scripts If the user’s browser is out of date, the website will not display properly. More quality assurance testing is required because different browsers support scripts differently Not secure because anyone can look at the code in the page source Some browsers will disable the active content and tell the user they may be harmful.

Client-side scripting language JavaScript – Not to be confused with Java, JavaScript client-side is a programming language is implemented as part of the web browser to enhance dynamic websites VBScript is a programming language that can manipulate the document objects and the browser

So how to know which to use? Know your audience – Be sure to know what scripts work best with the browsers your audience will use. JavaScript is most compatible with Microsoft Internet Explorer and Netscape. VBScript usually just works on Internet Explorer. Test scripts on the browsers for both PC and MAC users as browsers on the MACs don’t support scripts as well as the PC versions do. Scripts should be tested on at least the previous two versions of your audience’s browser since people are slow to update their browsers so the latest scripts may not work.

References http://www.w3schools.com/web/web_scripting.asp http://www.serverschool.com http://en.wikipedia.org/wiki/JavaScript http://opensourcetutorials.com/Design-And- Layout/Usability/web-widgets http://htmlhelp.com/reference/html40/special/script.html http://astahost.com/info.php/serverside-clientside_t16081.html http://exforsys.com/tutorials/client-server/server-side- scripting.html http://www.ehow.co.uk/how_8426161_remove-client-side- scripting.html http://www.webdesignerdepot.com/2009/11/coding-a-web- design-for-speed-and-quality/ http://www.google.com/imgres?imgurl=http://nas.uhcl.edu/y ang/research/webdevelopmentcourse/clientSideScripting.gif& http://rentacomputertoday.com/tag/computer-hackers/ http://www.w3schools.com/asp/showasp.asp?filename=demo _text http://whatismyipaddress.ricmedia.com/help/JavaScript/about / References