This sample demonstrates how you can use your own custom Ajax code to populate the WebDrillDown popup menus.
This is useful if you need to alter the built-in Ajax logic to match the requirements of your web applications.
In this sample the JavaScript callback method "cwddOnBeginRequest" is use to make an asynchronous call to our demo web service to fetch the data.
The "jQuery.ajax" method is used to simplify the call.
If successful, the WebDrillDown method "cwddProcessResponse" is called to process the returned data.
If unsuccessful, an error message is displayed to the user.
Note that in this case the "cwddProcessResponse" method is also called to complete the request and hide the popup menu.
In this sample the WebDrillDown is allowing you to select a datacenter server, organized by region, location and role.
Clicking the "Submit" button will display the full path for your selection below:
Click the "Reset" link to clear your selection.