Greg's Place

Just Soup Webblog

Sametz Blackstone Associates


DCE Intranet

Cyber Ed

Continuing Ed


Other Places of Interest

Scripting News

Frontier

Builder.com

Webmonkey

Lynda Weinman's Site

Esther Dyson's Site

Get Word Definition FCGI

About Fat Pages

This cgi script takes in the information from the text input form. It then calls suites.netDictionary.lookup on that word. The html is then formatted and returned in a separate window. That's all there is to it.

on getWordDef (adrParams) {
	local {
		word = "Test";
		client;
		definition = "";
		html = ""};
	on build (word, definition) {
		html = "<html>:<head>:\r<title>:Defintions of: "+word+"</title>:\r";
		html = html + "</head>:<body bgcolor=\"#FFFFCC\">:\r";
		html = html + "<h3>:Definitions of: "+word+"</h3>:\r";
		html = html + "<blockquote>:\r"+definition+"\r<p>:<hr>:\r";
		html = html + "Thanks to <a href=\"http://www.cogsci.princeton.";
		html = html + "edu/cgi-bin/webwn\" target=\"_new\">:WordNet</a>:";
		html = html + " for this service\r</blockquote>:\r</body>:</html>:"};
	if defined (adrParams^.pathArgs) {
		word = string.nthField (adrParams^.pathArgs, "=", 2)};
	definition = suites.netDictionary.lookup(word);
	build (word, definition);
	return (html)}

<-- The Definition Search Function | Modified suites.netDictionary -->

This page was originally posted on 2/23/99; 10:53:56 PM. At the moment I am using Macintosh OS to work on this website. Site Scripted with Frontier. Page last updated: 7/19/00; 7:57:52 PM. Contact: Gregory_Rushton@uml.edu