DT228/3 Web Development WWW and Client server model.

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

Essentials for Design JavaScript Level One Michael Brooks
1 CSC 551: Web Programming Spring 2004 client-side programming with JavaScript  scripts vs. programs  JavaScript vs. JScript vs. VBScript  common tasks.
DT228/3 Web Development WWW and Client server model.
Understand Web Page Development Software Development Fundamentals LESSON 4.1.
Copyright 2004 Monash University IMS5401 Web-based Systems Development Topic 2: Elements of the Web (g) Interactivity.
Server-Side vs. Client-Side Scripting Languages
1 Chapter 12 Working With Access 2000 on the Internet.
Chapter Concepts Review Markup Languages
B.Sc. Multimedia ComputingMedia Technologies Database Technologies.
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Copyright © 2006 by The McGraw-Hill Companies,
Introduction to Web Database Processing
Introduction to Web Application Architectures Web Application Architectures 18 th March 2005 Bogdan L. Vrusias
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic Server Side Web Technologies: Part 2.
DT211/3 Internet Development Application Internet Development Application.
Introduction to Web Interface Technology (CSE2030)
DT228/3 Web Development JSP: Directives and Scripting elements.
1 CS6320 – Why Servlets? L. Grewe 2 What is a Servlet? Servlets are Java programs that can be run dynamically from a Web Server Servlets are Java programs.
Introduction to Web Interface Technology (CSE2030)
How Clients and Servers Work Together. Objectives Learn about the interaction of clients and servers Explore the features and functions of Web servers.
Russell Taylor Lecturer in Computing & Business Studies.
Mgt 240 Lecture Website Construction: Software and Language Alternatives March 29, 2005.
4.01B Authoring Languages and Web Authoring Software 4.01 Examine webpage development and design.
2440: 141 Web Site Administration Web Server-Side Programming Professor: Enoch E. Damson.
ECA 228 Internet/Intranet Design I Intro to the Web.
Quick Tour of the Web Technologies: The BIG picture LECTURE A bird’s eye view of the different web technologies that we shall explore and study.
Web Design Basic Concepts.
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
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.
DHTML. What is DHTML?  DHTML is the combination of several built-in browser features in fourth generation browsers that enable a web page to be more.
INTRODUCTION TO DHTML. TOPICS TO BE DISCUSSED……….  Introduction Introduction  UsesUses  ComponentsComponents  Difference between HTML and DHTMLDifference.
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.
Internet Applications Notes for Chapter 19 Digital Domain, 2 ed.
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.
Dr. Azeddine Chikh IS444: Modern tools for applications development.
Chapter 33 CGI Technology for Dynamic Web Documents There are two alternative forms of retrieving web documents. Instead of retrieving static HTML documents,
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.
NASRULLAH KHAN.  Lecturer : Nasrullah   Website :
10/5/2015CS346 PHP1 Module 1 Introduction to PHP.
Client Scripting1 Internet Systems Design. Client Scripting2 n “A scripting language is a programming language that is used to manipulate, customize,
HTML. Principle of Programming  Interface with PC 2 English Japanese Chinese Machine Code Compiler / Interpreter C++ Perl Assembler Machine Code.
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 
Chapter 8 Collecting Data with Forms. Chapter 8 Lessons Introduction 1.Plan and create a form 2.Edit and format a form 3.Work with form objects 4.Test.
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
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.
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.
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.
4.01B Authoring Languages and Web Authoring Software 4.01 Examine webpage development and design.
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 :
 Web pages originally static  Page is delivered exactly as stored on server  Same information displayed for all users, from all contexts  Dynamic.
Introduction to the World Wide Web & Internet CIS 101.
1 CSC160 Chapter 1: Introduction to JavaScript Chapter 2: Placing JavaScript in an HTML File.
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Chapter 13 A & B Programming Languages and the.
A S P. Outline  The introduction of ASP  Why we choose ASP  How ASP works  Basic syntax rule of ASP  ASP’S object model  Limitations of ASP  Summary.
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.
Project 1 Introduction to HTML.
Introduction and Principles
Project 1 Introduction to HTML.
Database Driven Websites
Presentation transcript:

DT228/3 Web Development WWW and Client server model

HTML Javascript Java applets JScript VBScript ASP JSP CSS DHTML SSIs CGI PHP A quick tour of common client and server web technologies Server Side Java script Cold Fusion XML WML

HTML – client side Hyper Text Mark up language Used for rendering documents via web browser such as IE or FoxFire. Interpreted by browser Client side Tag based Different browser may interpret tags differently e.g.

WML– client side Wireless markup language The WAP equivalent of HTML -  Supports WAP technology for mobile devices Client side Fewer tags than HTML Supports WML Scripts Used on less powerful client devices

JavaScript and Jscript – Can be used as Client side AND server side. A very simple scripting language for enriching the display and interactivity of web pages. Typical example is a button that changes color as you move your mouse over it. A more useful example is a menu that rolls out more details when you click a category; this is done without loading a whole new page, and even without connecting to the web server. JavaScript is Netscape's technology, but fully adopted by Microsoft. When JavaScript is used inside IE browser, it is called JScript. JavaScript is not related to Java, except that it somewhat resembles Java. It can be used within Active Server Pages* More info:

A Scripting language, similar to Javascript A lighter weight version of Microsoft’s Visual Basic. Developed by Microsoft, and does not work in Netscape. A simplified variant of Visual Basic. Used for client processing and also the default programming language within Active Server Pages More info: m?/scripting/vbscript m?/scripting/vbscript VBScript –client and server side

