getJson is not working, no resluts

getJson is not working, no resluts

Hi,


I found this page that is working :


This is the source code for that page, I changed only my url inside getJSON function :


Type in something reutersey and click the <b>search</b> button!<br>
<input id="searchterm" />
<button id="search">search</button>
<div id="rs"></div>
  <script src="http://code.jquery.com/jquery-latest.min.js">  
  <script type="text/javascript">
  $("#search").click(function(){
    $("#rs").empty();
    $.getJSON("http://localhost:8983/solr/db/select?q="+ $("#searchterm").val() + "&wt=json&json.wrf=?&indent=true", function(result){
     alert("result");  
     var Parent = document.getElementById("rs");
      for (var i = 0; i < result.response.docs.length; i++) {
        var thisResult = "<b>" + result.response.docs[i].title + "</b><br>" + result.response.docs[i].dateline
        + ", " + result.response.docs[i].text + "<br>";
        var NewDiv = document.createElement("div");
        NewDiv.innerHTML = thisResult;
        Parent.appendChild(NewDiv);
      }
    });
  });
</script>


but when I enter a word to search there is no result, for example when I enter "ipod" , but I went directly in the browser and typed :


I got results.

Your help is appreciated.
thanks