You rock Anthony! Thank you.
On Thursday, June 23, 2016 at 12:22:44 PM UTC-4, Anthony wrote:
>
> You could add a data-* attribute to each pair of divs to identify the
> specific div that needs to be toggled:
>
> Click to read more
>
>
> {{=LOAD('default', 'thread.load', args=[threads[i].id, th
You could add a data-* attribute to each pair of divs to identify the
specific div that needs to be toggled:
Click to read more
{{=LOAD('default', 'thread.load', args=[threads[i].id, threads[i].name],
client_side=True)}}
jQuery(document).ready(function(){
jQuery('.one').click(function()
Funny, you said it that way. That was the problem. I forgot to take the
layout off. It works fine now. Since you are so good at it lol. one
problem I still have. When I toggle the link, if I have the thread in a
loop. All the links open up. How to modify that javascript so only the
reques
On Thursday, June 23, 2016 at 11:00:42 AM UTC-4, Ron Chatterjee wrote:
>
> If you look at my code though, I am not calling the LOAD inside the jquery
> (like you are saying calling LOAD from javascript). I am calling LOAD
> outside. All the jquery does it fold or fold back that div element. So w
If you look at my code though, I am not calling the LOAD inside the jquery
(like you are saying calling LOAD from javascript). I am calling LOAD
outside. All the jquery does it fold or fold back that div element. So why
component?
On Thursday, June 23, 2016 at 10:27:40 AM UTC-4, Anthony wrote
I don't think it's in the book. You might find some relevant examples here:
https://groups.google.com/forum/#!searchin/web2py/$24.web2py.component.
Anthony
On Thursday, June 23, 2016 at 9:52:58 AM UTC-4, Ron Chatterjee wrote:
>
> Can you please send me a link to an example where its applied so I
Can you please send me a link to an example where its applied so I get to
learn from it?
On Wednesday, June 22, 2016 at 8:24:53 PM UTC-4, Anthony wrote:
>
> LOAD() is a Python helper, so it cannot be called via Javascript in the
> browser. However, you can load/refresh a component via Javascript
LOAD() is a Python helper, so it cannot be called via Javascript in the
browser. However, you can load/refresh a component via Javascript via
$.web2py.component(url, target) (the LOAD() helper simply creates the
target div and adds a data attribute that tells web2py.js to call
$.web2py.componen
8 matches
Mail list logo