showerp_alert

Built-in Functions
function showerp_alert confirm POST

showerp_alert(q, p, load_el, out_el, message, append, restore, encode, remove, popup_out, callback, caching, replace)

This function sends POST request only after user confirmation - via AJAX without History.pushState() (no change to URL).

  • q - string / JSON | POST-data
  • p - string | URL
  • load_el - string | Loader output element ID
  • out_el - string | AJAX-response output element ID
  • message - string | Text placed into confirm(message) function
  • append - bool / string('prepend') | Append or Prepend to out_el element ID
  • restore - bool | Restore content in Loader (load_el) element after AJAX-request is done
  • encode - bool | Encode passing data into q with encodeURIComponent() function and place into data as Form Data Parameter | Form Data Parameter access example (php): rawurldecode($_POST['data'])
  • remove - string | Element ID to remove after AJAX-request is done
  • popup_out - string / bool
  • callback - string / function | Callback function after AJAX-request is successfully done
  • caching - bool | JS-caching for current request
  • replace - bool | If true element with id: out_el will be replaced by AJAX-response