For some reason this question keeps popping up in here ..... There are two tags on the Developer Exchange that accomplish this, CF_TwoSelectsRelated tag by Nate Weiss: http://devex.macromedia.com/developer/gallery/info.cfm?ID=CA347197-2830-11D4 -AA9700508B94F380&method=Full
and CF_JSelect by Josh Black: http://devex.macromedia.com/developer/gallery/info.cfm?ID=3945C8DD-EF34-11D5 -83F800508B94F85A&method=Full. @llan -----Original Message----- From: Carlo [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 12:20 PM To: CF-Talk Subject: Javascript double select without refresh Hi I have a requirement for a double select box that doesn't refresh or reload the page in order to populate the second box. The user would have already typed in information in other text fields, and therefore the screen must not reload. I have a current double select box that refreshes on submit - does anyone know how to make this work without refreshing the screen? My current code looks like this: <script language="JavaScript1.2"> <!-- function SubmitIntra() { document.jumpform.action = 'index.cfm?pageid=417'; document.jumpform.submit(); } //--> </script> <cfform name="jumpform"> <cfif not isdefined("thegroupid")> <input type="hidden" name="thegroupid" value="#form.groups#"> </cfif> <cfselect name="groups" onchange="SubmitIntra()"> <option value="" selected>--- Select a group to add page admin rights to --- <cfoutput query="getgroups"> <cfif form.groups eq groupid> <cfset form.thegroupid = groupid> <option value="#groupid#" selected>#groupname# <cfelse> <option value="#groupid#">#groupname# </cfif> </cfoutput> </cfselect> </cfform> <cfif isdefined("thegroupid")> <cfquery name="used" datasource="#dsn#"> SELECT groupid, pageid FROM pmn_group_page_edit WHERE groupid = '#thegroupid#' </cfquery> and populate second box... </cfif> FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists ______________________________________________________________________ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

