I'm making an application, which creates instances of stocks received from db. Because the db isn't updating frequently, I'll use client-side scripting for filtering and sorting values, rather than making a new query to db every time.
The application consist of following parts :
--rows (amount depending of length of stocks array) in body
---cells containing data of a single stock
- stock controls
--constructor for stocks object into stock array
- sorting controls
--sort criteria (Stock name, stock code etc.) and boolean ascending/descending
First I made stock table by creating new instances of stocks and table every time table was sorted. This worked pretty fast, but caused IE to crash (surpise) after frequent updating.
Secondly, I made a stock table by re-sorting values in stock array and redefining values in cells. This turned out to be much slower way, yet it didn't crash IE.
I know Moz would be better for this (of course it is). However, our Intranet is relying mainly for IE proprietary controls and Mozilla can't be used. My workstations' IE is crashing occasionally on normal web pages, so there are also other problems causing it to crash.
My question is, which is the most reliable and fastest way to re-create table and append objects and their values into it? Deleting the table and re-creating it or just changing the values? Or are there faster ways for doing this I'm not aware of?