O'Reilly logo

Practical Web Technologies by V. Lau, P. K. Yuen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

10.5. A page to match new friends

Match finding is another popular application on the Web. For either a Web page to match a handful of people in the Internet or running a dedicated dating agency, you will need a database-type finding and matching technique. For specialized commercial corporations, large databases and powerful search engines are employed. Of course this also includes a charging mechanism.

For demonstration purposes, the example in this section contains very few data and was generated by ourselves. You can add more data if you want. No formal search engine is used. We first generate some data with a database-type format and then perform some basic searching and matching techniques with the getElementsByName() function.

The main ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required