Basic example - home page

This is a simple example of using a "two frame" template to implement a search functionality into your html based application.

Initially, a folder with this example consists of two html files only (default.htm and page2.htm). Let's assume, that this is your site, for which you want to create a search page.

Just open this example in JavaScript SiteSearch Generator, to see how options are defined for such a project. Then click the "Generate" button and preview the resulting search page.

Here are the steps, performed during the generation:

  1. All the files of your selected template have been copied into the site folder (a $DEFAULT macro has been replaced by the links to the main file - default.htm)
  2. Files from the folder have been parsed and the search index data file (js\jsg_searchindex.js) has been created for them

And as you can see, a simple (but functional) form of a search page for this site is ready to use. You can modify it, then remove the template from this sample project, and from this time you can use the project to generate the actual index for this site.

» See the second page of this example