WordNet JScript Examples

<%@ LANGUAGE="JSCRIPT" %>
...
<%
var thisword = Request.Form("word")
var thislinktype=Request.Form("linktype");
%>

Search  for <%=thisword%>
...
<%
// Create
thiswn = Server.CreateObject("Wordnet.Wordnet.2");
if (Request.Form( "recurse"))
   thislinktype=-thislinktype;
   
thiswn.target = thisword;
thiswn.pos = Request.Form( "pos" );
thiswn.linktype = thislinktype;
thiswn.sensenum = Request.Form( "sensenum" );
var thisoutput=thiswn.find;
%>

...
Output is <%=thisoutput%>
<%@ LANGUAGE="JSCRIPT" %>
...
<%
var thisword = Request.Form("word")
var thislinktype=Request.Form("linktype");
%>
Search  for <%=thisword%>
...
<%
// Create
thiswn = Server.CreateObject("Wordnet.Wordnet.2");
if (Request.Form( "recurse"))
    thislinktype=-thislinktype;
   
var thisoutput = thiswn.findtheinfo( thisword, Request.Form("pos"), thislinktype,
Request.Form("sensenum"));
%>
...
Output is
<%=thisoutput%>