Docsity

Browser-Server Interaction: Static and Dynamic Document Exchange - Prof. Christopher W. Zo, Study notes of Business Management and Analysis

Partial preview of the text

Download Browser-Server Interaction: Static and Dynamic Document Exchange - Prof. Christopher W. Zo and more Study notes Business Management and Analysis in PDF only on Docsity!

Lecture 1: Browser-Server interaction

Today’s Lecture:

  • (^) Browser-Server Interaction:
    • (^) Static document exchange
      • (^) html / xhtml
    • (^) Dynamic document exchange
      • (^) scripting languages / CGI / .Net
      • (^) html forms

Browser-Server Interaction:

Simple, Static Document Exchange

Simple, static document exchange

W3C: World Wide Web Consortium (www.w3c.org)

  • defines html / web standards
  • most recent html recommendation = html 4.
  • old tags being phased out, new tags being phased in
  • beware formatting differences between different browsers… Current related W3C recommendation: XHTML 1. 0 - reformulation of html in XML (Extensible Markup Language)

XHTML 1.0 specification

Differences from HTML 4.01:

  • (^) Documents must be well-formed:
    • (^) Element and attribute names must be in lower case
    • (^) Attribute values must always be quoted
    • (^) Attribute-value pairs must be written in full
    • (^) For non-empty elements, end tags are required
    • (^) Empty elements must either have an end tag, or the start tag must end with />
  • (^) XHTML 1.0 documents MUST use the id attribute

Browser-Server Interaction:

Dynamic Document Exchange

CGI

C ommon G ateway I nterface

Dynamic Document Exchange

  • (^) CGI scripts/programs: run a program, rather than just display a simple document ex: unix scripts, Perl, VBScript, JavaScript, VB.Net - generate an html / xhtml document on the fly
  • (^) Client-side vs. Server-side
    • (^) run on the client machine vs. run on the server
    • (^) we will discuss both, but will concentrate on server- side functionality in this class

Dynamic Document Exchange

HTML Form Tags:

...

- Can be a textbox, radio button,

checkbox, submit button

… - Drop-down box

- the items in the Drop-down box