I am wondering how would you build a table where you can add as many items as needed…let’s say you have a video rental and a customer wants to rent 3 or 4 movies. In a web app we would pull the customer data, add a rent and then somehow, have a table where each row would be each video the customer is renting.
Without using AJAX, how would you build this table ? I am thinking that the only way is to reload everything again, like if you have drop downs, load all of the drop downs, select the values if they were selected, then if the add item button is clicked, then add a row with the corresponding inputs, if I hit add item again, I would do the same thing… Is this the right approach ? re-building the drop downs, inputs, etc, every time I go and add a new item to the table ? I hope this explains what I am thinking
Yes, you are right. If you don’t want to use ajax and more rows are need to be added on user’s feedback you have to reload the page and fetch data again for the table.