About the Book
Web Programming is about more than creating and formatting webpages and web-sites though that is often a starting point for many. Using scripting languages such as JavaScript, Perl and PHP as well as fully blown programming languages such as Java, it becomes possible to add a lot more functionality to a site such as making dynamic interfaces, linking websites to databases, tracking users etc.
About the Author
Chris Bates, Sheffield Hallam University, UK
Chris has been teaching a web programming course for several years to a large and diverse group of students during which he has created and refined the examples and exercises used in the book.
Table of Contents: Preface to the Second Edition
Preface
Acknowledgement
Introduction
HTML, XML, and the World Wide Web
HTML
Basic HTML
The Document Body
Text
Hyperlinks
Adding More Formatting
Lists
Tables
Using Color and Images
Images
More HTML
Multimedia Objects
Frames
Forms -Towards Interactivity
The HTML Document Head in Detail
XHTML -An Evolutinary Markup
Cascading Stylesheets
Introduction
Using Styles: Simple Examples
Defining Your Own Styles
Properties and Values in Styles
Stylesheets - a Worked Example
Formatting Blocks of Information
Layers
An Introduction to JavaScript
What is Dynamic HTML?
JavaScript
JavaScript -The Basics
Variables
String Manipulation
Mathematical Functions
Statements
Operators
Arrays
Functions
Objects in JavaScript
Data and Objects in JavaScript
Regular Expressions
Exception Handling
Builtin Objects
Events
Dynamic HTML with JavaScript
Data Validation
Opening a New Window
Messages and Confirmations
The Status Bar
Writing to a Different Frame
Rollover Buttons
Moving Images
Multiple Pages in a Single Download
A Text-only Menu System
Floating Logos
Programming in Perl 5
Why Perl?
On-line Documentation
The Basic Perl Program
Scalars
Arrays
Hashes
Control Structures
Processing Text
Regular Expresssions
Using Files
Subroutines
Bits and Pieces
CGI Scripting
What is CGI?
Developing CGI Applications
Processing CGI
Returning a Basic HTML Page
Introduction to CGI.pm
CGI.pm Methods
Creating HTML Pages Dynamically
Using CGI.pm -
An Example
Adding Robustness
Some CGI Examples
Uploading Files
Tracking Users with Cookies
Tracking Users with Hidden Data
Using Data Files
Restricting Access With Session IDs
Building Web Applications With Perl
Carp
Cookies
Using Relational Databases
Using libwww
Template-based Sites With HTML: Mason
Creating And Manipulating Images
An Introduction to PHP
PHP
Using PHP
Variables
Program Control
Builtin Functions
Active Server Pages and Java
XML: Defining Data for Web Applications
Basic XML
Document Type Definition
XML Schema
Document Object Model
Presenting XML
Handling XML with Perl
Using XML::Parser
Handling the DOM with Perl
Good Design
Structure
Tables versus Frames versus
Accessibility
Internationalization
Useful Software
Web Browsers
Perl
Web Servers
mod-perl
Databases
Accessing your ISP
Protocols
IP and TCP
Hypertext Transfer Protocol
Common Gateway Interface
The Document Object Model
Introducing the Document Object Model
Exercises
Case Study
The Plan
The Data
References
Glossary
Appendix A: HTML Color Codes
Appendix B: JavaScript Keywords and Methods.
Appendix C: HTML Entities
Index