title: Not getting response on live server
body: <p>I'm trying this code on my live server but I don't get response for my request, but when I paste the same code to <a href="http://jsfiddle.net" rel="nofollow">http://jsfiddle.net</a> it works perfectly. Is there something I need to install to my server or is the code broken? (my server <a href="http://dankbut.biz/lolapi/" rel="nofollow">http://dankbut.biz/lolapi/</a>)</p>
  
  <pre><code>function summonerLookUp() {
  var SUMMONER_NAME = "";
  SUMMONER_NAME = $("#userName").val();
  
  var API_KEY = "";
  API_KEY = $("#theKey").val();
  
  if (SUMMONER_NAME !== "") {
  
      $.ajax({
          url: 'https://na.api.pvp.net/api/lol/na/v1.4/summoner/by-name/' + SUMMONER_NAME + '?api_key=' + API_KEY,
          type: 'GET',
          dataType: 'json',
          data: {
  
          },
          success: function (json) {
              var SUMMONER_NAME_NOSPACES = SUMMONER_NAME.replace(" ", "");
  
              SUMMONER_NAME_NOSPACES = SUMMONER_NAME_NOSPACES.toLowerCase().trim();
  
              summonerLevel = json[SUMMONER_NAME_NOSPACES].summonerLevel;
              summonerID = json[SUMMONER_NAME_NOSPACES].id;
  
              document.getElementById("sLevel").innerHTML = summonerLevel;
              document.getElementById("sID").innerHTML = summonerID;
  
          },
          error: function (XMLHttpRequest, textStatus, errorThrown) {
              alert("error getting Summoner data!");
          }
      });
  } else {}
  }
  </code></pre>