<reponame>dave325/wordpress-nginx-docker<filename>wordpress/wp-content/plugins/newstatpress/includes/js/nsp_variables_alltotalvisits.js<gh_stars>100-1000
jQuery.post(
  nsp_variablesAjax_alltotalvisits.ajaxurl,
  {
    // here we declare the parameters to send along with the request
    // this means the following action hooks will be fired:
    // wp_ajax_nopriv_myajax-submit and wp_ajax_myajax-submit
    action : 'nsp_variables',
 
    // other parameters can be added along with "action"
    VAR    : nsp_variablesAjax_alltotalvisits.VAR,
    URL    : nsp_variablesAjax_alltotalvisits.URL,
    LIMIT  : nsp_variablesAjax_alltotalvisits.LIMIT,
    FLAG   : nsp_variablesAjax_alltotalvisits.FLAG,
    
    // send the nonce along with the request
    postCommentNonce : nsp_variablesAjax_alltotalvisits.postCommentNonce    
  },

  function( response ) {
    document.getElementById(nsp_variablesAjax_alltotalvisits.VAR).innerHTML=response;
  }
); 
