[web2py] Re: loop inside helper

2012-02-16 Thread web-dev-m
You got it! Thanks!!! On Feb 16, 1:10 am, Anthony wrote: > > I am trying to add a jquery effect, to each row based on its id, but i > > am having trouble formatting the _onclick="jQuery('id').toggle()" > > _onclick="jQuery('%s').toggle()" % row.id > > Anthony

[web2py] Re: loop inside helper

2012-02-15 Thread Anthony
> > I am trying to add a jquery effect, to each row based on its id, but i > am having trouble formatting the _onclick="jQuery('id').toggle()" _onclick="jQuery('%s').toggle()" % row.id Anthony

[web2py] Re: loop inside helper

2012-02-15 Thread web-dev-m
That is seeming to work, except for one thing. I am trying to add a jquery effect, to each row based on its id, but i am having trouble formatting the _onclick="jQuery('id').toggle()" ...I cant seem to find a way to get the dynamic id in there. I guess I will have to write a jquery function to pa

[web2py] Re: loop inside helper

2012-02-15 Thread Anthony
A list comprehension might be easier. Note, if you put non-TD elements in a TR, they will automatically be put inside separate TD's within the TR. If you provide some details regarding your query and the result you're trying to achieve, we may be able to provide more specific advice. Anthony O