Home - neel/bong.js GitHub Wiki
Minimalistic AJAX Library
bong.js is Part of Bong Framework. However its javascript library can be used independently.
bong javascript Library features some core generalized AJAX actions. as well as some common actions like byId
or byClassName
etc..
Additionally a css is given which is required for bong.dialog
which creates a facebook like dialog box. the css file is not required unless you use bong.dialog
Dom related Methods
- bong.addEvent(elem, evType, ftor)
- bong.removeEvent(elem, evType, ftor)
- bong.viewport.height()
- bong.viewport.width()
- bong.scroll.top()
- bong.scroll.left()
- bong.domify(htmlStr, handle)
- bong.byId(id)
- bong.byClassName(className)
- bong.body()
- bong.instantiate(conf)
- bong.onready(ftor)
- bong.dialog(conf)
AJAX methods
- bong.href(url, conf).sync(conf)
- bong.href(url, conf).async(conf)
- bong.href(url, conf).update(dom, conf)
- bong.href(url, conf).freezingUpdate(dom, conf)
- bong.href(url, conf).tick(ftor, interval, conf)
- bong.href(url, conf).refresh(dom, interval)
- bong.href(url, conf).invoke(ftor, conf)
- bong.href(url, conf).eval(conf)
- bong.href(url, conf).periodic(conf)
- bong.href(url, conf).post(formDom).async()
- bong.href(url, conf).post(formDom).eval()
- bong.href(url, conf).post(formDom).update()
Core Methods
- bong.console.log(msg)
- bong.console.error(msg)
- bong.isArray(o)
- bong.core.util.isArray(o)
- bong.core.util.isString(o)
- bong.core.util.type(o)
- bong.core.util.setValue(o)