it's easy:
1. Place modal_wrapper() function in your_web2py_app/modUles named
'my_util.py' (just for example) - you have to import html-helpers in it:
from gluon.html import *
2. In view place:
...
{{=BUTTON( 'Apply',_type="button",_class = "btn
btn-default",_onclick="$('#cont_id').modal('
OK, but what do you mean under "pass that argument from my view" ?
view is processed and rendered to html page at server side, JS runs
only on the client side.
so, if you can pass arg from veiw (i.e. arg is defined on server side),
also you can pass it in main_page():
def main_page():
OK, thank you, Dave, I've corrected my post according to your helpful
suggestions
Dave S писал(а) в своём письме Thu, 13 Aug 2015
22:44:42 +0300:
On Thursday, August 13, 2015 at 12:09:11 PM UTC-7, Val K wrote:
Forget all what you've read there (joke)
If you want this rules works any
You are right! But I mean that possible error's cause is the second
assignment 'db=DAL(...) ' (after auth-settings and etc.)
Dave S писал(а) в своём письме Mon, 16 Mar 2015
21:07:35 +0300:
On Monday, March 16, 2015 at 6:41:57 AM UTC-7, Val K wrote:
Hi!
As I see, you defined your table
4 matches
Mail list logo