i am assuming that you already know how to get the info from the db, as
that is far beyond the scope of this group. (if not, comp.lang.java.*
would be a good place to ask about that)
what you are talking about is using the XMLHTTPRequest object (commonly
known as ajax) it sounds like, then modifying the DOM to use the
returned info. ajax itself would require a long reply just to explain,
so i will refer you to
http://jibbering.com/2002/4/httprequest.html and
, easily the two best tutorials around. assuming you return a XML doc
with the info you need (simplest way), with each option wrapped in an
<option> tag, you would then do something to the effect of:
dropdown = document.getElementById('theDropDownListToModify') ;
opts = xmlhttpObj.returnedXML.getElementsByTagName('optio n');
for (i=0;i<opts.length;i++) {
dropdown.options[i] = new Option(opts[i].firstChild.data;
}
If that isn't clear (it is late) email me or whatever and i would be
glad to help more