This is a multi-part message in MIME format. ------NetAddressPart-00--=_dBMW7936S127218c95f Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi I have attached the HTML file if this is what U want I will send in th= e cfm code. regards Sanjeevi Aaron Starner <[EMAIL PROTECTED]> wrote: > I'd like to see a sample of this code. > = > Thanks. > = > Aaron > = > -----Original Message----- > From: s@njeevi [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, November 29, 2000 2:40 AM > To: CF-Server > Subject: Re: [Dynamic selection box] > = > = > Hi sorry I dont know if I have got U right correct me if I am wrong. > = > U mean have a selection box and another selection box that is dependent= on > this something like U have a list of countries and the list of states f= or > that > selected country so populate only the corresponding states for that cou= try > selected. > = > Is this ur requirement. > = > if that si so do mail me and I will pass U the code. > it is more of javascripot driven from the values from the databse. > so it is fast > bye > S@njeevi > = > "Consultant" <[EMAIL PROTECTED]> wrote: > > = > > Hi, > > = > > I couldn't recall which issue of the CF journal teaches us how to use= > Hidden > > frames to dynamically populate > > select options, anyone out there care to share the codes? > > = > > :) > > = > > = > > regards, > > = > > repins > > = > > > -------------------------------------------------------------------------= --- > -- > > To unsubscribe, send a message to [EMAIL PROTECTED]= with > 'unsubscribe' in the body or visit the list page at www.houseoffusion.c= om > = > = > ____________________________________________________________________ > Get free email and a permanent address at http://www.netaddress.com/?N=3D= 1 > -------------------------------------------------------------------------= --- > -- > To unsubscribe, send a message to [EMAIL PROTECTED] w= ith > 'unsubscribe' in the body or visit the list page at www.houseoffusion.c= om > -------------------------------------------------------------------------= ----- > To unsubscribe, send a message to [EMAIL PROTECTED] w= ith 'unsubscribe' in the body or visit the list page at www.houseoffusion.com= ____________________________________________________________________ Get free email and a permanent address at http://www.netaddress.com/?N=3D= 1 ------NetAddressPart-00--=_dBMW7936S127218c95f Content-Type: text/html; name="population.htm" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="population.htm" <!--- The whole page is loaded & process before displaying (instead of incremental) ---> <!--- page expires imediatrly to prevent the page form caching---> <script language="javascript"> function populate() { var temp3=0; var i = 0; var temp = 3 cnt = new Array(temp); cnt[i] = new Array(); cnt[i][0] = 1; cnt[i][1] = 3; i = i + 1; cnt[i] = new Array(); cnt[i][0] = 2; cnt[i][1] = 3; i = i + 1; cnt[i] = new Array(); cnt[i][0] = 3; cnt[i][1] = 4; i = i + 1; var i = 0; temp2 = 10 activity_supplier = new Array(temp2); activity_supplier[i] = new Array(); activity_supplier[i][0] = 3; activity_supplier[i][1] = 45; activity_supplier[i][2] = 'Brighton' ; i = i + 1; activity_supplier[i] = new Array(); activity_supplier[i][0] = 1; activity_supplier[i][1] = 41; activity_supplier[i][2] = 'karnataka' ; i = i + 1; activity_supplier[i] = new Array(); activity_supplier[i][0] = 3; activity_supplier[i][1] = 47; activity_supplier[i][2] = 'some other state name in UK' ; i = i + 1; activity_supplier[i] = new Array(); activity_supplier[i][0] = 3; activity_supplier[i][1] = 44; activity_supplier[i][2] = 'yet another one in UK' ; i = i + 1; activity_supplier[i] = new Array(); activity_supplier[i][0] = 1; activity_supplier[i][1] = 42; activity_supplier[i][2] = 'Tamil Nadu' ; i = i + 1; activity_supplier[i] = new Array(); activity_supplier[i][0] = 3; activity_supplier[i][1] = 46; activity_supplier[i][2] = 'London' ; i = i + 1; activity_supplier[i] = new Array(); activity_supplier[i][0] = 1; activity_supplier[i][1] = 43; activity_supplier[i][2] = 'maharashtra' ; i = i + 1; activity_supplier[i] = new Array(); activity_supplier[i][0] = 2; activity_supplier[i][1] = 48; activity_supplier[i][2] = 'illinois' ; i = i + 1; activity_supplier[i] = new Array(); activity_supplier[i][0] = 2; activity_supplier[i][1] = 50; activity_supplier[i][2] = 'Florida' ; i = i + 1; activity_supplier[i] = new Array(); activity_supplier[i][0] = 2; activity_supplier[i][1] = 49; activity_supplier[i][2] = 'San fransisco' ; i = i + 1; temp1 = document.supplieralloc.sel_activity.options[ document.supplieralloc.sel_activity.options.selectedIndex].value; if (temp1 != "") { for ( i=0;i< temp;i++) { if (temp1 == cnt[i][0]) { temp3 = cnt[i][1]; break; } } document.supplieralloc.sel_activitycode.length = 0; document.supplieralloc.sel_activitycode.length = temp3 + 1; var j = 0; document.supplieralloc.sel_activitycode.options[j].value = ""; // document.supplieralloc.sel_activitycode.options[j].text = " "; document.supplieralloc.sel_activitycode.options[j].text = '- Select -'+" "+" "+" "+" "+" "+" "+" "+" "+" "+" "+" "+" "+" "+" "+" "+" "+" "+" "+" "+" "+" "; j++; for ( i=0;i<temp2;i++) { if (temp1 == activity_supplier[i][0]) { document.supplieralloc.sel_activitycode.options[j].value = activity_supplier[i][1]; document.supplieralloc.sel_activitycode.options[j].text = activity_supplier[i][2]; j++; } } document.supplieralloc.sel_activitycode.options[0].selected = true; } else { var j = 0; document.supplieralloc.sel_activitycode.length = 0; document.supplieralloc.sel_activitycode.length = 1; document.supplieralloc.sel_activitycode.options[j].value = ""; document.supplieralloc.sel_activitycode.options[j].text = " "+" "+" "+" "+" "+" "+" "+" "+" "+" "+" "+" "+" "+" "+" "+" "+" "+" "+" "+" "+" "+" "+" "+" "+" "+" "+" "+" "+" "+" "+" "+" "+" "+" "+" "+" "+" "+" "; document.supplieralloc.sel_activitycode.options[0].selected = true; } } </script> <style type="text/css"> <!-- body { background-attachment: fixed; background-image: url(../images/IconBkgd/supplier.gif); background-repeat: no-repeat; background-position: center center} --> </style> <body onload="populate()" background="../images/IconBkgd/supplier.gif" bgproperties="fixed" > <form name="supplieralloc" action="supplieralloc_inter.asp" method="post"> <table border="1"> <tr> <td><font face=Arial, Helvetica, sans-serif size=2 >COUNTRY</font></td> <td> <select name="sel_activity" onchange="populate()"> <option value=0>-select one-<option value=1 selected >india<option value=2>usa<option value=3>uk </select> </td> </tr> <tr> <td><font face=Arial, Helvetica, sans-serif size=2 >STATE</font></td> <td> <select name="sel_activitycode"> <option value="0">-select one - <option value=45> Cement <option value=41> Engineer <option value=47> iron rods <option value=44> Sand <option value=42> Sub-Engineer <option value=46> white sand <option value=43selected>Contractor <option value=48>crane <option value=50>Driller <option value=49>roller </select> </td> </tr> <tr> <td align="center" colspan="2"><input type="submit" name="submit" value="SUBMIT"> <input type="reset" name="reset" value="RESET"> <input type="submit" name="submit" value="DELETE"></td> </tr> <input type="hidden" name="action" value="UPDATE"> <input type="hidden" name="old_code" value="43"> <input type="hidden" name="sel_supplier" value="11"> </table> </form> </body> ------NetAddressPart-00--=_dBMW7936S127218c95f-- ------------------------------------------------------------------------------ To unsubscribe, send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body or visit the list page at www.houseoffusion.com
