
May 17th, 2005, 11:42 PM
|
 |
Contributing User
|
|
Join Date: May 2005
Location: Chicago, IL
Posts: 157

Time spent in forums: 22 h 47 m 49 sec
Reputation Power: 4
|
|
Quote: | Originally Posted by atosphere
NOTE: When the client is performing the independant operations (sorting, filtering, etc), I want these operations to be done locally, without the help of the server.
|
I think you may be opening a can of worms with this restriction and an even bigger one with the XML idea.
If you are new, I would suggest stickign with server side manipulation of data; that is, page refreshes after every manipulation (each of which is passed by variable in the URL).
But, if you must, use JS to do this. What you can do is load all the data into Jscript arrays and then manipulate from there (within the browser) - they key here is loading ALL the database data into Jscript arrays (perhaps an array of arrays where the parent array key value is the row ID of your SQL table) - this way you can create calculations based on the same logic with which you would perform the server side code.
A big Note though: IF your database is even mildly sizeable, this page will take forever to load, as your Jscript will be off the charts!
Hope this helps.
|