Overview
Overview
Spring 2004
Course goals:
understand the technology and protocols underlying the World Wide Web
become familiar with common tools and techniques for developing Web-based
applications, both client-side and server-side
develop a working knowledge of HTML, JavaScript, Java, and PHP as languages
for developing Web applications
Reasonable questions
What is the World Wide Web?
1
Web ≠ Internet
Internet: a physical network connecting millions of computers using the same protocols for
sharing/transmitting information (TCP/IP)
in reality, the Internet is a network of smaller networks
World Wide Web: a collection of interlinked multimedia documents that are stored on the
Internet and accessed using a common protocol (HTTP)
2
Internet growth
throughout the 70's, the size of the ARPANET doubled every year
decentralization made adding new computers easy
~1000 military & academic computers connected by 1984
1996 12,881,000
1990 313,000
1988 56,000
1986 5,089
1984 1,024
1982 235
3
History of the Web
the idea of hypertext (cross-linked and inter-linked documents) traces back
to Vannevar Bush in the 1940's
online hypertext systems began to be developed in 1960's
e.g., Andy van Dam's FRESS, Doug Englebert's NLS
in 1987, Apple introduced HyperCard
4
Web growth
recent estimates suggest 40-50 M Web sites, with 4-5 B Web pages!
as the Web moves towards online services and e-commerce, Web pages
must also provide dynamic content
pages must be fluid, changeable (e.g., rotating banners)
must be able to react to the user's actions, request and process info, tailor services
e.g., amazon.com, www.thehungersite.com
10
5
Client-side programming
can download program with Web page, execute on client machine
simple, generic, but insecure
JavaScript
a scripting language for Web pages, developed by Netscape in 1995
uses a C++/Java-like syntax, so familiar to programmers, but simpler
good for adding dynamic features to Web page, controlling forms and GUI
see www.creighton.edu/~davereed/Memory
Java applets
can define small, special-purpose programs in Java called applets
provides full expressive power of Java (but more overhead)
good for more complex tasks or data heavy tasks, such as graphics
see www.creighton.edu/~davereed/csc107.F03/Labs/MontePI.html
11
Server-side programming
can store and execute program on Web server, link from Web page
more complex, requires server privileges, but secure
CGI programming
programs can be written to conform to the Common Gateway Interface
when a Web page submits, data from the page is sent as input to the CGI program
CGI program executes on server, sends its results back to browser as a Web page
good if computation is large/complex or requires access to private data
12
6
Exercise
pick some of your favorite Web sites and try to identify
static components?
dynamic components?
¾ client-side? JavaScript? Java applet?
¾ server-side? CGI? ASP?
e.g., www.creighton.edu/~davereed/csc551
www.creighton.edu
www.thehungersite.com
13