 Web pages originally static  Page is delivered exactly as stored on server  Same information displayed for all users, from all contexts  Dynamic.

Slides:



Advertisements
Similar presentations
Lecture 11 Server Side Interaction
Advertisements

JavaScript FaaDoOEngineers.com FaaDoOEngineers.com.
DT228/3 Web Development WWW and Client server model.
Languages for Dynamic Web Documents
Copyright 2004 Monash University IMS5401 Web-based Systems Development Topic 2: Elements of the Web (g) Interactivity.
Server-Side vs. Client-Side Scripting Languages
B.Sc. Multimedia ComputingMedia Technologies Database Technologies.
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic Server Side Web Technologies: Part 1.
Introduction to Web Application Architectures Web Application Architectures 18 th March 2005 Bogdan L. Vrusias
DT211/3 Internet Development Application Internet Development Application.
WHAT IS AJAX? Zack Sheppard [zts2101] WHIM April 19, 2011.
Introduction to Web Interface Technology (CSE2030)
Introduction to Web Based Application. Web-based application TCP/IP (HTTP) protocol Using WWW technology & software Distributed environment.
Active Server Pages Chapter 1. Introduction Understand how browsers and servers interacted when the Web was young Understand what early Internet and intranet.
Dynamic Web Pages Bert Wachsmuth. Review  Internet, IP addresses, ports, client-server, http, smtp  HTML, XHTML, XML  Style Sheets, external, internal,
Introduction to Web Interface Technology (CSE2030)
Chapter 11 ASP.NET JavaScript, Third Edition. 2 Objectives Learn about client/server architecture Study server-side scripting Create ASP.NET applications.
2440: 141 Web Site Administration Web Server-Side Programming Professor: Enoch E. Damson.
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)
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.
1 Web Developer & Design Foundations with XHTML Chapter 6 Key Concepts.
INTRODUCTION TO WEB DATABASE PROGRAMMING
Web Design Scripting and the Web. Books on Scripting.
4.1 JavaScript Introduction
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.
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
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.
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 16 The World Wide Web Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Describe several.
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.
AJAX Making Dynamic Web pages more Dynamic Jim Hendricks April 25th, 2006.
Chapter 34 Java Technology for Active Web Documents methods used to provide continuous Web updates to browser – Server push – Active documents.
Web Applications BIS4430 – unit 8. Learning Objectives Explain the uses of web application frameworks Relate the client-side, server-side architecture.
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 
_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications1.
1 © Netskills Quality Internet Training, University of Newcastle HTML Forms © Netskills, Quality Internet Training, University of Newcastle Netskills is.
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)
Web Programming Brian Toone 8/27/2014. Outline for today 1.Understanding the architecture of the web 2.Overview of programming languages – Client-side.
Introduction to JavaScript CS101 Introduction to Computing.
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.
Client-side & Server-side Scripting ©Richard L. Goldman August 5, 2003 Requires PowerPoint 2002 or later for full functionality.
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,
David Lawrence 7/8/091Intro. to PHP -- David Lawrence.
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.
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.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 14 Database Connectivity and Web Technologies.
Web Programming Overview. Introduction HTML is limited - it cannot manipulate data How Web pages are extended (include): –Java: an object-oriented programming.
Web Security (cont.) 1. Referral issues r HTTP referer (originally referrer) – HTTP header that designates calling resource  Page on which a link is.
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.
Introduction and Principles
AJAX.
Database Driven Websites
Architecture of the web
Client-Server Model: Requesting a Web Page
Presentation transcript:

 Web pages originally static  Page is delivered exactly as stored on server  Same information displayed for all users, from all contexts  Dynamic pages allow page content to change base on user actions, contexts, or other conditions  Page layout and content created separately  Content is often retrieved from an external source (e.g., database)  Content is placed within the layout only when needed or requested 2Client-Side Scripting

 Two classes of dynamic content  Distinction lies in where the code is executed  Client-side  Code is executed on the computer running the client (i.e., web browser)  Server-side  Code is executed by the server based on a client request  Result provided to the client  Can be static or provide for client-side content  Most modern web sites make use of both client- side and server-side scripting  Advantages, disadvantage, and risks associated with both 3Client-Side Scripting

 Client-side  JavaScript  VBScript  ActionScript (Adobe Flash)  Asynchronous JavaScript and XML (AJAX)  Server-side  Perl Common Gateway Interface (CGI)  JavaScript  PHP  Active Server Pages (ASP)  ASP.NET  JavaServer Pages (JSP)  ColdFusion 4Client-Side Scripting

 Computational resources  Which system does the work?  Data access  Which system has access to the required data?  Security  Which system carries the risk?  Which system can an attacker target?  What attack vectors are available? 5Client-Side Scripting

 Used to provide enhanced users interfaces and dynamic web sites  Interpreted language  Scripts are executed without compiling  Relies on a run-time environment to interact with “the outside world”  Interprets JavaScript code and generates machine code executed by the CPU  Enables browser to handle Content-Type text/javascript 6Client-Side Scripting

 JavaScript can be attached to a web page  In the header ( … )  In the body ( … )  As an event handler/listener  Code executed when an action is taken (e.g., click mouse button)  JavaScript embedded in the header or body is included within the tag  … 7Client-Side Scripting

 JavaScript can be stored in separate file  Large scripts  Code used in multiple pages  JavaScript files traditionally use.js extension  example.js  Syntax   Note: the src attribute doesn’t have to point to a file on the same site as the webpage using it  8Client-Side Scripting

 Scripts contained in the header or body are executed as they are encountered (when the page loads)  Code included in a function is NOT executed unless the function is called  Code that manipulates page elements MUST be defined (or called) after the element it manipulates  Execution assumes user has JavaScript enabled  Most browsers allow the user to disable JavaScript 9Client-Side Scripting

 Scripts without ability to interact with webpage are of limited utility  Scripts interact with webpage via the DOM  Allows scripts to change any aspect of the page  DOM is a convention for representing and interacting with objects in HTML  Constructed from a page’s HTML file  Reflects the structure of the page  Browser’s internal representation of a webpage  Most browsers have a similar (but not identical) DOM 10Client-Side Scripting

 The DOM is accessed via the document object  document.write(…)  Allows script to write HTML code to the page  document.location  Holds the URL for the current page  Can view the current URL  Ex: alert(document.location);  Can also set the current URL  Ex: document.location = “  Used to redirect users to another site 11Client-Side Scripting

 Almost all clients support attachments  Can attach an HTML to  If recipient opens attachment, the page will be rendered in the recipients browser  Including embedding JavaScript  Can be used for redirection (or more malicious purposes)  Most clients support HTML formatting  Client renders HTML-formatted s  Embedded scripts can be executed if the client supports script execution  Just opening the can cause scripts to execute 12Client-Side Scripting