Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function getSPCListByConfigGroup(config_group)
  2. {
  3.     var spc_list="";
  4.     if(navigator.appName == "Microsoft Internet Explorer")
  5.     {
  6.       http_get_spc = new ActiveXObject("Microsoft.XMLHTTP");
  7.     }
  8.     else
  9.     {
  10.         http_get_spc = new XMLHttpRequest();
  11.     }
  12.     http_get_spc.open("POST", "inc/configEdit.php", true);
  13.     http_get_spc.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  14.  
  15.     params = "spc_list=" + config_group;
  16.     http_get_spc.setRequestHeader("Content-length", params.length);
  17.     http_get_spc.send(params);
  18.     http_get_spc.onreadystatechange = function()
  19.         {
  20.             if(http_get_spc.readyState == 4)
  21.             {
  22.                 spc_list = http_get_spc.responseText;
  23.             }
  24.         }
  25.     return(spc_list.toString());
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement