|
Form Validation Plus This is a form validation script in Javscript which goes beyond most other such scripts. Besides checking for required variables such as a name and E-mail address, it creates an HTML page with the message submitted so the user has an opportunity to confirm the message contents. If the user wants to make changes, a form with the automatically created incorporating the information entered previously, so the user does not have to start over.
This can also be achieved through a CGI script as in this example that I set up. But the Javscript version is more efficient because it avoids multiple server transactions: it is generated locally on the user's computer.
|
|
Random Start Page How often have you discovered a very useful Web site when you were not really looking for it. For those who believe in the power of serendipitous discovery, here is a page which I created to randomly take you to different Web sites at intervals that you can control. It also allows you to customize the title of the page, in case you want to set it up as your browser's start page (as I have). Uses Javascript and Cookies. Presently, the random URLs are generated from Yahoo's random link. I am not responsible for the Error 404s you may encounter!
|
|
Platform Check This is a PERL script to check the platform of the user's computer and bounce them to a different URL correspondingly. I wrote this in the context of a Help section I have developed on using Netscape: there are seperate versions for Mac and PC and I use this script to transparently take users to the appropriate version. This is a general purpose script and is called by a URL of the form : http://server.name/path_to_cgi/steve_or_bill?mac=mac_url&win=pc_url&other=catch_all_url
|
|
Information Request Form This is a PERL script I am working on for the Department of Industrial Design. It allows users to request information about the academic programs in the Department. Besides error checking (for example, making sure required address fields are filled in), it provides an opprtunity for users to recheck nad confirm information provided and a means of updating information without having to return to the original form: it creates a form with user responses already filled in.
|
|
All In One Search Form This is a Javscript based form which allows users to run searches on multiple search engines simaltaneously. The nature of the Web is such that it is usually necessary to try more than one search engine before getting meaningful results. This form lets users enter keywords in a single text box, select one or more search engines and hit hit Run Searches!. Multiple windows open each with the search results from one seach engine.
|
|
Redirect Script This is a script I developed for the CD-ROM group at the Eisenhower National Clearinghouse (ENC). The objective is to seamlessly take care of the dreaded Error 404 which is a particularly critcal problem when providing links to a Web site off a CD-ROM. The CD-ROM links query a server based script which checks the request against a file generated from a Filemaker URL tracking database: if a URL has changed, it bounces the user to the correct location. It also records information such as the browser being used in order to check a hypothesis that some CD-ROM users may not be using the specially customized version of the browser supplied to them.
Version 2: Rewritten in C to speed up response time. Also includes some refinements such as generating Email to me in case of errors and logging accesses from within ENC seperately.
- Check out this example. This form actually requests the URL: http://www.enc.org/online/ENC2370/2370.html which is incorrect but your browser will take you to the correct URL: http://www.enc.org/reform/journals/ENC2370/2370.htm.
- View the C source code of the script (redirect.c, cgi.h & cgi.c) and the source HTML of the form.
Version 1: First written in PERL
|
|
Reading Screen and System Parameters A further development of the Redirect Script described earlier. I added more functionality in an attempt to get answers to an important question that influences the design of the interface: what size of monitor does the user's computer have? A Javascript in the request form reads this information along with system specifications (Operating Sytem, Version, Processor) and writes it into hidden variables in the form. When the form is submitted this information is logged and the user is bounced to the requested location.
|