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('...').

On Jan 2, 1:48 pm, "K.R.Arun" <the1.a...@gmail.com> wrote:
> Thank you, and really really appreciate the response time for the post
> (hardly 15min).
> I thought it may be constructed using SQLFORM.factory (I tried
> but...).
> If this is the better way, I'm happy.
> I have another problem with AJAX.
> ( You can see that menu Items loads asynchronously using ajax(u,s,t)
> function of web2py_ajax.html.
> For example following is code for 'home' menu item. (here also, Is
> there any better way to do this; like read out a html file and send,
> or jason/xml)
> -------------------------------------------------------------------------------------------------------------------------------------------------
> def home():
>     return DIV(
>                 H1('EXODUS'),
>                 P('The Computer Science Department of St. Thomas’ college has 
> been
> conducting, Inter-Collegiate Techno-Cultural Fest named ‘Exodus-Saga
> Of Campus‘ every year since 2005. Nearly 20 – 25 colleges participate
> in this program with a total strength of about 1000 students.'),
>                 P('It includes technical events such as'),
>                 OL(
>                         LI('Iron Out – Debugging'),
>                         LI('Enlivenance – Flash Animation'),
>                         LI('Enigma – Quiz'),
>                 ),
>                 P('and a cultural program'),
>                 OL(
>                         LI('Enlivenance – Flash Animation'),
>                 ),
>         ).xml()
> ----------------------------------------------------------------------------------------------------
>
> But how can I do the same with registration form?
> Now it's done using a separate view.
>
> Thanks for the quick reply.
> Have a nice day.
>
> Arun

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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