GIF89a php
Current File : /home/hencockfreshchic/public_html/app/js/makeDefault.js
function makeDefault(adds_id)
{
	if (window.XMLHttpRequest) {
            xmlhttp = new XMLHttpRequest();
        } else {          
            xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
        } 
  xmlhttp.onreadystatechange=function() 
   {
    if (this.readyState==4 && this.status==200) 
	{
      if(this.responseText==1)
      {
      	window.location.reload();
      }
      else
      {
      	popUP("Unable to make default address");
      }	
	}
  };
  xmlhttp.open("GET","makeDefault.php?adds_id="+adds_id,true);
  xmlhttp.send();
}

















function popUP(msgg)
{
  var x = document.getElementById("snackbar");
          $("#snack_msgg").html(msgg);
          x.className = "show";
        setTimeout(function(){ x.className = x.className.replace("show", "Hello"); }, 2500);
}