I'm relatively new to the web2py framework and I've been enjoying writing code because of all the features that the framework provides.
Here is the issue I've run into: 1. I have a controller named "demo" with a function "f1" that returns an SQLFORM.grid directly from a table. The pagination for the grid is set to 10 (example value). 2. Everything works fine if I use a corresponding HTML view. 3. My actual goal is to load this grid and keep refreshing it every 10 seconds through XHR. For this, I created a simple view "demo/f1.load" which contains {{=grid}} and the "demo/f1.html" view has the following: {{=LOAD('demo', 'f1.load', ajax=True, content='Loading...', times=20, timeout=10000, user_signature=True)}} 4. This works as intended until I navigate to page 2 of the grid. Once I do that, the next XHR trigger based on the timeout takes me back to page 1 (as opposed to refreshing page 2). 5. Is there a way to maintain state for the page number in the "demo/f1.html" view and then pass it to the LOAD helper so that the next XHR does not take the user back to page 1 of the grid? Thank you for your help! Akash -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.