Populating a menu using the XMLHTTP request object
Updated 4/Jan/2008

This sample demonstrates how to populate a menu created with DHTML Menu Builder <developer's edition> from information retrieved through the XMLHTTP request object.
Although most of the modern browsers support this object, this sample (for reasons that escape the purposes of the sample) will only work under Internet Explorer 6.0 and most Mozilla-based browsers (such as FireFox).

To use the search feature simply move the mouse over the text box, click it and start typing your query.
The search will begin as soon as you stop typing. Then, when Google reponse is received the menu will be populated with the search results. At this point you can either modify your query, select one of the results with your mouse or move the mouse away to close the menu.

The way the search results are retrieved from Google is very similar to Google's Suggest service.
For more information about the XMLHTTP object and the way Google's Suggest works I highly recommend you that you visit Chris Justus's blog.

Then, when Google returns the search results we simply use standard DynAPI functions from DHTML Menu Builder <developers' edition> to populate the Search menu.

More information and a detailed tutorial about this sample will be provided as soon as DHTML Menu Builder 4.9.016 is released.

History

Version 0.3 (4/Jan/2008)

Version 0.2 (18/Mar/2005)

Version 0.1 (15/Mar/2005)

First public release