{{=LOAD(a,b,args=args,vars=vars,ajax=ajax,ajax_trap=ajax_trap)}}
a,b,args,vars are used to build the URL
URL(request.application,c=a,f=b,args=args,vars=vars)
if ajax=False the URL is called BEFORE the page is served
if ajax=True the URL LOAD just generate JS code to request tha page
via AJAX
if ajax_trap=True all forms in the content are captured and submitted
via AJAX.
ajax=True implied ajax_trap=True.
ajax=False implies args andvars are ignored and request.args ad
request.vars are used.
On Jan 3, 12:01 pm, "K.R.Arun" <[email protected]> wrote:
> On Jan 3, 1:25 am, mdipierro <[email protected]> wrote:
>
> > well, you can do it with FROM (not SQLFORM.factory) but You would not
> > gain anything in your case.
>
> > About AJAX.
>
> > You could make something like
>
> > def ajax_user(): return auth() # instead of dict(form=auth())
>
> > and then in a page
>
> > {{=LOAD('default','ajax_user/register',ajax_trap=True)}}
>
> > you do not need to use LOAD, you can use ajax('...').
>
> Sorry, I can't able to understand it.
> I read it somewhere that LOAD can be used to AJAX load components into
> the page.
> BTW, in {{=LOAD('default','ajax_user/register',ajax_trap=True)}} ,
> what this parameters mean except 'default'?
> ajax_user is our function defined above, then what's register(Is it
> argumet??)?
> what is meant by return auth() (Is auth() is a function that returns a
> form object?)
>
> I'm from C++ and Java background, new to Python, hope wordings are apt
> to python also.
>
> Arun
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en.