File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

js site search

 
Webman uk
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 342
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Webman,

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?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic