Core Docs | Additional Modules Docs

sb.get


@Description: a shortcut for sending data via ajax with get and fetch it automatically
@File: sb.js
@Param: string url The address to send to
@Param: object data The data to send as object or string
@Param: function onResponse The callback function or #id of node to replace innerHTML of
@Param: string format The ajax return format json, xml, text, js, etc
@Return: sb.ajax The sb.ajax instance created
@Example:
sb.get('/some/url', {a: 'b'}, function(r){alert(r);});
    or
    sb.get('/some/url', function(r){alert(r);});
    or
    sb.get('/some/url', {a: 'b'}, '#myDiv');
    or
    sb.get('/some/url', '#myDiv');