Is there anyone who can answer a quick javascript/Active Select custom
tag question>? Essentially, the form needs what was selected in the
second drop down to fill in a field elsewhere, and all efforts to point
have been miserable. Seem to break instead of actually performing
properly....grrr...
Here is what I think the relevant code is...this javascript is a bit
over my head.
function applyFilter(form,LastChanged,tab,selects)
{
for (i=LastChanged;i<selects.length;i=i+1)
eval("form."+selects[i]).value=0;
for (j=0;j<tab.rows.length;j=j+1)
{
currentRow = tab.rows[j];
ok=true;
for (i=0;i<selects.length;i=i+1)
// for (i=0;i<LastChanged-1;i=i+1)
{
val=eval("form."+selects[i]).value;
if (val !=0)
if (currentRow.cells[i].value != val)
ok = false;
}
if (!ok) currentRow.style.display = "none"
else currentRow.style.display = "block"
}
updateFilters(form,false,LastChanged,tab,selects);
}
Thanks!
Regards,
Eric J Hoffman
DataStream Connexion
www.datastreamconnexion.com
Delivering Creative Data Solutions
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4