title: jQuery getJSON url
body: <p>I am setting up a twitter feed into my site and have it working perfectly when you access it with a root page ie www.domain.com/index.php</p>
  
  <p>However when you have a url that is www.domain.com/category/page it doesn't not work, however if you use www.domain.com/index.php?cat=category&amp;page=page it works fine.</p>
  
  <p>So in the javascript I have the following</p>
  
  <pre><code>jQuery(function() {
      jQuery.getJSON('cache/twitter-json.txt', function(data){
      jQuery.each(data, function(index, item){
      jQuery('#tweet').append('code for displaying tweet');
  });
  });
  </code></pre>
  
  <p>So I have tried to change the url in the getJSON function to the full path www.domain.com/cache/twitter-json.txt but that doesn't work.</p>