send_ajax(obj, load_el, out_el, append, restore, remove, popup_out, callback, replace)
This function sends AJAX-request without History.pushState() (no change to URL).
obj
- Object | Example:{type: "GET", url: '/some/url.php',}
load_el
- string | Loader output element IDout_el
- string | AJAX-response output element IDappend
- bool / string('prepend') | Append or Prepend toout_el
element IDrestore
- bool | Restore content in Loader (load_el
) element after AJAX-request is doneremove
- string | Element ID to remove after AJAX-request is donepopup_out
- string / boolcallback
- string / function | Callback function after AJAX-request is successfully donereplace
- bool | Iftrue
element with id:out_el
will be replaced by AJAX-response