Javascript APIParsing DOMblurts.suspend()The blurts widget tries to parse your page after it loads. You can prevent this by calling the following function.
<script type="text/javascript" src="http://blurts.com/api/js"> blurts.suspend(); </script> blurts.suspended()Returns true if the widget has been suspended.
blurts.buttons( [(selector|DOMObject|jQObject)] )Finds all the textareas and attaches blurts buttons to them. Examples:
blurts.buttons(); // attach to all textareas
blurts.buttons('body'); // identical to previous
blurts.buttons('#comment'); // attach to textarea with id "comment"
blurts.buttons('.edit-field'); // attach to all textareas with class "edit-field"
blurts.buttons(document.getElementById('edit-comment')); // passing DOM-object
blurts.buttons($('.edit')); // passing jQuery-objects
blurts.players( [(selector|DOMObject|jQObject)] )Finds all blurts urls and links, and converts them into inline players
blurts.players(); // convert all urls and links
blurts.players('body'); // identical to previous
// parse element with id "my-container" and its children
blurts.players('#my-container');
// parse only elements (and its children) with class "my-players"
blurts.players('.my-players');
blurts.players(document.getElementById('players')); // passing DOM-object
blurts.players($('.players-links')); // passing jQuery-objects
You can add class bl-no-parse to avoid parsing some links.
<a href="http://blurts.com/1abcde">Parsed to inline player</a> <a href="http://blurts.com/9vwxyz" class="bl-no-parse">Shown as link</a> blurts.reinit( [interval] )Reinit blurts widget so DOM will be reparsed again.
blurts.reinit(); // reinit immediately blurts.reinit(0); // periodically reinit with default timeout (1500ms) blurts.reinit(3000); // periodically reinit with timeout 3000ms Warning: periodic reinit has no effect if blurts widget has been suspended.
blurts.stopReinit()Stops periodic reinit.
blurts.anchor( anchor )Set default anchor for record buttons. Default anchor is "BL".
blurts.anchor('BR');
Anchors scheme
|
API DocumentationJavascript API
CSS API |