java - Tracking data offset of data in a table to retrieve the previous/next subset on table scroll -


I am writing a browser based application using GWT and using websql (yes, I know that It has been disliked). I created a custom table widget (based on FlexTable) and enabled it to scroll with the help of some CSS Trickery. What I'm trying to achieve (without success) is that when a user scrolls to the beginning / end of existing data in the table, then an event is removed and the next line of the X line is returned from the websql db And present data in the table to work on it, I have to keep track of the offset data in the table widget so that I can pass it on the query and the necessary date You can use the limit and offset function of SQL to return. However, I can not be able to get the right of reasoning to implement the data offset tracker within the widget. Another complexity is that I need the table to be able to scroll 'in the past' (to talk so much) so that when the table is loaded, it can get data before the initial starting point.

I have it for several days and it just can not seem right. So I was thinking / thinking that someone could point me in the right direction (please!).

Thank you in advance

Tim

I'm not sure That's why this is causing a problem.

  int page = 0; // When you page below ++; LoadData (page); // When you hit the top (page> 0) {page -; LoadData (page); }    

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -