Raskii
09-15-2001, 12:15 AM
I'm working on a form that acts as a shopping cart but I have some problems.
Note, I've set up a little "demo" (it's not actually a real form) that shows kind of what I want. It's at http://www.hcweb.net/mikenune/test/TestForm1.1.html
EDIT: Click the add button so see the form change.
First: I want to make the form dynamic. What I mean by that is I want the form to start out with only one line where you can choose an item (book, video, software, etc.) and one line for the total price. Once an item is chosen, the form adds another line where they can add another item (so now there's two lines for items and one line for the total. I want to be able to do this as many times as necessary. I also want the form to remove lines if the use deletes an item (and, if there's anything below that line, to shift all the others up one).
Second: Because of the size of the list (it's going to be sorted alphabetically to aid searching), I don't want to have to load 15 bazillion lists. I want the use to click on an "add" button that will bring up another window with the list. The problem is; how do I pass the information back to the "parent" form once they've made a selection? Also, can I update the "parent" form without reloading the page?
[ 15 September 2001: Message edited by: Lucefiel ]
Note, I've set up a little "demo" (it's not actually a real form) that shows kind of what I want. It's at http://www.hcweb.net/mikenune/test/TestForm1.1.html
EDIT: Click the add button so see the form change.
First: I want to make the form dynamic. What I mean by that is I want the form to start out with only one line where you can choose an item (book, video, software, etc.) and one line for the total price. Once an item is chosen, the form adds another line where they can add another item (so now there's two lines for items and one line for the total. I want to be able to do this as many times as necessary. I also want the form to remove lines if the use deletes an item (and, if there's anything below that line, to shift all the others up one).
Second: Because of the size of the list (it's going to be sorted alphabetically to aid searching), I don't want to have to load 15 bazillion lists. I want the use to click on an "add" button that will bring up another window with the list. The problem is; how do I pass the information back to the "parent" form once they've made a selection? Also, can I update the "parent" form without reloading the page?
[ 15 September 2001: Message edited by: Lucefiel ]