Web Me Wireless: Web Clipping and PQAs | 4
Sample Code
An Introduction to Web Clipping and PQAs
Since we're shooting for small and streamlined, the code is often minimal. Let's look at an example of a pre-compilation PQA:
<html>
<head>
<title>OurExample Store Finder</title>
<meta name="PalmComputingPlatform" content="true">
<meta name="palmlauncherrevision" content="1.0">
</head>
<body>
<h1 align=center>Store Finder by City</h1>
<p>Enter a city name to find the address of our nearest location.</p>
<br><br>
<form method="post" action="https://www.yourwebserver.com/cgi-bin/storefinder.cgi">
<b>City Name: </b> <input type="text" name="code" value="Detroit" size="7">
<br> <br> <br> <br>
<input type="submit" value="Find"> <input type="reset" value="Clear">
</form>
</body>
</html>
Simple enough - and compact. After compiling, our test PQA is only 329 bytes large, and will look something like this:
Store Finder by City
Enter a city name to find the address of our nearest location.
The Web Clipping that your server returns should be even more concise:
<html>
<head>
<title>OurExample Store Finder Results</title>
<meta name="PalmComputingPlatform" content="true">
<meta name="HistoryListText" content="Detroit Location &date &time">
</head>
<body>
<center><b>City Search Results</b></center>
<br>Metro Detroit Location of OurExample Inc.
<br>1234 Old Woodward, Birmingham, MI 48125
<br>Phone: 810-555-1111
<br>Fax: 810-555-1112
</body>
</html>
Which will display results something like:
Metro Detroit Location of OurExample Inc.
1234 Old Woodward, Birmingham, MI 48125
Phone: 810-555-1111
Fax: 810-555-1112
Comments are welcome
Created: Aug. 26, 1999
Revised: Aug. 27, 1999
URL: https://webreference.com/dev/webclip/samplecode.html