You are on page 1of 15

F5224

WEB PROGRAMMING

UNIT 1 : INTRODUCTION TO

DYNAMIC WEBSITES

• Classical hypertext navigation occurs among "static" documents, and, for web users , this experience isHTML document 2. Using server-side scripting to change the supplied page source between pages, adjusting the sequence or reload of the web pages or web content supplied to the browser. Server responses may be determined by such conditions as data in a posted HTML form, parameters in the URL, the type of browser being used, the passage of time, or a database or server state. • The result of either technique is described as a dynamic web page , and both may be used simultaneously. " id="pdf-obj-1-2" src="pdf-obj-1-2.jpg">

Classical hypertext navigation occurs among "static" documents, and, for web users, this experience is reproduced using static web pages. However, web navigation can also provide an interactive experience that is termed "dynamic".

Content (text, images, form fields, etc.) on a web page can change, in response to

different contexts or conditions. There are two ways to create this kind of interactivity:

  • 1. Using client-side scripting to change interface behaviors within a specific web page, in response to mouse or keyboard actions or at specified timing events. In this case the dynamic behavior occurs within the presentation. Its embedded within an HTML document

  • 2. Using server-side scripting to change the supplied page source between pages, adjusting the sequence or reload of the web pages or web content supplied to the browser. Server responses may be determined by such conditions as data in a posted HTML form, parameters in the URL, the type of browser being used, the passage of time, or a database or server state.

The result of either technique is described as a dynamic web page, and both may be used simultaneously.

DYNAMIC WEBPAGE

Dynamic webpage are those where the content and design live separately.

The content lives in a database that is placed on a webpage only when needed or asked.

The benefit of this is that it allows for quicker page loading and it allows just about anyone, with limited or no web design

experience, to update their own website via an administrative

backend.

This set up is ideal for those who wish to make frequent changes to their websites including text and image updates.

Dynamic webpage are also great for image galleries, online calendars or e-commerce, etc.

CLIENT-SIDE SCRIPTING

The Client-side content is generated on the client's

(user) computer. The web browser retrieves a page

from the server, then processes the code embedded

in the page (typically written in JavaScript) and

displays the retrieved page's content to the user.

SERVER-SIDE SCRIPTING

Server-side dynamic content is a little bit more complicated. The client sends the server the request.

The server receives the request and processes the server-side script such as PHP based on the query

string, HTTP POST data, cookies, etc.

Most business websites these days are dynamic meaning that the web pages are dynamically built

pages that allow user interaction. This is required for

example for an online shopping cart.

They are usually built with a programming language such as ASP, PHP or JAVA. This code "creates" the

HTML that is displayed in the browser. XHTML and

XML are standards which are probably eventually

replace HTML. However most sites are still "output"

in HTML because this is visible in most browsers.

Dynamic sites are often database-driven. This means that the site content is stored in a database and the

dynamic code "pulls" the content from a database.

The web technologies listed below - are the most commonly used programming languages for building

dynamic websites.

ASP

Javascript

PHP

DHTML

JAVA

CGI Scripts

XML

SSI

DYNAMIC CONTENT TECHNOLOGIES

  • ASP Active Server Page

  • ASP.Net

  • JSP Java Server Page

  • PHP PHP Hypertext Preprocessor

VALIDATION TECHNIQUE

WEB SERVER

to serve HTTP requests from people all over the world with website

content, data, links, etc.

  • run your website or websites directly from your web server

TYPES OF WEB SERVER

Apache HTTP Server Internet Information Services Lighttpd Sun Java System Web Server Jigsaw Server

TYPES OF WEB SERVER

Apache HTTP

Internet

Lighttpd

Sun Java System

Jigsaw Server

Server

Information

Web Server

Services

is an open source software and can be installed

runs on Windows NT/2000 and 2003 platforms

open source web server is fast, secure and consumes

web server from Sun Microsystems is suited for

It is open source and free and can run on various

on almost all

much less CPU

medium and

platforms like

operating

power.

large web

Linux, Unix,

systems

can also run

sites.

Windows, Mac

including Linux,

on Windows,

runs on

OS X Free BSD

Unix, Windows,

Mac OS X,

Windows,

etc

FreeBSD, Mac

Linux and

Linux and Unix

written in Java

OS X and more

Solaris

platforms

and can run

operating

CGI scripts and

systems

PHP programs.

Q & A