daily pastebin goal
79%
SHARE
TWEET

Untitled

a guest Oct 22nd, 2018 110 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         function LoadCharactersList(accountid)
  2.         {
  3.             var ajax = new XMLHttpRequest();
  4.             var method = "GET";
  5.             var url = "retrive_characters.php?q=";
  6.             var asynchronous = true;
  7.  
  8.             // Invia una richiesta @ mysql_data.php
  9.             ajax.open(method, url+accountid, asynchronous);
  10.             ajax.send();
  11.  
  12.             // Riceve risposta da mysql_data.php
  13.             ajax.onreadystatechange = function()
  14.             {
  15.                 if(this.readyState == 4 && this.status == 200)
  16.                 {
  17.                     // Converto i dati ricevuti da @ retrive_characters.php
  18.                     var cData = JSON.parse(this.responseText);
  19.                    
  20.                     console.log(cData);
  21.                 }
  22.             }
  23.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top