2011-10-14 90 views
0

因此,我已經在另一個站點上工作,並且正在使用該插件的最基本實例進行測試,但它仍然很奇怪,並給我一個403禁止的錯誤。Jquery jFeed 403錯誤

我從螢火蟲響應...

<h1>Forbidden</h1> 
<p>You don't have permission to access /proxy.php 
on this server.</p> 
<p>Additionally, a 404 Not Found 
error was encountered while trying to use an ErrorDocument to handle the request.</p> 
<hr> 
<address>Apache mod_fcgid/2.3.6 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at m.dudnyk.com Port 80</address> 
</body></html> 

下面的代碼...

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.js"></script> 
<script src = "src/jquery.jfeed.pack.js"></script> 

<script> 
jQuery(function() { 

    jQuery.getFeed({ 
     url: 'proxy.php', 
     data: {url:'http://feeds.nytimes.com/nyt/rss/Technology'}, 

     success: function(feed) { 

      jQuery('#result').append('<h2>' 
      + '<a href="' 
      + feed.link 
      + '">' 
      + feed.title 
      + '</a>' 
      + '</h2>'); 

      var html = ''; 

      for(var i = 0; i < feed.items.length && i < 5; i++) { 

       var item = feed.items[i]; 

       html += '<h3>' 
       + '<a href="' 
       + item.link 
       + '">' 
       + item.title 
       + '</a>' 
       + '</h3>'; 

       html += '<div class="updated">' 
       + item.updated 
       + '</div>'; 

       html += '<div>' 
       + item.description 
       + '</div>'; 
      } 

      jQuery('#result').append(html); 
     }  
    }); 
}); 

$(document).ready(function(e) { 


}); 
</script> 
</head> 

<body> 
<div id = "result"> 
</div> 
</body> 

回答

0

畢竟這是權限問題與主機。經常與他們覈對!