CS 437/637 Database-Backed Web Sites and Web Services
Examples
Fall 2011
Dr. Wei Ding
JavaScript
- A simple JavaScript example
- Dialogs
- Variables
- Operators
- Functions
- Conditional Statements
- Looping
- Form Object
- Computing Loan payments with JavaScript
Another version with the JavaScript file (loan_calcuation.js) included:
Computing Loan payments with JavaScript
- Regular Expressions
- Form Data Validation
- Object referencing
-
onfocus
and onblur
events
- Dynamic styles
- onmousemove event
XHML
- XHTML 1.0 Strict Template: xhtml_template.html
XML
-
A simple XML example: note.xml
-
An XML document with an internal or
external DTD (note.dtd).
-
A raw XML file
Same file styles with an XSL stylesheet
The XSL stylesheet
-
XML parser
CSS
- Style Sheet Demo
CSS ZEN Garden: The Beauty in CSS
Design
- A simple CSS example
- External Style Sheets
(css_blueBoldH3.css, css_redItalicH2.css)
- Internal Style Sheets
- A simple CSS <span> example
- A simple CSS <div> example
- The class attribute
(paragraph.css)
- Style pseudo-classes
(pseudoClasses.css))
- CSS Lists
- CSS Backrounds
- CSS Text
- CSS Fonts
- CSS Borders, Margin, and Padding
- CSS Positioning
HTML
To find out the source code of HTML files, first let the browser display the page
you want to view, then simply click on the VIEW option of your browser toolbar
and then select SOURCE (for IE) or PAGE SOURCE (for Mozilla
Firefox).
- A simple bare-bone HTML document
- Basic HTML Tags
-
HTML Links
-
Set a link from document A to a specific
section in another document
-
Links to specific sections within the
current
document
-
Lists
-
Frames (html_toc.html,
html_frame1.html,
html_frame2.html,
html_frame3.html)
-
An Inline
Frame
-
Character
Entities
-
Tables
-
An HTML Form
© Wei Ding, 2011, all rights reserved. This document is made
available for use by the students of CS 437/637 at the
University of Massachusetts Boston. Copying, distribution or
other use of this document without express permission of the
author is forbidden. You may create links to pages in this web
site, but may not copy all or part of the text without
permission of the author.