innerHTML should be (in a perfect world) replaced by the dom methods, but is still the fastest method to draw element on the browser canvas.
It has it's opposites however when drawing IMG elements, or any element containing images. You might cause a denial of service attack on the browser, but overall it is still the best method in terms of performance. Micha Schopman Software Engineer Modern Media, Databankweg 12 M, 3821 AL Amersfoort Tel 033-4535377, Fax 033-4535388 KvK Amersfoort 39081679, Rabo 39.48.05.380 ------------------------------------------------------------------------ ------------------------------------------------------------------------ ----- Modern Media, Making You Interact Smarter. Onze oplossingen verbeteren de interactie met uw doelgroep. Wilt u meer omzet, lagere kosten of een beter service niveau? Voor meer informatie zie www.modernmedia.nl ------------------------------------------------------------------------ ------------------------------------------------------------------------ ----- -----Original Message----- From: Dave Merrill [mailto:[EMAIL PROTECTED] Sent: donderdag 10 februari 2005 15:12 To: CF-Talk Subject: RE: how to display data in two select boxes where the second one's display depends on the first one The fastest js-based method that I'm aware of is to have cf generate the html for each set of options as js variables, then just set select2.innerHTML to the one you want to use. Particularly efficient if there are a bunch of options to set, since you don't have to iterate through each one every time. I know that the innerHTML attribute isn't html401 spec, but my understanding (http://www.quirksmode.org/dom/w3c_html.html) is that it is supported in the major browsers, and I've verified that it does work w current versions of IE, Firefox and Opera on win2k. Caveat emptor though: This particular code was built for IE specifically, and I haven't done any cross-browser testing of it. Dave Merrill ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:194048 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

