title: Jquery Ajax /GET method nothing happend when success
body: <p>I have a RESTful web service which runs on Glassfish Application Server. When I invoke the web services with /GET HTTP method on cURL, stored entries are fetched to console. I want to make a jQuery REST client - when I click the button, it must alert me to the returned JSON or XML entries. But in success method, nothing happened. My html page looks like below.</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
  &lt;title&gt;Başlıksız Belge&lt;/title&gt;
  
  &lt;/head&gt;
  
  &lt;body&gt;
  &lt;input type="submit" name="kaydet" id="kaydet" value="Kaydet" /&gt;
  &lt;script type="text/javascript" src="jquery-1.7.2.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
  var restURL="http://localhost:43842/KodcuComRESTful/kodcuRS/yazilar";
  
  $('#kaydet').click(function(){
        $.ajax({
      type: 'GET',
      url: restURL,
      dataType:"json",
      success: renderList,
        });
        return false;
  });
  
  
  function renderList(data) {
      alert(data);
  }
  &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>When I observed the request and response in Live HTTP headers program, it seems everything is OK. What is the problem?
  <img src="https://i.stack.imgur.com/h5eXw.png" alt="enter image description here"></p>