Professional Documents
Culture Documents
Web app.
Desktop app.
Graphics
Strong
Unlimited
User interaction
Strong
Unlimited
Network usage
High
Varies
Accessible from
Any computer
Where installed
Upgrade cost
Update servers
Update desktop
Backup servers
Backup desktop
Popularity
Increasing
Dominant
libraries written by
others
A realistic view
Structure of program
Wait for events
Find appropriate
method for handling the
event
Handle the event
Repeat
Often you just add new
Overview
Web documents
Server-side programming
Client-side programming
Web services
About forms
Forms are the traditional way for users to
<h3>Search form</h3>
<form method="get
action="http://www.googlesyndicatedsearch.com/u/univwisc">
<p>What are you looking for?
<input type="text" name="q" id="searchText" value="Your search terms..." />
<input type="hidden" name="hl" value="en" />
<input type="hidden" name="ie" value="ISO-8859-1" />
<input type="submit" id="searchButton" value="Search UW-Madison" />
</p></form>
Overview
Web documents
Server-side programming
Client-side programming
Web services
Server data
URL
Server code
Request
HTML file
Web
client
HTTP response
File
system
Server data
Server code
Request
URL
Web
client
.aspx file
codebehind
HTTP response
HTML snippets
File
system
Server data
Server code
Request
URL
Web
client
.aspx file
codebehind
HTTP response
Database
File
system
Overview
Web documents
Server-side programming
Client-side programming
Web services
What is JavaScript?
Interpreted, object-oriented programming language
<head>
<title>JavaScript Hello world!</title>
</head>
<body>
<script>
document.write("Hello world!");
</script>
</body>
Triggered when
Comments
onclick
onchange
onfocus
onsubmit
onmouseover
onmouseout
onmousedown
onmouseup
onkeydown
onkeypress
onkeyup
Key released
onload
Specific to forms
document
<html>
<head>
<body>
<title>
<h1>
A document
A web page
<p>
<i>
simple
paragraph
Overview
Web documents
Server-side programming
Client-side programming
Web services
decoding parameters/results
Encode responses
Encode requests (sometimes)
Describe the procedures (incl. arguments and results)