if fixed it.

I changed:

_href='#zoom-me' and _id='zoom-me'

to

_href='#zoom-me'+str(foto.id) and _id='zoom-me'+str(foto.id)

-wj

On Fri, Dec 12, 2008 at 10:34 AM, Wes James <compte...@gmail.com> wrote:
> funny thing though,  using itemize to show several pics on the page
> the zoom magic only shows the first pic on on the list, even when
> clicking on any other pic on the list - the zoom always does just the
> first one :)
>
> On Thu, Dec 11, 2008 at 11:24 PM, mdipierro <mdipie...@cs.depaul.edu> wrote:
>>
>> not quite but perhaps something like this:
>>
>> db.foto.represent=lambda foto: TABLE(A(foto.title,_href=t2.action
>> ('wiki/edit',foto.id)),
>> A(IMG(_width=200,_src=URL(r=request,f='download',args=[foto.image])),
>> _class='zoom' ,_href='#zoom-me'),DIV(IMG(_width=400,_src=URL
>> (r=request,f='download',args=[foto.image])),_id='zoom-
>> me',_class='hidden'))
>>
>>
>> Massimo
>>
>> On Dec 11, 10:52 pm, "compte...@gmail.com" <compte...@gmail.com>
>> wrote:
>>> ok this kind of works:
>>>
>>> db.foto.represent=lambda foto: TABLE(A(foto.title,_href=t2.action
>>> ('wiki/edit',foto.id)),
>>> A(IMG(_width=200,_src=URL(r=request,f='download',args=[foto.image])),
>>> _href=t2.action('wiki/display',foto.id)))

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to