It sounds like you're getting the HTML for the login page, which is what I would expect because you're requesting that URL.
Also you're missing a ")" for URL() Richard On Sep 10, 3:11 pm, eddwinston <eddwins...@gmail.com> wrote: > Hi, > > This is what I did: > > jQuery.ajax({ > type: "POST", > url: "{{=URL(r=request,c='default', f='user', args='login'}}", > data: {}, > success: function(response) { > alert(response); // This line produced a complete page markup in > the alert dialog > }, > error: failure_callback > }); > > On Sep 10, 6:31 am, mdipierro <mdipie...@cs.depaul.edu> wrote: > > > show us the code > > > On Sep 9, 10:21 pm, eddwinston <eddwins...@gmail.com> wrote: > > > > Hi, > > > > I am trying to make an ajax login, I am currently sending request to > > > this url: [app]/default/user/login. But it has been fruitless. I just > > > get a full page html markup and the user will not be logged in. Is > > > there a way I can do it? > > > > Regards, > > > Winston > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" 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 -~----------~----~----~----~------~----~------~--~---