XML vs. JavaScript to fill in dropdown on form

XML vs. JavaScript to fill in dropdown on form

I have two dropdowns on a form. When I select a value in the first dropdown, the second dropdown should automatically get filled, based on the value of first dropdown. What is the best way to achieve this kind of functionality in JavaScript? I am current using the JS @dblookup function, but this solution is quite inefficient when the number of return values is large. Is there any way to get the data thru XML?

    Requires Free Membership to View

    Register today to access targeted resources from our editorial writers and independent industry experts focused on Lotus Domino, Notes, Workplace and other related technologies.

    By submitting your registration information to SearchDomino.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchDomino.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

An XML-based way of doing what you want is the modern way. AJAX (Asynchronous JavaScript Technology and XML) is the current label for the kind of technology you're looking for. Basically this method uses the built-in functionality of the browser to retrieve an XML page and then process it.

Unfortunately, I have no personal experience using AJAX. However, here is a good example.

Also, here are some links for learning more about AJAX:

This was first published in October 2005