|
I'm trying to implement the Prev/Next function.
I did the Prev/Next for summary.
I did it on the client side.
So, in javascript, I keep an array of values and an index var, e.g.
summary_values = [ "", "" ... ]
summary_index
This is not too bad for a 1-dimensional array.
But then, next, I need to do the Prev/Next for each summary of many subsections.
This means it will be a 2-dimensional array.
Then, I need to do the Prev/Next for the for each bullet of many bullets of many subsections.
That will be a 3-dimensional array.
Please advise a better design to deal with this?
|