OK,
This might take a while to explain. I have an ASP program (say MyASP.asp) which when accessed displays a form where a user can order from a drop down list of products. The drop down list is populated from a database query made by the ASP program.
Fairly simple so far.
I also use the contents of the database to create a JS client side script which automatically populates a part description field once the part number has been selected.
Still OK.
Now, I have two submit buttons. When the user clicks "Add another product" the form contents are validated and sent to the server side myASP.asp program where the database is accessed again to create a second row of input fields and the HTML page created shows two input rows. The first input row contains the data inputted before the submit and the second row is blank. As you can guess, this is not very efficient.
Now what I would like to be able to do is create a client side JS script that will enable me to create the second row of inputs without having to go back to the server. I can store all the part numbers for the drop down list in a JS array after the first call to the myASP.asp program. But how do I generate the second row of inputs automatically??
I hope that this is clear!! Mise Le Meas,
Mighty
This might take a while to explain. I have an ASP program (say MyASP.asp) which when accessed displays a form where a user can order from a drop down list of products. The drop down list is populated from a database query made by the ASP program.
Fairly simple so far.
I also use the contents of the database to create a JS client side script which automatically populates a part description field once the part number has been selected.
Still OK.
Now, I have two submit buttons. When the user clicks "Add another product" the form contents are validated and sent to the server side myASP.asp program where the database is accessed again to create a second row of input fields and the HTML page created shows two input rows. The first input row contains the data inputted before the submit and the second row is blank. As you can guess, this is not very efficient.
Now what I would like to be able to do is create a client side JS script that will enable me to create the second row of inputs without having to go back to the server. I can store all the part numbers for the drop down list in a JS array after the first call to the myASP.asp program. But how do I generate the second row of inputs automatically??
I hope that this is clear!! Mise Le Meas,
Mighty