all groups > inetserver asp db > june 2004 >
You're in the

inetserver asp db

group:

ASP VBSCRIPT


ASP VBSCRIPT Darren Woodbrey
6/28/2004 4:55:49 PM
inetserver asp db: I have a form with ship to customer and bill to customer fields. Both of
these are required fields. I want to put a check box in the form and if the
check box is checked then the value of the ship to customer is loaded into
the bill to customer. I need this to happen before the form is submitted.
can I do this with ASP?

The person fills in the ship to customer and if the bill to customer is the
same then they just check the box and the same value is automatically
entered. If they are different then he just types the bill to customer in.

Thanks!
Darren

Re: ASP VBSCRIPT Bullschmidt
6/28/2004 5:16:09 PM
JavaScript:

function jsCopyBillFieldsToShipFields() {
// This function is triggered by button's onclick.

// Dim var.
var frm;

// Form.
frm = document.frmMain

// Set form fld.
frm.ShipName.value = frm.DistribName.value;
frm.ShipContactName.value = frm.Contact1Name.value;
frm.ShipAddress1.value = frm.DistAddress1.value;
frm.ShipAddress2.value = frm.DistAddress2.value;
frm.ShipCity.value = frm.DistCity.value;
frm.ShipState.value = frm.DistState.value;
frm.ShipZipCode.value = frm.DistZipCode.value;
frm.ShipPhone.value = frm.DistPhone.value;
frm.ShipFax.value = frm.DistFax.value;
}

Best regards,
J. Paul Schmidt, Freelance ASP Web Designer
http://www.Bullschmidt.com
ASP Designer Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...


*** Sent via Devdex http://www.devdex.com ***
Re: ASP VBSCRIPT Evertjan.
6/28/2004 9:12:40 PM
Darren Woodbrey wrote on 28 jun 2004 in
microsoft.public.inetserver.asp.db:

[quoted text, click to view]

No.

ASP is serverside, so you have to submit to have ASP running.

--
Evertjan.
The Netherlands.
AddThis Social Bookmark Button