File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes js site search Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "js site search" Watch "js site search" New topic

js site search

Webman uk

Joined: Dec 07, 2004
Posts: 1
Hi All,

I have been asked by a client to provide an internal javascript site search facility to allow users to search for video clips contained in a folder on the server. This will have to work client side as the site will be distributed on CD_ROm as well as online.

Heres the scenario:

1. A user visits the search page and is offered six drop-down boxes containing pre-defined search 'keywords'

2. The user selects the relevant keywords (any brop-downs not selected default to an "all" value) and submits the form.

3. The js code searches a pre-defined selection of files/pages for the selected search criteria (1 from each of the 6 drop-downs) and displays the search results with hyperlinks.

I have found js searches that use a keyword entered into a text box but as yet not one that uses drop-down boxes.

Not a problem in PHP but in client side js...HELP!!!

Thanks in advace :-)
Ben Wood
Ranch Hand

Joined: Aug 14, 2001
Posts: 342

So you develop web content for clients, yet you do not know the difference between Java and JavaScript (this is a Java forum!)

...anyway, if you have an example of using a free-text keyword search in JavaScript why can't you use a drop-down box with the same script and tweak it a little to take the value for the keyword from the drop-down instead of a text field?

SCJP 1.4,
I agree. Here's the link:
subject: js site search
It's not a secret anymore!