ajax - neel/bong.js GitHub Wiki
#AJAXication
bong.href()
is the core method for doing any kind of ajax operation. it takes two parameters bong.href(url, conf)
href
: Specify the request locationconf
: optional Method
href()
will return an object containing several methods
sync(ftor, conf)
: Synchronous HTTP Requestasync(ftor, conf)
: Asynchronous HTTP Requestupdate(dom, conf)
: Updates the innerHTML ofdom
with HTTP Response (asynchronous)freezingUpdate(dom, conf)
: synchronous updatetick(ftor, interval, conf)
: requests in the giveninterval
and executesftor
with the responserefresh(dom, interval)
: updatesdom
withinterval
invoke(conf)
eval(conf)
:eval()
the js code in HTTP Responseperiodic(dom, interval, conf)
post(formDom)
**with additional ** conf
** parameter you can set the content type as ** json
|xml
|js
|plain
** However if not specified ** Response Type is decided based on response Header
methods such as eval()
,update()
forces the responseType