Re: [web2py] Re: request - mmodal examples

2011-07-19 Thread Kenneth Lundström

This works:
{{for ticket in tickets:}}

{{a=PluginMModal(title='Hello World',content=crud.update(db.t_ticket, 
ticket.id),close='close',width=40,height=80)}}

{{=a}}
{{=a.link(H1('SEE MODAL WINDOW'))}}


{{pass}}


Kenneth


On 19.7.2011 11:21, Kenneth Lundström wrote:

I have never used crud with mmodal, but I have used SQLFORM with it.

I guess you have read:
http://groups.google.com/group/web2py/browse_thread/thread/809bf7eb5072651f/90ecd2c59b3dacc6?lnk=gst&q=mmodal#90ecd2c59b3dacc6

Instead of:
{{a=PluginMModal(title='Hello World',content='give this a
try!',close='close',width=70,height=70)}}

I used:
{{a=PluginMModal(title='Hello World', content=form 
,close='close',width=70,height=70)}}


where form is SQLFORM I created in the controller.


Kenneth


bump.

No takers? :s

On Jul 16, 8:23 am, niknok  wrote:

I just "discovered" this modal plugin: web2py.com/plugins/default/
mmodal

Sorry for being a little slow, but would someone please post an
example of how I can use crud inside modals?






Re: [web2py] Re: request - mmodal examples

2011-07-19 Thread Kenneth Lundström

I have never used crud with mmodal, but I have used SQLFORM with it.

I guess you have read:
http://groups.google.com/group/web2py/browse_thread/thread/809bf7eb5072651f/90ecd2c59b3dacc6?lnk=gst&q=mmodal#90ecd2c59b3dacc6

Instead of:
{{a=PluginMModal(title='Hello World',content='give this a
try!',close='close',width=70,height=70)}}

I used:
{{a=PluginMModal(title='Hello World', content=form 
,close='close',width=70,height=70)}}


where form is SQLFORM I created in the controller.


Kenneth


bump.

No takers? :s

On Jul 16, 8:23 am, niknok  wrote:

I just "discovered" this modal plugin: web2py.com/plugins/default/
mmodal

Sorry for being a little slow, but would someone please post an
example of how I can use crud inside modals?




[web2py] Re: request - mmodal examples

2011-07-18 Thread niknok
bump.

No takers? :s

On Jul 16, 8:23 am, niknok  wrote:
> I just "discovered" this modal plugin: web2py.com/plugins/default/
> mmodal
>
> Sorry for being a little slow, but would someone please post an
> example of how I can use crud inside modals?