Gentlemen,
I have recently upgraded a part of a system for a customer. It is an online “cash register” designed to allow orders to be put through quickly. It is composed somewhat like a spreadsheet, with rows for each product, then sub total etc at the bottom. There is a form/row for adding a new product, a form/row for each product loaded, and a final form holding the sub total, grand total and other values.
Using a div with the InnerHTML function and an Ajax call, I was able to update it recently so that only the products list in the div refreshes, and returned values set the sub total and so forth, removing the need for screen redraws completely. However, there is a problem.
Chrome works fine, but Opera and Firefox share a common problem. Although I can go in and say increase or decrease a quantity and have it recalculate the total, as soon as I add the next product and the innerHTML is called, this ability is lost. Triggering the totalling code (by change quantity or discount) produces an error like the form control is not even there.
It’s like the browsers have lost the ability to address the form after the innerhtml call. It is almost as if certain other things need to be refreshed in memory, though my researches so far have been fruitless.
Does anyone know how to solve this?
Thanks,
Joel.