By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,873 Members | 1,040 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,873 IT Pros & Developers. It's quick & easy.

How to Create a Site-Level Search Applet???

P: n/a
Can anyone point me to a good tutorial for creating a site-level
search applet? I am trying to create a virtual catalog of sorts, and
I would like to be able to search the catalog and have the results
displayed on the same page with one column text and an image of the
product. I've seen several tutorials that create site-level searches
that will bring back a search results page with options to choose
from. I am looking to create a search that does not bring back this
"results" page, but displays an image of the product instead. Given
the nature of the products, search results will only bring back one
specific item, and so, I would like to skip the "results" page
altogether. Any thoughts?

I thank you in advance for your consideration.
Jul 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"D. Lee Christopher" wrote:
Can anyone point me to a good tutorial for creating a site-level
search applet? I am trying to create a virtual catalog of sorts, and
I would like to be able to search the catalog and have the results
displayed on the same page with one column text and an image of the
product. I've seen several tutorials that create site-level searches
that will bring back a search results page with options to choose
from. I am looking to create a search that does not bring back this
"results" page, but displays an image of the product instead. Given
the nature of the products, search results will only bring back one
specific item, and so, I would like to skip the "results" page
altogether. Any thoughts?

I thank you in advance for your consideration.


First off, Java is not JavaScript, they are two different technologies.
However, I'll comment on your idea.

It would be icky. _Very_ _icky_.

For an applet to search your site, it would have to open, download to the
browser and parse every single file on your site. The important part of
that sequence is "download to the browser". Without /some/ sort of
server-side participation, the only way for an applet to check the
contents of files that reside on the server is to open them and download
every byte contained in the files. While this is certainly possible, it
would be _slow_.

You could possibly pre-index everything and put it in an applet, then the
applet would do all the work, but if you want to do that, you'd probably
be better off using JavaScript (which is different from Java applets),
putting the index in a separate database.js file as an array and then
just update that as necessary. You're bound to have better luck with
people supporting JavaScript then a Java applet.

Truly dynamic site searches which can tell you the information based on
the site's content /right now/ have to run on the server.

--
| Grant Wagner <gw*****@agricoreunited.com>

* Client-side Javascript and Netscape 4 DOM Reference available at:
*
http://devedge.netscape.com/library/...ce/frames.html

* Internet Explorer DOM Reference available at:
*
http://msdn.microsoft.com/workshop/a...ence_entry.asp

* Netscape 6/7 DOM Reference available at:
* http://www.mozilla.org/docs/dom/domref/
* Tips for upgrading JavaScript for Netscape 6/7 and Mozilla
* http://www.mozilla.org/docs/web-deve...upgrade_2.html
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.