Core Docs | Additional Modules Docs

sb.widget.editor


@Description: Creates a login form that uses ajax and passes the password back in md5 format from the client
@File: ui/forms/login.js
@Author: Paul Visco
@Param: object params
params.url string The URL to hit
params.onSuccess function The callback that fires the url returns 1 or true
params.onFailure function The callback that fires when the url return 0 or false
params.onUrlNotFound function The callback that fires if the URL returns 404
@Example:
sb.include('ui.forms.login');

board.login = new sb.ui.forms.login({
    parentNode : '#login',
    url : '/user/login',
    onSuccess : function(){
        //do something
    },
    onFailure : function(){
        //do something
    }
});