Problem solve Get help with specific problems with your technologies, process and projects.

XML vs. JavaScript to fill in dropdown on form

A developer is using a JavaScript function to automatically fill in a form's dropdown, but wants to know if there's a more efficient method of doing it through XML.

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?
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:

Dig Deeper on JavaScript for Lotus Notes Domino

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.




  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...