Search code examples
jqueryjfeed

Jquery jFeed 403 error


So I have jFeed working on another site and i'm testing it right now with the most basic instance of the plugin but it's still acting strange and giving me a 403 forbidden error.

My response from firebug...

<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>

Here's the code...

<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>

Solution

  • After all this it was a permissions problem with the host. Always check with them!