On Tuesday, January 16, 2018 at 12:08:59 PM UTC-5, Tu Duong wrote:
>
> Thanks
>
> 1. *"you can instead put the grid HTML inside a Javascript template
> literal"*
> You mean like this?
>
> jQuery('#btn_list_program').click(function(){ jQuery('#selected_form').
> html( *`*{{=list_program}}*`* ) }
On Tuesday, January 16, 2018 at 9:08:59 AM UTC-8, Tu Duong wrote:
>
> [...]
> 3.* "Also, rather than building all the grids when the page is first
> requested, you might consider loading each grid asynchronously via Ajax
> only when needed. For example, clicking a button could call
> $.web2py.
Thanks. The jQuery('#hidden_div_1').html() approach works.
*"Also, rather than building all the grids when the page is first
requested, you might consider loading each grid asynchronously via Ajax
only when needed. For example, clicking a button could call
$.web2py.component() to retrieve a g
On Tuesday, January 16, 2018 at 1:01:54 AM UTC-5, Tu Duong wrote:
>
> I have more than 1 grid on the same page (about 10). I could do it, but it
> is not a best solution because I need to keep track of which gird is
> visible, hide that grid, and show the new selected one. I hope there is a
> be
I have more than 1 grid on the same page (about 10). I could do it, but it is
not a best solution because I need to keep track of which gird is visible, hide
that grid, and show the new selected one. I hope there is a better way to solve
this... wondering why it does not work. It works beautiful
I have more than 1 grid on the same page (about 10). I could do it, but it is
not a best solution. I hope there is a way to solve this... wondering why it
does not work. It works beautiful with form
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/w
Why don't you just put the grid right where you want it in the HTML but
hidden, and then when the button is clicked, just use jQuery to un-hide the
div?
On Monday, January 15, 2018 at 12:25:20 PM UTC-5, Tu Duong wrote:
>
> It shows part of the HTML code on the browser. Seems like the code
> str
It shows part of the HTML code on the browser. Seems like the code for the grid
is different
--
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
You say it works with a SQLFORM but not a grid -- what happens when you try
with a grid?
On Monday, January 15, 2018 at 10:16:38 AM UTC-5, Tu Duong wrote:
>
> Hi,
>
> I want to display the table's content when user clicks the button, here is
> my code and it does not work. I can display the SQLF
9 matches
Mail list logo