loco2.tcl?true_80_fablewhere loco2.tcl is the name of the CGI script. The words in file fable (`Fables de la Fontaine') have been indexed, and the eightieth word has been selected (the word naissiez, see Figure 1).
top.other('na%eetre&FinV')Only the lemmatization is used, naître FinV (%ee is the URI encoding for î), the derivation of naissiez is not relevant to further processing. Using this argument, the function top.other() then sends two more request to the server, one for dictionary look-up, and one for example look-up, directing the output to the appropriate frames, i.e., the client-side "Dictionary Entry" and "Examples" frames. See Figure 3.
Figure 3: The flow of information between the major components of the Glosser-Web prototype.
If both useLoco and useDict are false but useExp is true, then the example frame is used to temporarily hold the invisible output of the morphological analysis.
var GlosserTwo = true; if (!top.GlosserTwo) setTimeout("top.location=location",2000);First, a boolean variable is set to true in the current document, then its presence is tested in the top document. If it isn't there, the location at the top is set to the location of the Glosser-Web frameset. A time-out of two seconds is used, allowing the user later to back-out to previous web locations, without getting stuck at the current location.
top.useLoco=trueThe reason for this is as follows: when you first enter Glosser-Web all variables need to be initialised. If variables were set from within the frameset, all variables would be reset whenever you return to the site from another site, even if you used your browser's Back button. In the current set-up, all variables will be reinitialised to the proper values reflecting the current content of the frames.