H
Haha...
Unregistered / Unconfirmed
GUEST, unregistred user!
function LoadCustomerName(form) {
var indx = form.CustomerName.selectedIndex;
<%
rs.MoveFirst
%>;
for (var i=0;i<=indx;i++){
<% rs.MoveNext %>;
};
form.CarType.value = "<%=rs(2)%>";
form.QuotedPrice.value = "<%=rs(3)%>";
form.Address.value = "<%=rs(4)%>";
form.Phone.value = "<%=rs(5)%>";
form.MobilePhone.value = "<%=rs(6)%>";
form.Fax.value = "<%=rs(7)%>";
form.Remark.value = "<%=rs(8)%>";
return false;
}
上面的<% rs.MoveNext %>好总不能不能移到indx,就是下面的form不能跟着indx变化
var indx = form.CustomerName.selectedIndex;
<%
rs.MoveFirst
%>;
for (var i=0;i<=indx;i++){
<% rs.MoveNext %>;
};
form.CarType.value = "<%=rs(2)%>";
form.QuotedPrice.value = "<%=rs(3)%>";
form.Address.value = "<%=rs(4)%>";
form.Phone.value = "<%=rs(5)%>";
form.MobilePhone.value = "<%=rs(6)%>";
form.Fax.value = "<%=rs(7)%>";
form.Remark.value = "<%=rs(8)%>";
return false;
}
上面的<% rs.MoveNext %>好总不能不能移到indx,就是下面的form不能跟着indx变化