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)))
>>
>> and i had to create a display page, then i could click on it
>>
>> display page has:
>>
>> {{=self.display(db.foto)}}
>>
>> but is there a way to do a t2.display in a lambda??
>>
>> -wj
>>
>> On Dec 11, 9:26 pm, "Wes James" <compte...@gmail.com> wrote:
>>
>> > How do I do a lambda to do like the puppy poppup - 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])),
>> > _href=t2.display(????))
>>
>> > thx,
>>
>> > -wj
> >
>

--~--~---------~--~----~------------~-------~--~----~
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