[web2py] Re: Trying to use the LOAD helper, if a button is clicked

2014-06-23 Thread Brian M
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

[web2py] Re: Trying to use the LOAD helper, if a button is clicked

2014-06-23 Thread Tomeu Roig
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 u

[web2py] Re: Trying to use the LOAD helper, if a button is clicked

2014-06-22 Thread Brian M
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 t

[web2py] Re: Trying to use the LOAD helper, if a button is clicked

2014-06-22 Thread Tomeu Roig
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: - http:/

[web2py] Re: Trying to use the LOAD helper, if a button is clicked

2014-06-20 Thread Andrew W
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. T

[web2py] Re: Trying to use the LOAD helper, if a button is clicked

2014-06-19 Thread Anthony
> > 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

[web2py] Re: Trying to use the LOAD helper, if a button is clicked

2014-06-19 Thread Omri Levy
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 $.web2py

[web2py] Re: Trying to use the LOAD helper, if a button is clicked

2014-06-18 Thread Andrew W
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 ca

[web2py] Re: Trying to use the LOAD helper, if a button is clicked

2014-06-18 Thread Brian M
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: {{=A(edit_icon, _href=URL(r=request,f='edit_item', args=[record_i

[web2py] Re: Trying to use the LOAD helper, if a button is clicked

2014-06-18 Thread Tomeu Roig
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="historic

[web2py] Re: Trying to use the LOAD helper, if a button is clicked

2014-06-16 Thread Anthony
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: Anthony On Friday, June 13, 2014 7:47:34 PM UTC-4, Omri Levy wrote