Guest User

Untitled

a guest
Jul 20th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.42 KB | None | 0 0
  1. unction ajaxLoader(url)
  2.  
  3.     {
  4.  
  5.         if (document.getElementById) {
  6.  
  7.             var x = (window.ActiveXObject) ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
  8.  
  9.             }
  10.  
  11.             if (x)
  12.  
  13.                 {
  14.  
  15.             x.onreadystatechange = function()
  16.  
  17.                     {
  18.  
  19.                 if (x.readyState == 4 && x.status == 200)
  20.  
  21.                         {
  22.                        
  23.  
  24.                         alert('sent')
  25.  
  26.                     }
  27.  
  28.                     }  
  29.  
  30.                 x.open("GET", URL, true);
  31.  
  32.                 x.send(null);
  33.  
  34.                 }
  35.  
  36.         }
Add Comment
Please, Sign In to add comment