This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
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,
jQuery in Action, 3rd edition
subject: js site search
It's not a secret anymore!