Beruflich Dokumente
Kultur Dokumente
Hypertext
Ted Nelson, father of the Xanadu Project, coined the term hypertext over 30 years
ago, as a way of describing non-sequential writingtext that branches and allows
choice to the reader. Unlike the static text of print media, it is intended for use with
an interactive computer screen. It is open, fluid and mutable, and can be connected to
other pieces of hypertext by links.
The term was extended under the name hypermedia to refer not only to text, but to
other media as well, including graphics, audio, and video. However, the original term
hypertext persists as the label for technology that connects documents and information
resources through links.
exceptions: search applications for finding files found on FTP archives and Gopher
servers; and services that provided dynamic information directly, like the weather,
or the availability of cans from a soda dispensing machine. (One of the first Web
applications that Tim Berners-Lee demonstrated at CERN was a gateway for looking
up numbers from a phone book database using a Web browser.)
explaining what is going on under the hood. While such books may be
useful in teaching programmers to develop applications for a specific platform,
they provide little or no information about the underlying technologies, focusing
instead on the platform-specific implementation of those technologies. Should
developers be called upon to rewrite an application for another platform, the
knowledge they acquired from reading these books would rarely be transferable
to that new platform.
Given the way Web technology changes so rapidly, todays platform of choice
is tomorrows outdated legacy system. When new development platforms emerge,
developers without a fundamental understanding of the inner workings of Web
applications have to learn their inner workings from the ground up, because
they lacked an understanding of first principlesof what the systems they wrote
really did. Thus, the ability to use fundamental technological knowledge across
platforms is critical.
Reference Books. These form a third category. Such books are useful, naturally,
as references, but not for the purpose of learning about the technology.
What we found lacking was a book that provides an in-depth examination of
the basic concepts and general principles of Web application development. Such
services, including Telnet, electronic mail, message forums, live messaging, and
file servers.
Telnet
The Telnet protocol operates within the Application layer. It was developed to
support Network Virtual Terminal functionality, which means the ability to log in
to a remote machine over the Internet. The latest specification for the Telnet protocol
is defined in Internet RFC 854.
Remember that before the advent of personal computers, access to computing
power was limited to those who could connect to a larger server or mainframe
computer, either through a phone dialup line or through a direct local connection.
Whether you phoned in remotely or sat down at a terminal directly connected to
the server, you used a command-line interface to log in. You connected to a single
system and your interactions were limited to that system.
With the arrival of Internet services, you could use the Telnet protocol to log
in remotely to other systems that were accessible over the Internet. As mentioned
earlier, Telnet clients are configured by default to connect to port 23 on the server
machine, but the target port number can be over-ridden in most client programs.
This means you can use a Telnet client program to connect and talk to any TCP
server by knowing its address and its port number.
Electronic mail
Electronic mail, or e-mail, was probably the first killer app in what we now call
cyberspace. Since the net had its roots in military interests, naturally the tone of
electronic mail started out being formal, rigid, and business-like. But once the body
of people using e-mail expanded, and once these people realized what it could be
used for, things lightened up quite a bit.
SMTP
SMTP stands for Simple Mail Transfer Protocol. As an application layer protocol,
SMTP normally runs on top of TCP, though it can theoretically use any underlying
transport protocol. The application called sendmail is an implementation of the
SMTP protocol for UNIX systems. The latest specification for the SMTP protocol
is defined in Internet RFC 821, and the structure of SMTP messages is defined in
Internet RFC 822.
POP
POP, the Post Office Protocol, gives users direct access to their e-mail messages
stored on remote systems. POP3 is the most recent version of the POP protocol.
Most of the popular e-mail clients (including Eudora, Microsoft Outlook, and
Netscape Messenger) use POP3 to access user e-mail. (Even proprietary systems
like Lotus Notes offer administrators the option to configure remote e-mail access
through POP.) POP3 was first defined in Internet RFC 1725, but was revised in
Internet RFC 1939.
Message forums
Message forums are online services that allow users to write messages to be posted
on the equivalent of an electronic bulletin board, and to read similar messages that
others have posted. These messages are usually organized into categories so that
people can find the kinds of messages they are looking for.
For years, online message forums existed in various forms.
File servers
E-mail and live messaging services represent fleeting, transitory communications
over the Internet. Once an instant message or e-mail message has been read, it is
usually discarded. Even forum-based messages, even if they are archived,
FTP
An FTP server operates in a manner similar to an e-mail server. Commands exist to
authenticate the connecting user, provide the user with information about available
files, and allow the user to retrieve selected files. However, e-mail servers let you
access only a preset collection of folders (like the inbox), solely for purposes of
downloading message files. FTP servers also allow users to traverse to different
directories within the servers local file system, and (if authorized) to upload files
into those directories.
HISTORICAL PERSPECTIVE
For all practical purposes, it all started at CERN back in 1989. That is when Tim
Berners-Lee wrote a proposal for a hypertext-based information management
system,
and distributed this proposal among the scientists at CERN. Although initially
interest in the proposal was limited, it sparked the interest of someone else at CERN,
Robert Cailliau, who helped Berners-Lee reformat and redistribute the proposal,
FUNDAMENTALS OF HTTP
HTTP is the foundation protocol of the World Wide Web. It is simple, which is
both a limitation and a source of strength. Many people in the industry criticized
HTTP for its lack of state support and limited functionality, but HTTP took the
world by storm while more advanced and sophisticated protocols never realized
their potential.
HTTP is an application level protocol in the TCP/IP protocol suite, using TCP
as the underlying Transport Layer protocol for transmitting messages. The
fundamental
things worth knowing about the HTTP protocol and the structure of HTTP
messages are:
1. The HTTP protocol uses the request/response paradigm, meaning that an HTTP
client program sends an HTTP request message to an HTTP server, which returns
an HTTP response message.
2. The structure of request and response messages is similar to that of e-mail
messages;
they consist of a group of lines containing message headers, followed by
a blank line, followed by a message body.
3. HTTP is a stateless protocol, meaning that it has no explicit support for the
notion of state. An HTTP transaction consists of a single request from a client
to a server, followed by a single response from the server back to the client.
In the next few sections, we will elaborate on these fundamental aspects of the
HTTP protocol.
Web Browsers
In this chapter, we go over the fundamental considerations in designing and building
a Web browser, as well as other sophisticated Web clients. When discussing Web
browsers, our focus will not be on the graphical aspects of browser functionality
(i.e. the layout of pages, the rendering of images). Instead, we shall concentrate
on the issues associated with the processing of HTTP requests and responses. The
value of this knowledge will become apparent as we proceed to our discussion of
more sophisticated Web applications.
JavaScript
JavaScript is used in millions of Web pages to improve the design, validate forms, detect
browsers, create cookies, and much more.
JavaScript is the most popular scripting language on the internet, and works in all major
browsers, such as Internet Explorer, Mozilla, Firefox, Netscape, and Opera.
HTML / XHTML
If you want to study these subjects first, find the tutorials on our Home page.
What
is JavaScript?
JavaScript was designed to add interactivity to HTML pages
JavaScript is a scripting language
A scripting language is a lightweight programming language
A JavaScript consists of lines of executable computer code
A JavaScript is usually embedded directly into HTML pages
JavaScript is an interpreted language (means that scripts execute without preliminary
compilation)
Everyone can use JavaScript without purchasing a license
JavaScript can put dynamic text into an HTML page - A JavaScript statement like this:
document.write("<h1>" + name + "</h1>") can write a variable text into an HTML page
JavaScript can react to events - A JavaScript can be set to execute when something
happens, like when a page has finished loading or when a user clicks on an HTML element
JavaScript can read and write HTML elements - A JavaScript can read and change the
content of an HTML element
JavaScript can be used to validate data - A JavaScript can be used to validate form
data before it is submitted to a server. This saves the server from extra processing
JavaScript can be used to detect the visitor's browser - A JavaScript can be used to
detect the visitor's browser, and - depending on the browser - load another page specifically
designed for that browser
JavaScript can be used to create cookies - A JavaScript can be used to store and
retrieve information on the visitor's computer
DYNAMIC - HTML
Cascading Style Sheets (CSS) and JavaScript Style Sheets used in
concert with
Scripting is what puts the dynamism in Dynamic HTML. It allows you to
precisely format, embellish, and position the content in your
documents instead of acquiescing to the whims of each browser's
rendering choices. You can also create documents that change by
themselves, or in response to user interaction, and have inline
animations contained within them. Inline is the key word here because
that means faster downloading and no plug-ins to load or have
compatibility issues with or annoy the user because, if after
downloading
seventy-five plug-ins, the one for your content isn't on his/her system.
It also means that
you can have an image that not only animates but can move around
the page instead of
being confined to a stationary rectangular space.
You embellish your content by making stylistic choices that affect the
color, size,
font face, boldness, and other aspects of text markup, and you can
create margins and
borders for your text. Then you can position your content exactly
where you want it to
appear in the page instead of the old inline flow method. Transparent
and opaque blocks
of content are now possible which you can change, move, resize, make
appear or disappear on-the-fly, or respond to user input. If so inclined,
you could let each user custom design how the website will appear for
them.
Time will definitely be saved if you have a particular style that you
want to use for
your whole site or section of it by creating the Style Sheet just once
and saving it in its own file and then accessing it multiple times with
one line of code. You just LINK to the Style Sheet when you want it to
apply to that specific page.
The text layout paradigm of Style Sheets has been directly ported from
the desktop
publishing world where programs like QuarkXpress have had Style
Sheets for years. If
you are familiar with that then you're already halfway home to
understanding Cascading
Style Sheets in HTML. There are two main differences between Style
Sheets as used in
Quark and those used in Navigator. The first is that in Quark you are
working in a
WYSIWYG environment so you just make your choices from radio
buttons, text-boxes, and pop-up menus in a dialog window and then
Quark does all the post-script coding for you. In HTML with Cascading
Style Sheets you have to do the coding yourself but you're doing the
same thing to your content and you get very similar results. In fact,
getting HTML pages to behave more like documents in the publishing
world is half the point. The other difference, and this one goes way
beyond desktop publishing, is the dynamic and interactive aspects of
Cascading Style Sheets.
When you use the <STYLE> Element, you have to declare with the TYPE Attribute
which type of Style Sheet it is, either TYPE="text/CSS" or TYPE="text/JavaScript".
For the purposes of clarity and brevity CSS syntax (Cascading Style Sheet syntax)
refers to syntax declared as:
TYPE="text/CSS"
When the term JavaScript syntax is used it refers to syntax declared as:
TYPE="text/JavaScript"
E-Commerce
What is e-commerce?
Electronic commerce or e-commerce refers to a wide range of online business
activities
for products and services.1 It also pertains to any form of business transaction in
which the parties interact electronically rather than by physical exchanges or direct
physical contact.2
E-commerce is usually associated with buying and selling over the Internet, or
conducting
any transaction involving the transfer of ownership or rights to use goods or
services through a computer-mediated network.3 Though popular, this definition is
not comprehensive enough to capture recent developments in this new and
revolutionary
business phenomenon. A more complete definition is: E-commerce is the
use of electronic communications and digital information processing technology in
business transactions to create, transform, and redefine relationships for value
creation
between or among organizations, and between organizations and individuals.4
Is e-commerce the same as e-business?
While some use e-commerce and e-business interchangeably, they are distinct
concepts.
In e-commerce, information and communications technology (ICT) is used in
inter-business or inter-organizational transactions (transactions between and among
firms/organizations) and in business-to-consumer transactions (transactions between
firms/organizations and individuals).
In e-business, on the other hand, ICT is used to enhance ones business. It includes
any process that a business organization (either a for-profit, governmental
or non-profit entity) conducts over a computer-mediated network. A more
comprehensive
definition of e-business is: The transformation of an organizations processes to
deliver additional customer value through the application of technologies,
philosophies
and computing paradigm of the new economy.
What are the different types of e-commerce?
The major different types of e-commerce are: business-to-business (B2B); businesstoconsumer (B2C); business-to-government (B2G); consumer-to-consumer (C2C);
and mobile commerce (m-commerce).
What is B2B e-commerce?
B2B e-commerce is simply defined as e-commerce between companies. This is the
type of e-commerce that deals with relationships between and among businesses.
About 80% of e-commerce is of this type, and most experts predict that B2B
ecommerce
will continue to grow faster than the B2C segment.
How are business relationships transformed through e-commerce?
E-commerce transforms old economy relationships (vertical/linear relationships) to
new economy relationships characterized by end-to-end relationship management
solutions (integrated or extended relationships).
How does e-commerce link customers, workers, suppliers, distributors and
competitors?
E-commerce facilitates organization networks, wherein small firms depend on
partner
firms for supplies and product distribution to address customer demands more
effectively.
XML
What is XML?
<td bgcolor="yellow">19.50</td>
</tr>
...
</table>
XML is another markup language. However, an XML document does not usually contain
presentation details: instead, it is just used to describe data. And the tags of the language
are chosen by the author of the document rather than being determined by the language.
For this reason, it is called the eXtensible Markup Language:
<consumables>
<product>
<category>inkjet cartridges</category>
<item>HP Deskjet print cartridge 51645A</item>
<price>19.50</price>
</product>
...
</consumables>
The WWW page
http://www.dur.ac.uk/barry.cornelius/java/xml.processing/cod
e/consumables.xml contains a complete XML document. Elsewhere in this paper, a
URL like this will be abbreviated to CODE/consumables.xml, where CODE is an
abbreviation of
http://www.dur.ac.uk/barry.cornelius/java/xml.processing/cod
e.
1.2
Some jargon
ASP
To participate in the Web application world, Microsoft developed Active
Server Pages (ASP). ASP was a quick and easy way to develop Web
pages. ASP pages consisted of a single page that contained a mix of
markup and languages. The power of ASP was that you could include
VBScript or JScript code instructions in the page executed on the Web
server before the page was sent to the end users Web browser. This
was an easy way to create dynamic Web pages customized based on
parameters dictated by the
developer. ASP used script between brackets and percentage signs<
% %>to control server-side behaviors. A developer could then build
an ASP page by starting with a set of static HTML. Any dynamic
element