Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course materials.

Slides:



Advertisements
Similar presentations
WEB DESIGN TABLES, PAGE LAYOUT AND FORMS. Page Layout Page Layout is an important part of web design Why do you think your page layout is important?
Advertisements

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
Copyright 2004 Monash University IMS5401 Web-based Systems Development Topic 2: Elements of the Web (g) Interactivity.
Server-Side vs. Client-Side Scripting Languages
Chapter Concepts Review Markup Languages
B.Sc. Multimedia ComputingMedia Technologies Database Technologies.
Introduction to Web Application Architectures Web Application Architectures 18 th March 2005 Bogdan L. Vrusias
Website Development with PHP and MySQL Introduction.
Russell Taylor Lecturer in Computing & Business Studies.
What is Web Design The term “web design” has come to encompass a number of disciplines, including: Visual (graphic) design User interface and experience.
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.
1 CS428 Web Engineering Lecture 18 Introduction (PHP - I)
Web Programming Language Dr. Ken Cosh Week 1 (Introduction)
 What I hate about you things people often do that hurt their Web site’s chances with search engines.
Build a CMS Website. The topics this chapter covers are: What is CMS ? What you can do with CMS The benefits and disadvantages of using a content management.
WEB DESIGN SOME FOUNDATIONS. SO WHAT IS THIS INTERNET.
Web Design Basic Concepts.
DAT602 Database Application Development Lecture 15 Java Server Pages Part 1.
1 Web Developer & Design Foundations with XHTML Chapter 6 Key Concepts.
INTRODUCTION TO WEB DATABASE PROGRAMMING
Computer Concepts 2014 Chapter 7 The Web and .
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.
AJAX Chat Analysis and Design Rui Zhao CS SPG UCCS.
Copyright © cs-tutorial.com. Introduction to Web Development In 1990 and 1991,Tim Berners-Lee created the World Wide Web at the European Laboratory for.
Languages in WEB Presented by: Jenisha Kshatriya BCM SS09.
Dynamic Web Pages (Flash, JavaScript)
Chapter 16 The World Wide Web Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Describe several.
Server-side Scripting Powering the webs favourite services.
Build a Free Website1 Build A Website For Free 2 ND Edition By Mark Bell.
Website Design Lecture 1. Outline Introduction to the module Outline of the Assessment Schedule Lecture Static XHTML, client side and server side Why.
Web Design and Development for E-Business By Jensen J. Zhao Copyright 2003 Prentice Hall, Inc. Web Design and Development for E-Business Jensen J. Zhao.
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.
1Computer Sciences Department Princess Nourah bint Abdulrahman University.
Building Rich Web Applications with Ajax Linda Dailey Paulson IEEE – Computer, October 05 (Vol.38, No.10) Presented by Jingming Zhang.
Web Programming Brian Toone 8/27/2014. Outline for today 1.Understanding the architecture of the web 2.Overview of programming languages – Client-side.
Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
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,
Client-side & Server-side Scripting ©Richard L. Goldman August 5, 2003 Requires PowerPoint 2002 or later for full functionality.
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.
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.
 Web pages originally static  Page is delivered exactly as stored on server  Same information displayed for all users, from all contexts  Dynamic.
