hi guys,

i am working on a part of a project where i need to display data associated 
with each author.. 

the author's page currently looks like:
http://webeng.gwillz.com/suzannecollins/default/authors

which is generated using the code:
{{extend 'layout.html'}}
<h1>Authors</h1>
<body>
    {{for Author in Authors:}}
    <li>{{=Author.first_name}} {{=Author.last_name}}</li>
    <a 
href="{{=URL('default','authorproducts')}}"><button>Products</button></a>
    <a href="{{=URL('')}}"><button>About</button></a>
    <p>
       &nbsp;
    </p>
    {{pass}}
</body>

my part is to display the products associated with each author when the 
product button is clicked.
because the products button is being printed out in a for loop i am having 
difficulty getting my head around it. i can use js/ajax/json or any other 
ways to get this working but can't seem to understand how i can get it to 
work

any suggestions?

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to