Changes between Version 2 and Version 3 of AjaxDojoLogin


Ignore:
Timestamp:
Jun 13, 2006, 2:17:08 AM (18 years ago)
Author:
anonymous
Comment:

spelling :)

Legend:

Unmodified
Added
Removed
Modified
  • AjaxDojoLogin

    v2 v3  
    11== Adding an ajax login form to your project ==
    22
    3 Assuming you have a project running and using the normal authentification scheme providen by django, it would be nice not to reaload the page to show errors about login and password when the login is wrong.
     3Assuming you have a project running and using the normal authentification scheme providen by django, it would be nice not to reload the page to show errors about login and password when the login is wrong.
    44
    5 We need to add a specific method to your project view.py lets call it '''loginajax'''.
    6 Simple we do a copy / past from '''/django/contrib/auth/view.py''' method login.
    7 we just change the return answers.
     5We need to add a specific method to your applications view.py lets call it '''loginajax'''.
     6We simply do a copy / past from '''/django/contrib/auth/view.py''' method login.
     7we just change the return values.
    88
    99{{{
     
    3737We then need to add the dojo magic to our login page.
    3838id = loginForm refer to our <form id="loginform" ..>
    39 If you are confuse see [wiki:AjaxDojoFormSub], similar code is more detailed there.
     39If you are confused see [wiki:AjaxDojoFormSub], similar code is more detailed there.
    4040{{{
    4141    var sendLoginButton;       
Back to Top