Scripting Languages Client Side and Server Side. Examples of client side/server side Examples of client-side side include: JavaScript Jquery (uses a JavaScript.

Slides:



Advertisements
Similar presentations
Web 2.0 Programming 1 © Tongji University, Computer Science and Technology. Web Web Programming Technology 2012.
Advertisements

Languages for Dynamic Web Documents
Server-Side vs. Client-Side Scripting Languages
Session 6 Server-side programming - ASP. An ASP page is an HTML page interspersed with server-side code. The.ASP extension instead of.HTM denotes server-side.
Introduction to Web Interface Technology (CSE2030)
Introduction to Web Based Application. Web-based application TCP/IP (HTTP) protocol Using WWW technology & software Distributed environment.
Introduction to Web Interface Technology (CSE2030)
Russell Taylor Lecturer in Computing & Business Studies.
1 Java Server Pages Can web pages be created specially for each user? What part does Java play?
1 CS428 Web Engineering Lecture 18 Introduction (PHP - I)
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)
WHAT IS PHP PHP is an HTML-embedded scripting language primarily used for dynamic Web applications.
1 More JavaScript, HTML Forms, CGI Scripts Tom Horton Alfred C. Weaver CS453 Electronic Commerce.
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.
CSC 318 WEB APPLICATION DEVELOPMENT.  Introduction to Server Scripting language  Client VS Server  Introduction to PHP  PHP Files and Syntax  Function.
INTRODUCTION TO WEB DATABASE PROGRAMMING
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.
Lecture Note 3: ASP Syntax.  ASP Syntax  ASP Syntax ASP Code is Browser-Independent. You cannot view the ASP source code by selecting "View source"
Introduction to ASP.NET. Prehistory of ASP.NET Original Internet – text based WWW – static graphical content  HTML (client-side) Need for interactive.
JavaScript Teppo Räisänen LIIKE/OAMK HTML, CSS, JavaScript HTML defines the structure CSS defines the layout JavaScript is used for scripting It.
Dynamic Web Pages (Flash, JavaScript)
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
Dr. Azeddine Chikh IS444: Modern tools for applications development.
Chapter 1: Introduction to Web
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.
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
Introduction to Internet Programming (Web Based Application)
Chapter 17 - Deploying Java Applications on the Web1 Chapter 17 Deploying Java Applications on the Web.
CNIT 133 Interactive Web Pags – JavaScript and AJAX JavaScript Environment.
Introduction to JavaScript + More on Interactive Forms.
HTML. Principle of Programming  Interface with PC 2 English Japanese Chinese Machine Code Compiler / Interpreter C++ Perl Assembler Machine Code.
Web Interfaces, Forms & Databases Databases Snyder p HTML Basics Snyder p JavaScript Snyder Chapter 18.
Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
Kingdom of Saudi Arabia Ministry of Higher Education Al-Imam Muhammad Ibn Saud Islamic University College of Computer and Information Sciences Chapter.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 14 Database Connectivity and Web Technologies.
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
JSON and A Comparison of Scripts. JSON: JavaScript Object Notation Based on a subset of the JavaScript Programming Language provides a standardized data.
Active Server Pages Server-Side Scripting and Client-Side Scripting.
Introduction to JavaScript CS101 Introduction to Computing.
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.
Client-side & Server-side Scripting ©Richard L. Goldman August 5, 2003 Requires PowerPoint 2002 or later for full functionality.
The Module Road Map Assignment 1 Road Map We will look at… Internet / World Wide Web Aspects of their operation The role of clients and servers ASPX.
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 Technologies Lecture 8 Server side web. Client Side vs. Server Side Web Client-side code executes on the end-user's computer, usually within a web.
 Previous lessons have focused on client-side scripts  Programs embedded in the page’s HTML code  Can also execute scripts on the server  Server-side.
Introduction and Principles Web Server Scripting.
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.
ASP-2-1 SERVER AND CLIENT SIDE SCRITPING Colorado Technical University IT420 Tim Peterson.
1) PHP – Personal Home Page Scripting Language 2) JavaScript.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 14 Database Connectivity and Web Technologies.
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.
JavaScript and Ajax (JavaScript Environment) Week 6 Web site:
National College of Science & Information Technology.
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.
Java Server Pages Can web pages be created specially for each user?
Web Programming Language
Web Concepts Lesson 2 ITBS2203 E-Commerce for IT.
Introduction and Principles
PHP / MySQL Introduction
Dynamic Web Pages (Flash, JavaScript)
IntroductionToPHP Static vs. Dynamic websites
Architecture of the web
Information Retrieval and Web Design
Web Application Development Using PHP
Presentation transcript:

Scripting Languages Client Side and Server Side

Examples of client side/server side Examples of client-side side include: JavaScript Jquery (uses a JavaScript library containing very easy to use, condensed functions and syntax - ) VBScript (simplified version of Visual Basic) ActionScript (used in Flash animation/web pages) Examples of server-side include: PHP (.php) ASP (.asp) JSP (.jsp), ASP.NET (.NET) (.aspx), COLDFUSION (.cfm) RUBY (.rb) RUBY ON RAILS (.rbw) PERL (.cgi,.pl,.ipl) PYTHON (.py) Scripting languages require a web server to run, e.g. Apache and IIS. Check the server is capable of running the server-side scripting language

Advantages/disadvantages of Client Side Scripts Client side ADVANTAGES Takes load off server (processing done at client end – quicker – uses less bandwidth) Can be used for non essential functions (e.g. navigation, pop ups, rollovers, form validation, etc.) Easy to use – only text editor and a browser required. No testing software needed Makes web pages more interactive DISADVANTAGES Malicious executable code downloaded from a remote server to a web browser's machine, could be installed and run allowing access to data, to install a virus, etc. Different layout engines (browsers/platforms) may render JavaScript differently resulting in inconsistency in terms of functionality and interface. The user can turn settings for JavaScript off in their browser

Advantages/disadvantages of Server Side Scripts Client side ADVANTAGES Can be used for security essential functions (e.g. login screens, form validation) Relatively easy to use – require a server to run and editor to write scripts Script is parsed or interpreted at the server end, and sends the web page to the web browser as HTML (user cannot see the server script) Makes web pages more interactive Can access databases and create dynamic web pages DISADVANTAGES Can put more load on server (requires bandwidth, may be sharing server with other websites, may cause delay in web page being sent to browser) Different layout engines (browsers/platforms) may render script differently resulting in inconsistency in terms of functionality and interface.

Implementing Client-side Scripts Client-side JavaScript code can be embedded within HTML documents in a number of ways: Between a pair of script tags From an external file specified by the src attribute of a script tag, e.g. In an event handler, specified as the value of an HTML attribute such as onclick, onsubmit or onmouseover, e.g. In an URL that uses the special javascript:// protocol

JavaScript Example - Date Today's Date function date( ) { var d = new Date( ); // Create a date object storing today's date and time document.write(d.toLocaleString( )); // Write the value of the date object to the document } The date and time are date( );

Links