JSON cache(p, out_el, caching, callback, append, replace)
This helper function returns JSON with two attributes:
out_el
- string | Output element ID
from_cache
- bool | Is element returned from cache
p
- string | URL
out_el
- string | AJAX-response output element ID
caching
- bool | JS-caching for current request
callback
- string / function | Callback function after AJAX-request is successfully done
append
- bool / string('prepend') | Append or Prepend to out_el
element ID
replace
- bool | If true
element with id: out_el
will be replaced by AJAX-response