NITRO.JS

INTRO

The nitro.js module provides client NITRO protocol implementation.

API

direct(term)

Sends DIRECT message from JavaScript. Use enc from bert.js

> direct(atom('test'));

which will cause calling event(:test) clause in Nitrogen page controller.

qi(id)

Returns DOM element by existing id.

qs(id)

Searches for DOM element.

qn(id)

Creates new DOM element.

querySource(name)

Retrieves value fields of the given field.

validateSources(list)

Validates each value filed for the given list of fields.

$io.do

The event handler interceptor of the incoming IO message.

$io.do = function(x) { console.log(x); }

You may also want to read: bert.js, utf8.js, mq.js, n2o.js.