Client-side processing 26 Client-side processing 26.

Slides:



Advertisements
Similar presentations
Cross-Site Scripting Issues and Defenses Ed Skoudis Predictive Systems © 2002, Predictive Systems.
Advertisements

Client-Side Processing
DT228/3 Web Development WWW and Client server model.
Objective Understand web-based digital media production methods, software, and hardware. Course Weight : 10%
Languages for Dynamic Web Documents
Server-Side vs. Client-Side Scripting Languages
DT211/3 Internet Application Development JSP: Processing User input.
Administrative  Philosophy  Class survey  Grading  Proposal (5 points max)  Small projects (10 points each max)  Project (40 points max)  Presentation.
MSc. Publishing on WWW JavaScript. What is JavaScript? A scripting language devised by Netscape Adds functionality to web pages by: Embedding code into.
Design of Web-based Systems IS Development: lecture 10.
Administrative  Philosophy  Class survey  Grading  Project  Presentation.
Live the dream… Technologies of e-Commerce Unit 8 – e-Commerce LO1 : Know the technologies required for e-commerce.
CGI Programming: Part 1. What is CGI? CGI = Common Gateway Interface Provides a standardized way for web browsers to: –Call programs on a server. –Pass.
COMPUTER TERMS PART 1. COOKIE A cookie is a small amount of data generated by a website and saved by your web browser. Its purpose is to remember information.
ITIS 1210 Introduction to Web-Based Information Systems Chapter 41 How Animation on the Web Works.
INTRODUCTION TO WEB DATABASE PROGRAMMING
Lesson 8 DATA EXCHANGE. Transmission Modes Type 1 - Simplex  Simplex transmission: sends data in one direction only. A radio broadcast is a good example.
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)
Databases and the Internet. Lecture Objectives Databases and the Internet Characteristics and Benefits of Internet Server-Side vs. Client-Side Special.
Server-side Scripting Powering the webs favourite services.
Programming the Web Web = Computer Network + Hypertext.
10 Adding Interactivity to a Web Site Section 10.1 Define scripting Summarize interactivity design guidelines Identify scripting languages Compare common.
Client Scripting1 Internet Systems Design. Client Scripting2 n “A scripting language is a programming language that is used to manipulate, customize,
Section 17.1 Add an audio file using HTML Create a form using HTML Add text boxes using HTML Add radio buttons and check boxes using HTML Add a pull-down.
Lecture # 6 Forms, Widgets and Event Handling. Today Questions: From notes/reading/life? Share Personal Web Page (if not too personal) 1.Introduce: How.
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 
WEB SCIENCE. What is the difference between the Internet and the World Wide Web? Internet is the entire network of connected computers and routers used.
Forms and Server Side Includes. What are Forms? Forms are used to get user input We’ve all used them before. For example, ever had to sign up for courses.
JavaScript - A Web Script Language Fred Durao
Web Design (1) Terminology. Coding ‘languages’ (1) HTML - Hypertext Markup Language - describes the content of a web page CSS - Cascading Style Sheets.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 14 Database Connectivity and Web Technologies.
SQL INJECTIONS Presented By: Eloy Viteri. What is SQL Injection An SQL injection attack is executed when a web page allows users to enter text into a.
Introduction to JavaScript CS101 Introduction to Computing.
44238: Dynamic Web-site Development Client Side Programming Ian Perry Room:C48 Extension:7287
RUBRIC IP1 Ruben Botero Web Design III. The different approaches to accessing data in a database through client-side scripting languages. – On the client.
Cs332a_chapt10.ppt CS332A Advanced HTML Programming DHTML Dynamic Hypertext Markup Language A term describing a series of technologies Not a stand-a-lone.
Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
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,
Scripting Languages Client Side and Server Side. Examples of client side/server side Examples of client-side side include: JavaScript Jquery (uses a JavaScript.
Javascript JavaScript is what is called a client-side scripting language:  a programming language that runs inside an Internet browser (a browser is also.
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.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 14 Database Connectivity and Web Technologies.
Chapter 11 Adding Media and Interactivity. Chapter 11 Lessons Introduction 1.Add and modify Flash objects 2.Add rollover images 3.Add behaviors 4.Add.
JavaScript 101 Introduction to Programming. Topics What is programming? The common elements found in most programming languages Introduction to JavaScript.
The Web Wizard’s Guide To JavaScript Chapter 9 Applied Web Programming Techniques.
Event Handling (the right way). A Simple Web Page Events - Summary The web page looks like this:
The Online World DATA EXCHANGE 2. Introduction Devices on a network use a variety of methods to communicate with each other and to transmit data. This.
Understanding Web-Based Digital Media Production Methods, Software, and Hardware Objective
Learning Aim C.  Creating web pages involves many considerations.  In this section we will look at the different software tools you can use and how.
1 CSC160 Chapter 1: Introduction to JavaScript Chapter 2: Placing JavaScript in an HTML File.
JavaScript JavaScript is a programming language that web browsers understand. You can use it to make your web pages interactive by: Responding to user.
IN THIS LESSON WE WILL REVIEW THE STRUCTURE OF THE INTERNET AND HOW BROWSERS ASSEMBLE WEBSITES BASED ON INSTRUCTIONS THEY RECEIVE FROM SERVERS. Internet.
The Internet Salihu Ibrahim Dasuki (PhD) CSC102 INTRODUCTION TO COMPUTER SCIENCE.
World Wide Web 16 World Wide Web 16. World Wide Web 16 Everyone also talks about the Web But people don’t really understand how it works You need to know.
JavaScript Invented 1995 Steve, Tony & Sharon. A Scripting Language (A scripting language is a lightweight programming language that supports the writing.
Unit 4 Working with data. Form Element HTML forms are used to pass data to a server. A form can contain input elements like text fields, checkboxes, radio-buttons,
HTML 17 HTML 17. HTML 17 HTML is the language for making webpages Hypertext Markup Language You need to know the basics Questions about HTML are common.
SlideSet #20: Input Validation and Cross-site Scripting Attacks (XSS) SY306 Web and Databases for Cyber Operations.
Teaching slides Chapter 6. Chapter 6 Software user interface design & construction Contents Introduction Graphical user interface – Rich window based.
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.
Tonga Institute of Higher Education IT 141: Information Systems
Remember that our latest topics involve a more advanced look at how webpages work
Tonga Institute of Higher Education IT 141: Information Systems
Objective Understand web-based digital media production methods, software, and hardware. Course Weight : 10%
Tonga Institute of Higher Education IT 141: Information Systems
Introduction to JavaScript
Presentation transcript:

Client-side processing 26 Client-side processing 26

Client-side processing 26 Our next two topics involve a more advanced look at how webpages work With client-side processing, we’ll look at the special interactive features that make today’s webpages more exciting And with server-side processing, we’ll look at what happens after you click a button to ‘submit’ data or ‘search’ But both topics are based on concepts that should be pretty familiar by now…

Client-side processing 26 Remember what we mean by ‘client-side’ & ‘server-side’ Client SideServer Side Database Web Server Our diagram has always had these three parts… Client Device Internet Backbone

Client-side processing 26 Client SideServer Side Database Web Server Client Device Internet Backbone Remember what we mean by ‘client-side’ & ‘sever-side’ Our diagram has always had these three parts… We’ll look at two examples of ‘client-side’ processing And later we’ll learn two ‘server-side’ examples And don’t forget the examples all involve data travelling across the Internet That means interactive features in your browser That means handling the data that people post But data takes time to travel from server to client And there’s a security risk that data can be hacked!

Client-side processing 26 So for our examples of client-side processing, we’ll look at two kinds of interactive features One is called a ‘hover’ image The other is called a ‘slider’ Both features are displayed in your browser on your client device, such as a tablet or laptop That’s why they are ‘client-side’ features

Client-side processing 26 We’ll now look at how to create a simple version of a hover image You now know that basic pages are created using HTML But interactivity is created using another coding language, JavaScript So we’ll now combine HTML & JavaScript to create a basic hover image…

Client-side processing 26 Example 1 Hover image This image changes when you roll your mouse pointer over it. This ‘hover’ effect is achieved using JavaScript code with the HTML.

Client-side processing 26 Example 1 – HTML & JavaScript code This code is called a script. It tells the Browser how to make the image interactive. This code is written using the language called JavaScript. This is the HTML code that tells the browser how to display the page.

Client-side processing 26 Example 1 – HTML & JavaScript code Code Change Now change this code for ‘onmouseover’. Change it from shaun2 to shaun3.

Client-side processing 26 Example 1 Popup Message Now click this link to see a different kind of interactive feature. It will display a message. But what the message looks like will depend on your browser.

Client-side processing 26 Example 1 The message looks different in different browsers. It’s because each browser runs the script its own way Web coders get annoyed with this lack of consistency

Client-side processing 26 Our second example of an interactive feature is a ‘slider’ It’s a feature that’s displayed in your browser on your client device, such as a tablet or laptop That’s why it’s called ‘client-side’

Client-side processing 26 Example 2 Slider It automatically shows a sequence of images but you can click the links to scroll through the images interactively.

Client-side processing 26 Example 2 – HTML & JavaScript code This code is another script. It tells the Browser how to display the slider. This code is written using the language called JavaScript. This is the HTML code that tells the browser how to display the page.

Client-side processing 26 Example 2 – HTML & JavaScript code Code Changes Now change this script code to alter the slider. Change effect to fold Change pauseTime to 5 Change startSlide to 4 Change animSpeed to 80

Client-side processing 26

Client-side processing 26 So we have now seen two examples of client-side processing Both create interactive features Both used special code scripts One was a hover image The other was a slider Now let’s summarise the advantages and disadvantages of client-side processing…

Client-side processing 26 Interactivity: Client code scripts tell the browser how to display special features that let users interact with the page Speed: Processing is faster on the client because code & data does not have to travel back to the server across the Internet Security: No security risk because there’s no data to transmit back to the server across the Internet, where it could be intercepted Advantages

Client-side processing 26 Browser-specific: Different browsers process client scripts in different ways, so a web coder cannot be sure how their website will appear on a screen on the client side Computer speed: The web coder is relying on the speed of the client device to deliver the interactive features, so if that hardware is slow then the processing will be slow Disadvantages

Client-side processing 26 Client-side processing 26

Client-side processing 26 Client-side processing 26