Thanks Brian
El lunes, 23 de junio de 2014 03:56:32 UTC+2, Brian M escribió:
Tomeu,
At the moment I'm just letting datatables.net enhance a plain html table
for me. One of these days I'll probably get around to giving it a json
datasource but so far it hasn't been a priority for my usage.
Looks like the new datatables.net v1.10 has a new API so there are now
probably better ways to do this than I showed.
On Monday, June 23, 2014 4:51:53 AM UTC-5, Tomeu Roig wrote:
Thanks Brian
El lunes, 23 de junio de 2014 03:56:32 UTC+2, Brian M escribió:
Tomeu,
At the moment I'm just
Thanks Brian, nice think to get a full href for pass to the $web2py.component.
I see that you use datatables.net. Do you use some plugin o directly you pass
json from controller?
I want use in a new project but i have doubts have to implement. Can you give
me some idea?
--
Resources:
-
Tomeu,
At the moment I'm just letting datatables.net enhance a plain html table
for me. One of these days I'll probably get around to giving it a json
datasource but so far it hasn't been a priority for my usage.
As a bonus, here's some of how to update the datatables.net display after
using
Thanks.
--
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
Thank you Anthony! This works :)
Thank you too Carlos
On Monday, June 16, 2014 4:33:05 PM UTC+3, Anthony wrote:
If you want to dynamically add a component in the browser, you cannot use
the LOAD helper, which is a Python helper that is serialized on the server.
Instead, use the
trying to find out more about $.web2py.component, but it's not in the
book. Chapter 11 mentions web2py_ajax_component but it isn't mentioned
in Chapter 12 as indicated.
It used to be web2py_component (actually, you can still use that), but now
it's $.web2py.component.
Anthony, I don't
I call a function that content a grid or smartgrid and need pass args and
(user_signature=True), how i can make it?
now I use in controller response.js like:
tab_history = jQuery('#historial a[href=#historico]').click(function(){
$.web2py.component(%s, target=historico);
Here's how I'm doing it in an app. I'm not using grid or smartgrid but
rather a datatables.net table where each row has a linked edit button.
There may be other (better?) ways to do it but this works for me.
Each record includes:
td{{=A(edit_icon, _href=URL(r=request,f='edit_item',
Hi,
trying to find out more about $.web2py.component, but it's not in the book.
Chapter 11 mentions web2py_ajax_component but it isn't mentioned in
Chapter 12 as indicated. An old reference perhaps.
Anthony, I don't understand If you want to dynamically add a component in
the browser, you
If you want to dynamically add a component in the browser, you cannot use
the LOAD helper, which is a Python helper that is serialized on the server.
Instead, use the $.web2py.component() Javascript function. Something like:
input type=button value=Edit onclick=$.web2py.component('{{=URL('
11 matches
Mail list logo