function ChangeSubCategories(obj){
<cfloop query="GetCategories">
<cfstoredproc
procedure="WEBGetSubCategories"
datasource="#request.dsn#"
username="#request.username#"
password="#request.password#">
<cfprocparam type="In"
cfsqltype="CF_SQL_VARCHAR" dbvarname="@FK_tblCategories"
value="#GetCategories.FK_tblCategories#" maxlength="20" null="No">
<cfprocresult
name="GetSubCategories">
</cfstoredproc>
if(obj.value ==
"<cfoutput>#GetCategories.FK_tblCategories#</cfoutput>"){
document.form1.tblSubCategories_name.options.length =
<cfoutput>#GetSubCategories.RecordCount#</cfoutput>;
<cfoutput query="GetSubCategories">
<cfset i =
GetSubCategories.CurrentRow - 1>
document.form1.tblSubCategories_name.options[#i#].text =
"#GetSubCategories.Name#";
document.form1.tblSubCategories_name.options[#i#].value =
"#GetSubCategories.Name#";
</cfoutput>
}
</cfloop>
if(obj.value == ""){
document.form1.tblSubCategories_name.options.length
= 1;
document.form1.tblSubCategories_name.options[0].text
= "Choose a category first";
document.form1.tblSubCategories_name.options[0].value = "";
}
}
Anthony Petruzzi
Webmaster
954-321-4703
[EMAIL PROTECTED]
http://www.sheriff.org
-----Original Message-----
From: Donnie Bachan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 16, 2002 11:47 AM
To: CF-Talk
Subject: Re: dynamic select boxes in netscape don't work
what exactly is the problem you are having? I have done this in javascript
before and it works in netscape. How are you going about creating the
options for the second box? If you could post your code I may be able to
offer more help.
Best Regards,
Donnie Bachan
Phone: (718) 217-2883
ICQ#: 28006783
"Nitendo Vinces - By Striving You Shall Conquer"
======================================================================
The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you received
this in error, please contact the sender and delete the material from any
computer.
______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for
dependable ColdFusion Hosting.
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