Instructions for the browser about how to display the page (font, layout, etc.). Using CSS, the author of the web page has full control over what the user sees, regardless of the browser settings, etc. In addition, CSS allows web designer to define complex formatting styles, and then use them with a short command, instead of specifying all the fonts, sizes, layout, etc., every time. More info: / / Cascading Style Sheets (CSS) – client side

Java applets are programs written in Java that are downloaded onto and run on a Web browser. Applets can provide functionality to the client machine such as enhanced presentation, graphics, validation. etc The main difference between an applet and a fully-blown Java application is that an applet is restricted in functionality for security reasons; for instance, it cannot freely access the client hard drive. When you go to a website, you do not know what applets are included in it, and who wrote them and why – hence the security restrictions applied to Java Applets. More info: Java Applets – client side

“Animated” HTML. E.g. button changes colour, graphic moves from one part of the screen to the other. Refers to the combination of HTML, CSS and JavaScript, and other web site enhancing software which together allow creating web pages that interact with the user. More info: DHTMl – Dynamic HTMl – Client side

CGI is the oldest server-side technology. It was available in very early browsers, and was supported by very early versions of HTML. It is still used today CGI is most often used for processing forms. Any programming language can be used (such as C/C++, Java or Perl). More later More info: Common Gateway Interface – CGI – Server side

#!/usr/local/bin/perl # # hello_s.pl-- simple "hello, world" program to demonstrate basic # # CGI output. # Print the CGI response header, required for all HTML output # Note the extra \n, to send the blank line print "Content-type: text/html\n\n" ; # Print the HTML response page to STDOUT print CGI Results Hello, world. EOF exit ; Common Gateway Interface – CGI – Server side

Microsoft’s leading server side technology for creating dynamic web pages. Works by default only with Microsoft web server software (but browser brand does not matter). Allows to execute scripting languages such as VBScript and JavaScript on the server. Better uniformity than client side processing (since the server is controlled by the website owner, while each browser is different) and offloads the processing from the user computer. Since ASP runs on the server, it also offers additional functionality not available with client-side scripting. For instance, an ASP page can connect to a database to get the information to be displayed. Pages that use ASP have extension.asp rather than.htm or.html. More info: Active Server Pages – ASP – server side

") response.write(Right(sometext,5)) %> Active Server Pages – ASP – server side

JSP is similar in function to ASP and CGI. It allows a web server to process user input or perform some other functions and return the results to the user's browser. JSP files have an extension of.jsp JSP is supported by all major web server software. More info: Java Server Pages – JSP – server side

Hello, User My name is Cindy. What's yours? Java Server Pages – JSP – server side

Hello, Java Server Pages – JSP – server side

Scripting language for use on the server. Free (developed by Linux enthusiasts). Supported by all web servers. Similar to ASP in functionality, but simpler and less powerful. More info: PHP – Server side

hhhh Hello World! "; ?> PHP – Server side

An instruction inside a web page for the web server. For instance, it may ask the server to include another web page inside the current one (typically, a navigation bar, or some other common header or footer). This saves a lot of time when this common element needs to be updated in hundreds of pages throughout the website Usually supplied free as part of web server functionality More info: Server Side Includes (SSI) - Server side

ColdFusion, from Allaire, provides a set of HTML-like tags which were initially targeted at embedding database queries into web pages, but it has since been extended to support a wide variety of data sources for dynamic content generation. The adoption of HTML-like tags has the advantage that there is a single, consistent style of syntax throughout the page; the ColdFusion tags are comfortable to web designers because they look just like the other tags present in the document. ColdFusion supports both UNIX and Microsoft Windows platforms. Cold Fusion – Server side

#variable# Cold Fusion – Server side

Used with Netscape servers Server-Side JavaScript uses JavaScript as its scripting language. Server-side JavaScript included in an HTML document is enclosed in a... tag pair. SSJS adds built-in features for database and support, session management, and interoperability with server-side Java classes using Netscape's LiveWire technology. File extension =.js Compiled language. Server Side JavaScript – Server side

XML (extensible mark-up language) – is a simple, very flexible mark-up language (like HTMl). It is used throughout the web to as the basis for new mark-up languages such as Wireless Mark- Up (WML) and the latest version of HTML (XHTML). XML by itself does not do anything – it is usually used for defining the structure of data. For example, providing information in a generic format that will be sent to a variety of channels – e.g. web site, and wireless devices Example: talbot street XML user defined tags

Client or server side? Some websites/web applications will only need client side technologies Many use both client and server

To determine whether client-side or server-side or both will be used for a web application, need to consider: Static web pages only? Validation of user input needed? Will the user be entering information/ searching? (I.e. likely to use database) Session tracking required? Client or server side? Client-side may be sufficient Client-side will reduce traffic back to server, server side will provide uniform response If database used, need server-side technologies Server-side needed

Volume of users (want to minimise traffic back to server)? Sensitivity of code? Power of client device (e.g. PDA)? Security limitations (e.g. users prevented from certain web pages) Client Browser support Client or server side? Use of Client-side reduces traffic back to server Client-side code will be visible to visitors Client side code runs on device -> restrictions? Server-side provides ability to add security A consideration when using client-side

Client vs server technologies? A website for a small retailer, displaying location, map and staff descriptions Online daily newspaper displaying relevant news items and articles. Users can enter their details to subscribe. A transport website enabling users to enquire upon train timetables, destinations, prices. Information changes monthly. A temporary website, providing details of a concert. All information is static.

Questions A web design team are developing a web application for the Olympics Games. The application will provide bulletin board information, maps, hotel information and updates on event timetables and results. Explain how client-side and server-side web technologies may be used to develop the application. Give examples of each technology.

Summary Client server model for Web Different between client-side and server-side technologies Limitation of Client-side technologies Common Client-side and Server-side technologies Choosing use of client versus server-side technologies