FindinSite-CD: Search engine for CD/DVD   .
 
Powered by FindinSite-MS
. Home | Examples | Starting | Set up | Advanced | Languages | Purchasing | Email .
. .
  Same window | New window | Vertical frameset | Within frameset | Subsets | JavaScript control | No applet window | Field search

 

findinsite-cd word highlighting in a frameset using fisLight


This page shows FindinSite-CD running in the main pane of a frameset, with the fisLight Java applet running in the small bottom pane.  All results are displayed in this pane, with words highlighted if you are using Microsoft Internet Explorer 4+ for Windows and some other browsers.

Use this window layout if you don't like the FindinSite-CD popup window, or if you use frames anyway.

Main search page, with links to other examples

Sorry, your browser is not set up to run Java applets.
How to get a Java VM.

If using Internet Explorer, you may need to allow blocked active content using the Information Bar - see here.
Or better still... go to Tools+Internet Options+Advanced tab then tick "Allow active content from CDs" and/or "Allow active content to run in files".

FindinSite-CD Word Highlighting in a frameset using fisLight

This frameset arrangement
Main
(FindinSite-CD and highlighted results)
fisLight
fisLight is a Java applet that does word highlighting on FindinSite-CD's behalf.

When you use fisLight in a frameset, you can have almost any frameset arrangement you like, provided that fisLight is in a different pane to FindinSite-CD. fisLight itself is invisible and the fisLight pane can have zero width or height.

The following example frameset uses a narrow horizontal pane at the bottom of the window called "fisLight" and a main information display pane called "Main", as shown on the right. (The main pane need not show the FindinSite-CD search page initially.)

Here is a minimal web page that sets up this frameset:

<HTML>
<FRAMESET ROWS=*,50>
   <FRAME SRC=search.htm NAME="Main">         <!-- first frame -->
   <FRAME SRC=fislight.htm NAME="fisLight">   <!-- second frame -->
</FRAMESET>
</HTML>

Here is the minimal code that you must put in fislight.htm.
<HTML>
<HEAD>
   <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
</HEAD>
<BODY>
   <APPLET CODE=fisLight NAME=fisLight WIDTH=0 HEIGHT=0 ARCHIVE=fislite1.jar MAYSCRIPT>
   </APPLET>
</BODY>
</HTML>
You need to alter the standard FindinSite-CD search page for this new layout. The following basic FindinSite-CD page shows the changes highlighted in bold orange.
<HTML>
<HEAD>
   <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
   <TITLE>FindinSite-CD</TITLE>
</HEAD>
<BODY>
   <APPLET CODE=fisCD WIDTH=500 HEIGHT=300 NAME=fisCD ARCHIVE="fiscd.jar" MAYSCRIPT>
      <PARAM NAME=index1 VALUE="MySite.his">
      <PARAM NAME=rules VALUE="rulesen.txt">

      <PARAM NAME=target VALUE="Main">
      <PARAM NAME=highlight VALUE="frameset,1">

   </APPLET>
</BODY>
</HTML>
  • Set the target parameter to Main so that the FindinSite-CD output goes in the Main pane.
  • Set the highlight parameter to frameset,1
    The number is the frame number minus one. In this case, fisLight is in the second frame of the frameset, so put 2 minus 1 = 1 after frameset. The default frame number is zero, so the number can be omitted if fisLight is in the first frame of a frameset.
  All site Copyright © 1996-2013 PHD Computer Consultants Ltd, PHDCC   Privacy  

Last modified: 1 February 2013.