> These days your better off using AJAX to achieve the result of > multiple related select lists. > Its going to be a lot faster if your dealing with large amounts > of data not to mention reducing loading time.
Ehhhh... I dont think I'd totally agree with that. One load versus a load every time you make a selection. If it's all client side and in js arrays already, the changes would be much faster than an asynchronous call to another process to get the info. This all, of course, depends on how MUCH data we are talking about though. You don't want to overload a JS array on a windows 95 machine running IE 4.5 and 64 megs of ram ;-) As for the question. You can roll your own selects related or you could modify the onchange event of the twoselectsrelated's generated select with something like... document.forms['myformname'].myselctname.setAttribute('oncchange', 'callAFunciton()'); I'm sure I typoed something, just look up the setAttribute() method. You would want to call the above code AFTER the two selects have been rendered to the page. setAttributes DOES work in IE as well as FF regardless of what you read. There are just some attributes that it doesnt work very well with. I havent found a definitive list of them anywhere, you'll just have to try it and see. Personally, id write my own from scratch. You should be able to find enough code on Google to piece something together. ..:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -----Original Message----- From: Snake [mailto:[EMAIL PROTECTED] Sent: Thursday, December 07, 2006 2:00 PM To: CF-Talk Subject: RE: Anyone familiar witht the CF_TwoSelectsRelated custom tag? These days your better off using AJAX to achieve the result of multiple related select lists. Its going to be a lot faster if your dealing with large amounts of data not to mention reducing loading time. Russ -----Original Message----- From: Doug Brown [mailto:[EMAIL PROTECTED] Sent: 07 December 2006 18:05 To: CF-Talk Subject: Re: Anyone familiar witht the CF_TwoSelectsRelated custom tag? Maybe...and I cannot remember everything about it. In your twoSelects custom tag you should have the select that you want to get the information from. In that select try.. <select language="javascript" name="select1" onChange="text.value = select1.value"> <option value="test1">Test1</option> <option value="test2">Test2</option> <option value="test3">Test3</option> <option value="test4">Test4</option> </select> <input type="text" name="text"> ----- Original Message ----- From: "Che Vilnonis" <[EMAIL PROTECTED]> To: "CF-Talk" <cf-talk@houseoffusion.com> Sent: Thursday, December 07, 2006 10:30 AM Subject: Anyone familiar witht the CF_TwoSelectsRelated custom tag? > I ask because I would like to populate a text box named "Genus" with the > value that is selected from the custom tag value named "SelectedCatLevel2". > Does anyone know how I might do this? Traditional JS calls don't seem to > work. > > Thanks, Che. > > <CF_TwoSelectsRelated > QUERY="TwoSelects" > NAME1="SelectedCatLevel2" > NAME2="SelectedCatLevel3" > DISPLAY1="CL2Title" > DISPLAY2="CL3Title" > VALUE1="CL2ID" > VALUE2="CL3ID" > SIZE1="1" > SIZE2="1" > EMPTYTEXT1="Please Choose" > MESSAGE1="You must select a Level 2 Category." > HTMLBETWEEN=" CATLEVEL 3: " > AUTOSELECTFIRST="No" > FORMNAME="FormX"> > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:263207 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4