Book description
Web Programming and Internet Technologies: An E-Commerce Approach is written for the one-term web programming course for first or second year students. I features a hands-on learning approach where students are provided with information on a need to know basis. The text provides a running case study throughout, and students then take the topics taught in each chapter and apply them to the development of an e-commerce website. At the end of the text students will have a fully functional e-commerce site!
Table of contents
- Cover Page
- Title Page
- Copyright Page
- Dedication
- Contents
- Preface
- Typographic and Other Conventions
-
1 Setting the Scene
- 1.1 What Is the Internet?
- 1.2 What Is the World Wide Web?
- 1.3 What Is Meant by a Client-Server Architecture?
- 1.4 How Do Web Browsers and Web Servers Fit the Client-Server Model?
- 1.5 How Do Web Browsers and Web Servers Communicate?
- 1.6 A Real-World E-Commerce Website
- 1.7 The Technologies We Will Discuss
- 1.8 Some Alternative Technologies and Additional Tools
- Summary
- Quick Questions to Test Your Basic Knowledge
- Short Exercises to Improve Your Basic Understanding
- Exercises on the Parallel Project
- What Else You May Want or Need to Know
- References
-
2 Establishing a Web Presence
- 2.1 What Is an Internet Service Provider (ISP)?
- 2.2 What Tools Will You Need to Begin Your Web Development?
- 2.3 How Do You Create a Simple, Static Web Page?
- 2.4 How Do You Test a Web Page “Offline” before “Going Online”?
- 2.5 How Do You “Go Live” on the Web Once You’re Ready?
- Summary
- Quick Questions to Test Your Basic Knowledge
- Short Exercises to Improve Your Basic Understanding
- Exercises on the Parallel Project
- What Else You May Want or Need to Know
- References
-
3 HTML for Content Structure
- 3.1 The Long Road to HTML5, the New Norm
- 3.2 A Very Important Distinction: Structure vs. Presentation
- 3.3 HTML Tags and Elements
- 3.4 The Basic Structure of Every Web Page
- 3.5 Some Basic Markup: Headings, Paragraphs, Line Breaks, and Lists
- 3.6 What Does It Mean for a Web Page to Be Valid?
- 3.7 How Can We Determine if a Web Page Is Valid?
- 3.8 Validating with the Firefox Web Developer Add-on
- 3.9 Tables, Images, and Tag Attributes
- 3.10 HTML Entities
- 3.11 Adding More Web Pages to Our Site and Connecting Them with Hyperlinks
-
3.12 Using Server-Side Includes (SSI) to Make Common Markup Available to Multiple Documents
- 3.12.1 The “Maintenance Nightmare” Problem
- 3.12.2 Identifying and Extracting Common Markup
- 3.12.3 Using SSI to Include Common Markup Where Needed
- 3.12.4 One Thing Leads to Another: A Second Problem
- 3.12.5 The base Tag Solves Our Second Problem
- 3.12.6 Our Revised Site Looks and Behaves Exactly Like the Previous Version
- 3.13 The New HTML5 Semantic Elements
- Summary
- Quick Questions to Test Your Basic Knowledge
- Short Exercises to Improve Your Basic Understanding
- Exercises on the Parallel Project
- What Else You May Want or Need to Know
- References
-
4 CSS for Content Presentation
- 4.1 The Rationale for CSS, and a Brief History
- 4.2 Simple CSS Style Rules and Their Syntax
- 4.3 The Placement of CSS Style Rules
- 4.4 A Simple Example
- 4.5 Some Basic CSS Markup: More on Selectors, Declarations, Properties, and Property Values
- 4.6 Some Common Types of CSS Property Values and Their Formats
- 4.7 CSS Style Sheet Structure, Comments, and Formatting
- 4.8 The HTML class and id Attributes and the Non-Semantic HTML div and span Elements
- 4.9 Inheritance and the Cascade
- 4.10 Validating Our CSS Style Sheets
- 4.11 The CSS Box Model and Simple CSS Page Layout
- 4.12 CSS Reset: A “Best Practice”
-
4.13 Styling Our Nature’s Source Website with CSS (Four Versions, Illustrating CSS3, Simple “Responsive Design”, and the New HTML5 video Element)
- 4.13.1 Version 1: A Simple Home Page Only
- 4.13.2 Version 2: A Multipage Site with Menu and Footer
- 4.13.3 Version 3: A Revision of Version 2 Incorporating Some CSS3 and Illustrating Simple “Responsive Design”
- 4.13.4 Version 4: A Copy of Version 3 with the Home Page Image Replaced by a Home Page Video
- Summary
- Quick Questions to Test Your Basic Knowledge
- Short Exercises to Improve Your Basic Understanding
- Exercises on the Parallel Project
- What Else You May Want or Need to Know
- References
-
5 HTML Forms for Data Collection
- 5.1 Web Forms Collect User Input Data in a Browser for Transfer to a Server for Processing
- 5.2 The form Element
- 5.3 The input Element
- 5.4 The select and option Elements for Dropdown List-boxes
- 5.5 What Is Missing from the BMI Calculator Web Page?
- 5.6 The textarea Element
- 5.7 The submit and reset Button Elements
- 5.8 Organizing Form Controls with the fieldset and legend Elements
- 5.9 Using the label Element for Behind-the-Scenes Logical Groupings
- 5.10 Getting Ready to Submit Your Form Data
- 5.11 HTML5 Form Controls
- Summary
- Quick Questions to Test Your Basic Knowledge
- Short Exercises to Improve Your Basic Understanding
- Exercises on the Parallel Project
- What Else You May Want or Need to Know
- References
-
6 JavaScript for Client-Side Computation and Form Data Validation
- 6.1 Another Important Distinction: Structure vs. Presentation vs. Behavior
- 6.2 What Is JavaScript? (It’s not Java!)
- 6.3 The Placement of JavaScript Code
- 6.4 A Simple Example in Four Versions
- 6.5 What Is the Document Object Model (DOM)?
- 6.6 JavaScript and the DOM Interact to Process Our BMI Form
- 6.7 The Importance of Website Security and How JavaScript Can Help
-
6.8 JavaScript and the DOM Interact to Validate Our BMI Form Data
- 6.8.1 Simple JavaScript Arrays, and the options Array of a select Element
- 6.8.2 Getting the Height and Weight Units Chosen by the User
- 6.8.3 Getting the User’s Height and Weight Values, and Email Address
- 6.8.4 Calling Functions to Validate Height, Weight, and Email Values
- 6.8.5 Logical Operators and Compound Boolean Expressions
- 6.8.6 Relational Operators and Functions for Validating Height and Weight Values
- 6.8.7 Simple Regular Expressions and a Function for Validating an Email Address
- 6.9 JavaScript and the DOM Interact to Compute a BMI Value
- 6.10 Regular Expressions in JavaScript and in HTML5
- 6.11 JavaScript and the DOM Interact to Validate Our Feedback Form Data
- 6.12 The Modernizr Tool and HTML5 Form Controls
- Summary
- Quick Questions to Test Your Basic Knowledge
- Short Exercises to Improve Your Basic Understanding
- Exercises on the Parallel Project
- What Else You May Want or Need to Know
- References
-
7 JavaScript for Client-Side Content Behavior
- 7.1 Enhancing Our Website with a Home Page “Slide Show” of Rotating Images and Dropdown Menu Options on Every Page
- 7.2 Implementing Our “Slide Show” of Rotating Images
- 7.3 Implementing Our Dropdown Menus
- 7.4 Notes on the nature2 Version of Our Nature’s Source Website
- Summary
- Quick Questions to Test Your Basic Knowledge
- Short Exercises to Improve Your Basic Understanding
- Exercises on the Parallel Project
- What Else You May Want or Need to Know
- References
-
8 PHP for Server-Side Preprocessing
- 8.1 Some PHP History
- 8.2 PHP as a Server-Side Scripting Language
- 8.3 PHP Script Structure and General Syntax: A Simple First Example
- 8.4 Why We Need AJAX and How We Use It: Two More Examples
- 8.5 Incorporating the Welcome Message into Our Home Page with AJAX
- 8.6 Understanding the GET and POST “Methods”
-
8.7 Implementing the Server-Side Functionality of Our Feedback Form
- 8.7.1 What Happens When the User Clicks Send Feedback
- 8.7.2 Uploading the Feedback Form Data from the Client to the Server
- 8.7.3 An Overview of the PHP Code That Processes the Feedback Form Data
- 8.7.4 Building the Feedback Message to the Business with PHP String Literals and the $_POST Array Values
- 8.7.5 Sending an Email Feedback Message to the Business with PHP’s mail( ) Function
- 8.7.6 Modifying the Previous Message to the Business to Get One Suitable for the Client
- 8.7.7 Sending an Email Feedback Confirmation Message to the Client with PHP’s mail( ) Function
- 8.7.8 Returning a Browser Display to the User for Immediate Confirmation of Feedback Submission
- 8.7.9 Saving the User’s Feedback on the Server with PHP File Output
-
8.8 Revising the Implementation of Our BMI Calculator to Calculate Server-Side
- 8.8.1 What Happens When the User Clicks Compute your BMI
- 8.8.2 Uploading the BMI Form Data from the Client to the Server
- 8.8.3 An Overview of the “Driver” Script That Processes the BMI Form Data
- 8.8.4 Building the BMI Report Message with Programmer-Defined PHP Functions
- 8.8.5 Computing the BMI Value: Numerical Computations in PHP, and More Programmer-Defined Functions
- 8.8.6 Building and Sending an HTML-Encoded Email BMI Report to the User with Another Programmer-Defined Function
- 8.9 PHP Development and Testing
- Summary
- Quick Questions to Test Your Basic Knowledge
- Short Exercises to Improve Your Basic Understanding
- Exercises on the Parallel Project
- What Else You May Want or Need to Know
- References
-
9 MySQL for Server-Side Data Storage
- 9.1 Relational Databases
- 9.2 Database Design Goals
- 9.3 Some Architectural Aspects of a “Good” Database
- 9.4 Make Use of Online Resources and Don’t Reinvent the Wheel
- 9.5 The Data Model for Our Nature’s Source Database
- 9.6 MySQL, phpMyAdmin, and SQL
- 9.7 Using phpMyAdmin and SQL to Set Up the MySQL Database for Our Nature’s Source Website
- 9.8 MySQL’s Command-Line Interface
- 9.9 Importing and Exporting Tables and Databases
- Summary
- Quick Questions to Test Your Basic Knowledge
- Short Exercises to Improve Your Basic Understanding
- Exercises on the Parallel Project
- What Else You May Want or Need to Know
- References
-
10 PHP and MySQL for Client-Server Database Interaction
- 10.1 PHP and MySQL
- 10.2 Registration
- 10.3 Logging In and Logging Out
- 10.4 An E-Store Session after a Successful Login
- 10.5 Browsing Our E-Store Product Catalog
-
10.6 Purchasing Products
- 10.6.1 The pages/shoppingCart.php Script
- 10.6.2 A High-Level View of the scripts/shoppingCartProcess.php Script
- 10.6.3 Reviewing the Relevant Tables in Our Nature’s Source Database Structure
- 10.6.4 Getting the Product Details of an Existing Order with getExistingOrder( )
- 10.6.5 Creating a New Order with createOrder( )
- 10.6.6 Displaying the Header of the Shopping Cart Table with displayHeader( )
- 10.6.7 Displaying the Product Information in the Shopping Cart with FirstFourColumns( ), displayExistingItemColumns( ), and displayNewItemColumns( )
- 10.6.8 Displaying the Footer of the Shopping Cart Table with displayFooter( )
- 10.6.9 Adding an Item to the Shopping Cart with shoppingCartAddItem.php
- 10.6.10 Deleting an Item from the Shopping Cart with shoppingCartDeleteItem.php
- 10.7 Checkout
- 10.8 Some Utility Files for Use at the MySQL Command-Line Interface
- Summary
- Quick Questions to Test Your Basic Knowledge
- Short Exercises to Improve Your Basic Understanding
- Exercises on the Parallel Project
- What Else You May Want or Need to Know
- References
-
11 XML (eXtensible Markup Language) for Data Description
- 11.1 The Basic Rules of XML
- 11.2 Describing Our Data with Well-Formed XML
- 11.3 Viewing Our Raw (Unstyled) XML Data in a Browser
- 11.4 Validating Our XML Data with a Document Type Definition
- 11.5 Styling Our XML Data with CSS
- 11.6 Isolating Our XML Tag Sets within XML Namespaces
- 11.7 Transforming Our XML Data with XSL, XSLT, and XPath
- Summary
- Quick Questions to Test Your Basic Knowledge
- Short Exercises to Improve Your Basic Understanding
- Exercises on the Parallel Project
- What Else You May Want or Need to Know
- References
-
12 Collecting, Analyzing, and Using Visitor Data
- 12.1 Web-Server Access Logs
- 12.2 Analysis of Web-Server Access Logs
- 12.3 Caution in Interpreting Web-Server Access Logs
- Summary
- Quick Questions to Test Your Basic Knowledge
- Short Exercises to Improve Your Basic Understanding
- Exercises on the Parallel Project
- What Else You Might Want or Need to Know
- References
- Index
Product information
- Title: Web Programming and Internet Technologies: An E-Commerce Approach, 2nd Edition
- Author(s):
- Release date: September 2016
- Publisher(s): Jones & Bartlett Learning
- ISBN: 9781284070699
You might also like
book
Web Programming and Internet Technologies: An E-Commerce Approach
Today's Web programmers are required to understand and use the tools and skills for both client …
book
Modern Web Development: Understanding domains, technologies, and user experience
Master powerful new approaches to web architecture, design, and user experience This book presents a pragmatic, …
book
Web Technology: Theory and Practice
Web Technology: Theory and Practice introduces the keyset technologies that are currently used to create applications …
book
HTML5 and JavaScript Projects: Build on your Basic Knowledge of HTML5 and JavaScript to Create Substantial HTML5 Applications
Build on your basic knowledge of HTML5 and JavaScript to create substantial HTML5 applications. Through the …