-
transfer data to form
BELOW IS PAR OF A CODE FOR A POP UP OFFER on our order form. Currently, when you select 'YES' to this offer, IT PLACES THE ITEM WITH A QTY OF "1" ON YOUR ORDER FORM. CAN YOU PLEASE TELL ME HOW I CHANGE THIS CODE TO COLLECT THE QTY A CUSTOMER INPUTS INSTEAD OF "1" EVERY TIME?
HERE'S THE CODE for ONE of the four items (this code is in the head section of the pop-up offer):
parentWin = top.opener.top;
parentFrm = parentWin.document.forms["ORDER_FORM"];
function First_One_Please() {
with (parentFrm) {
elements["SPECIAL_OFFER_QTY"].value = "1";
elements["SPECIAL_OFFER_QTY"].saveValue = "1";
elements["SPECIAL_OFFER_DESC"].value = "Bread Description";
elements["SPECIAL_OFFER_DESC"].saveValue = "Bread Description";
elements["SPECIAL_OFFER_PRICE"].value = "$2.495";
elements["SPECIAL_OFFER_PRICE"].saveValue = "$2.495";
elements["SPECIAL_OFFER_PRICE"].price = 2.495;
Also, if a customer chooses item #1 but not item #2, I don't want item #2's description to transfer to the order form, that space should remain blank (there are 4 items they can choose from) Can you tell me how to have it transfer nothing if there's no qty for that item?
Thank You so very much!
Similar Threads
-
By Radhika Nair in forum .NET
Replies: 4
Last Post: 05-13-2002, 01:55 PM
-
Replies: 1
Last Post: 03-01-2002, 03:40 PM
-
By max caber in forum .NET
Replies: 0
Last Post: 01-16-2002, 11:21 AM
-
By Ramachandran in forum XML
Replies: 0
Last Post: 12-22-2001, 07:10 AM
-
By steve schofield in forum ASP.NET
Replies: 0
Last Post: 11-19-2000, 07:16 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks