Skip to Main Content
JavaScript Application Cookbook
book

JavaScript Application Cookbook

by Jerry Bradenbaugh
October 1999
Intermediate to advanced content levelIntermediate to advanced
480 pages
14h 47m
English
O'Reilly Media, Inc.
Content preview from JavaScript Application Cookbook

Chapter 4. The Multiple Search Engine Interface

Application FeaturesJavaScript Techniques
• Frames-Based Multiple Search Engine• Reusing Your Code
• Single-Click Searching• Foregoing OO
• Simple Search Engine Management• Math Versus Memory
 • Using escape()

Multiple search engine apps written in JavaScript abound on the Net. This kind of application is one of the coolest and potentially easiest things to develop in JavaScript. And why not? You can capitalize on OPD (other people’s data) to make your web site a portal to the network universe. This is my version. There are certainly more robust applications out there, but this one gives you significant advantages fairly easily. Figure 4.1 shows the first look as you open ch04/index.htmlin your browser.

Using this application isn’t complicated. The user enters query text in the bottom left corner, then uses the arrows to advance through a layer-based menu of available search engines. All the user needs to do is click on the button of the search engine he or she wants to send the query text to, and the results show up in the center frame. I searched the Image Surfer database for the term “andromeda” and received the results shown in Figure 4.2.

The multiple search engine interface

Figure 4-1. The multiple search engine interface

Image Surfer returns pictures in its database associated with the term “andromeda”

Figure 4-2. Image ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

JavaScript Application Design

JavaScript Application Design

Nicolas Bevacqua
JavaScript Cookbook

JavaScript Cookbook

Shelley Powers

Publisher Resources

ISBN: 1565925777Supplemental ContentOtherErrata Page