• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 1. The Client-Side Search Engine

Chapter 1. The Client-Side Search Engine

Application FeaturesJavaScript Techniques
Efficient Client-Side Searching Using Delimited Strings to Store Multiple Records
Multiple Search Algorithms Nested for Loops
Sorted and Portioned Search Results Wise Use of document.write( )
Scalable to Thousands of Records Using the Ternary Operator for Iteration
Easily Coded for JavaScript 1.0 Compatibility


Every site could use a search engine, but why force your server to deal with all those queries? The Client-Side Search Engine allows users to search through your pages completely on the client side. Rather than sending queries to a database or application server, each user downloads the "database" within the requested web pages. This makeshift database is simply a JavaScript array. Each record is kept in one element of the array.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint