[thelist] [bug] and [fix] for contact select list on aeo
Warden, Matt
mwarden at mattwarden.com
Tue Jul 10 13:01:04 CDT 2001
On the Browse Clients screen, change this:
function relate() {
if(v){
j = document.forms[1].client_name.selectedIndex;
with (document.forms[1].contact_id) {
for(i=options.length-1;i>0;i--) options[i] = null; // null out in reverse
order (bug workarnd)
for(i=0;i<a[j].length;i++){
options[i] = new Option(a[j][i].text,a[j][i].value);
}
options[1].selected = true;
}
}
}
to this:
function relate() {
if(v){
j = document.forms[1].client_name.selectedIndex;
with (document.forms[1].contact_id) {
for(i=options.length-1;i>0;i--) options[i] = null; // null out in reverse
order (bug workarnd)
for(i=0;i<a[j].length;i++){
options[i] = new Option(a[j][i].text,a[j][i].value);
}
options[0].selected = true;
}
}
}
And you'll get rid of that JS error that has popped up from time to time.
--
mattwarden
mattwarden.com
More information about the thelist
mailing list