T
Tony Cheroke
Someone was looking for a way to add a search engine to their
website w/o installing a database. This program does it with a
javascript database file:
<http://www.iuliu.as.ro/projects/javascript/search.html>
direct download:
<http://www.iuliu.as.ro/projects/javascript/jsind.zip> ~81KB
<quote>
Description:
On servers which don't admit server-side scripts (PHP/ASP/etc..) if
you wish to add a search engine you have 2 options:
-To use a dedicated external engine.
-Or to use a script that runs on client side.
The second option has the advantage that you can use the search
engine offline (on html help, tutorials, etc..).
JavaScripts cannot search through directories on the server, so you
must make a file which contains a database with the words you like
to be searched for.
I made a console program (JavaScript Indexer) which scans a
specified directory and all subdirectories for "*.htm*" and "*.txt"
files and automatically indexes the web site, creating a database on
a js file.
It writes the search function into the same file. So all you have to
do is to add few lines to the web page and you have your search
engine running.
<snipped a lot from page>
....
License:
This program is FREEWARE.
</quote>
This could be used to create a search for books by creating an HTML
file with just the information required (Author, Title, Price, etc.)
and using this program to index just that one HTML file, rather than
an entire website.
HTH,
Tony
website w/o installing a database. This program does it with a
javascript database file:
<http://www.iuliu.as.ro/projects/javascript/search.html>
direct download:
<http://www.iuliu.as.ro/projects/javascript/jsind.zip> ~81KB
<quote>
Description:
On servers which don't admit server-side scripts (PHP/ASP/etc..) if
you wish to add a search engine you have 2 options:
-To use a dedicated external engine.
-Or to use a script that runs on client side.
The second option has the advantage that you can use the search
engine offline (on html help, tutorials, etc..).
JavaScripts cannot search through directories on the server, so you
must make a file which contains a database with the words you like
to be searched for.
I made a console program (JavaScript Indexer) which scans a
specified directory and all subdirectories for "*.htm*" and "*.txt"
files and automatically indexes the web site, creating a database on
a js file.
It writes the search function into the same file. So all you have to
do is to add few lines to the web page and you have your search
engine running.
<snipped a lot from page>
....
License:
This program is FREEWARE.
</quote>
This could be used to create a search for books by creating an HTML
file with just the information required (Author, Title, Price, etc.)
and using this program to index just that one HTML file, rather than
an entire website.
HTH,
Tony