The basics of knowing the difference CLIENT VS. SERVER.
Learning Aim C.  In this section we will look at some simple client-side scripts, browser compatibility, exporting and compressing and suitable file.
Dr. Abdullah Almutairi Spring PHP is a server scripting language, and a powerful tool for making dynamic and interactive Web pages. PHP is a widely-used,
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.
IN THIS LESSON WE WILL REVIEW THE STRUCTURE OF THE INTERNET AND HOW BROWSERS ASSEMBLE WEBSITES BASED ON INSTRUCTIONS THEY RECEIVE FROM SERVERS. Internet.
JavaScript Invented 1995 Steve, Tony & Sharon. A Scripting Language (A scripting language is a lightweight programming language that supports the writing.
Doktorant ė : Egl ė Mickevi č i ū t ė Software development technologies KAUNO TECHNOLOGIJOS UNIVERSITETAS INFORMACIJOS SISTEM Ų KATEDA Kaunas, 2013.
G046 – Lecture 2A Recognising Web-Technologies Mr C Johnston ICT Teacher
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.
Scripting - Client-side vs. Server-side Scripting
Web Concepts Lesson 2 ITBS2203 E-Commerce for IT.
Introduction and Principles
Dynamic Web Pages (Flash, JavaScript)
Database Driven Websites
Playing Audio (Part 1).
Objective Understand web-based digital media production methods, software, and hardware. Course Weight : 10%
JavaScript.
Lesson 1 The Web.
Web Application Development Using PHP
Presentation transcript:

Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course materials

In the early days of the web, most web pages were static pages with very little or no interactivity. Today's web, however is much more interactive. People can shop online, bank online, watch videos, listen to music, share photos, chat with friends, play interactive games, maintain BLOGs, and on and on. The level of interactivity on today's web would not be possible if web designers were limited to using HTML and CSS. This lesson describes some of the advanced technologies that help to make the web more engaging.

The student will: – Be able to name and describe some of the advanced technologies that are used to deliver web content. – Be able to explain the difference between client-side and server-side scripting. – Be able to define progressive enhancement. – Be able to identify what technologies are being used to implement particular websites or web features.

Client-Side vs. Server-Side Scripts Scripts are computer programs that allow web pages to be more dynamic, for example allowing pages to present changed or customized content based on user input. Scripts can be categorized as either client-side or server-side, depending on where they're executed.

Client-side Scripts Client side scripts are executed client-side, within the user's web browser. They can be read by the user, and can be found in the source code of web pages that use them, contained between and tags. Sometimes scripts are contained in an external file, just like CSS. In these cases the tag includes a src attribute that links to the script file.

Client-side Scripts The most common client-side scripting language is JavaScript, which we will be learning. Another client-side language is VBScript, although VBScript was developed by Microsoft and is not supported by their competitors' browsers such as Firefox and Opera. Most web developers use JavaScript for client- side scripting in order to be sure their website works in all browsers.

Client-side Scripts Client-side scripts have some shortcomings: Older browsers don't support them; and newer browsers allow users to disable scripts and some users do so. Most users these days are using browsers that support scripts, and generally have scripting enabled, but it is important to know that some users don't. Therefore it's a good practice to design web pages using progressive enhancement. – This is a term used to describe the practice of creating web pages that work for everyone without CSS or client-side scripts. Then, enhance those pages, first with CSS (enhance the presentation) and then with JavaScript (enhance the functionality of the page). The scripted content should be a bonus for users who can access it, but if users can't access it, they should still be able to access the core content of the web page.

Server-side Scripts Server side scripts are executed server-side, on the web server, before the web page is sent to the browser. – Server-side scripts cannot be read by the user. They reside on the web server, and when requested by a web browser, they execute. What shows up in the web browser is not the script itself, but the output of the script, which is typically HTML. – Because of this, server-side scripts are more reliable and accessible than client-side scripts. Anyone using a web browser can access HTML, and users don't have to turn anything on in their browser for the scripts to work.

Scripting Languages There are dozens of server-side scripting languages. Some of the most common: – PHP is an open-source scripting language. According to many sources PHP is the most widely used server-side scripting language on the web. – Perl is also an open-source scripting language, and has been around since 1987 so it's used extensively on websites that have been around a while. – ASP.NET is a server-side scripting technology that was developed by Microsoft, and only runs on Microsoft servers. Prior to ASP.NET, Microsoft had developed another server-side scripting language with the name ASP (Active Server Pages) which was used widely on the web. However, other than the name, ASP and ASP.NET are very different technologies. – Java is an object-oriented programming language that is used to create software applications that run over the web. Java was released in 1995 and quickly became the hottest new programming language due in part to its promise of "write once, run anywhere." Java is still one of the most popular programming languages in use, particularly for web applications. As noted above, Java and JavaScript are not related. – Python is an open-source programming language that was designed to be simple, easy to learn, and easy to read in order to reduce the cost of program maintenance. Python is reportedly used extensively by Google. You will learn some python at the end of this year when you program the robots.

Server-Side Scripting Example in PHP Some times in this class you have had to go back and update all your pages with the same information (skip to link, navigation menu, banner, etc). What if you could build that common HMTL code on a server and then use it when the users access all the web pages?

Server-Side Scripting Example in PHP If your web pages were hosted on a site that supports PHP then we can build the common code on the server before the HTML is sent to the client.

Start by replacing all the code that’s common (the beginning and the end of the HMTL file) with simply PHP code: <?php include('functions.php'); showTop('Home'); ?> <?php showBottom(); ?>

Now need to define the functions. Our functions.php file would contain: function showTop($thisPage) { echo ' '; echo ' '.$thisPage.' '; echo ' '; } function showBottom() { echo ' '; }

Server-Side Scripting Example in PHP Now, with this code in place, we would never have to go back and modify the content within every file on our website! If we need to add something like a banner image or navigation menu, we would just do it in one place, here in the functions.php file.

Databases and the Web A database is any organized collection of information, but is most commonly used if data is organized using a computer. Typically computerized databases organize information using structures such as tables, records and fields. On the web, a database may be used to store product information, customer information, and so on. If a site requires you to log in, that site has your user name, password, and other information about you, stored in a database. If you provide a user name and password combination that matches a combination in the database, a server-side script retrieves additional information about you from the database and uses that to customize the web page you receive.

AJAX AJAX stands for "Asynchronous JavaScript and XML". It is not exactly a client-side technology, nor a server-side technology: It's both! Ajax is a technique in which websites use JavaScript (client-side) to send data to, and retrieve data from, a server-side script. This all happens in the background so data can be updated on the current page without requiring the user to load a new page.

Content Management Systems An increasingly common trend in web design is for all content on a website to be stored in a database. Then when a user requests a particular web page, the matching content is retrieved from the database and plugged into a web page template using a server-side script. To add content to the website, web authors don't have to write HTML as you've been doing in this course. They simply have to write or paste their content into a web form, and select "Save". A server-side script then saves the content to the database, where it sits in storage until someone requests it. Systems like this are known as content management systems (CMS). They are beneficial in environments where web content is being created by people who are not professional web designers and who do not know HTML. It also makes the website much easier to maintain, since all content is delivered through a template. To change the design of every page on the entire website, all the designer needs to do is change the template!

Flash Flash is a multimedia authoring environment developed by Macromedia (now Adobe) that is used to deliver dynamic animated content over the web. Flash content is developed using the Flash authoring software, and requires users to have the Flash Player installed. Flash authoring requires diligence in order to ensure that content is accessible to all users, including those who can't see the visual content, can't hear the audio content, or can't operate a mouse. – A certain degree of accessibility is possible with Flash, but it requires the author to be thinking about the needs of all users when they design their interface. Flash has become less popular in recent years due in part to the popularity of Apple iPhones and iPads, which don't support Flash.

Client-side scripts run in the users browser and must be supported by the browser. – May not work for all users. Use this to enhance but not deliver content. Server-side scripts run on the server and then send HTML code to the client. Databases store information to be accessed as needed.

Download the homework for today. Using your tables as teams complete the homework. Tomorrow you will show the 3 web sites you have found and explain why you think they are client-side, server-side or database