JSFiddle - React, Tailwind, and code Playground

by cstigler

HTML

<button id="zaptionSSOButton" type="button">Go</button>

JavaScript

$( "#zaptionSSOButton" ).click(function() {
        
  var xmlhttp;
  if (window.XMLHttpRequest)
    {// code for IE7+, Firefox, Chrome, Opera, Safari
        xmlhttp=new XMLHttpRequest();
    }
  else
    {// code for IE6, IE5
        xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
   }
   
    xmlhttp.onreadystatechange=function()
    {
        if (xmlhttp.readyState==4 && xmlhttp.status==200)
      {
                  
      }
    }
   
    var paramString = 'id=42&[email protected]&name=John Smith&timestamp=1434418267&sig=4b42f3925cfcfd083028bff0ef2d36d86557bac8310425f4c5f058205a2fbc06';
   
    alert("paramString is" + paramString);
   
  xmlhttp.open("POST","https://staging.zaption.com/sso/lexisnexis/login",false);
  xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");
  xmlhttp.withCredentials = "true";
  xmlhttp.send(paramString);
  alert(xmlhttp.responseText);
 //window.location = "https://www.staging.zaption.com/tours";
 
  
});