Hi
   Please send me the right code so that i can fetch my desired RSS feed
from http://robeson.edu/category/alerts/feed/ link.i shall be very thankful
to you..i am waiting for your reply.

Thanks
  Rohit Mahajan

On Tue, Jun 5, 2012 at 11:52 PM, rohit mahajan <rohit.mahaj...@gmail.com>wrote:

> Hi
>     I am using the below code
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
>     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
> <html xmlns="http://www.w3.org/1999/xhtml";>
> <head>
> <script type="text/javascript" src="
> http://www.google.com/jsapi?key=googlekey";>
> </script>
>
> <script type="text/javascript">
> google.load("feeds", "1") //Load Google Ajax Feed API (version 1)
> </script>
> </head>
> <body>
> <div id="feeddiv"></div>
>
> <script type="text/javascript">
>
> var feedcontainer=document.getElementById("feeddiv")
> //var feedurl="http://rss.slashdot.org/Slashdot/slashdot";
> var feedurl="http://robeson.edu/category/events/feed/";
> var feedlimit=5
> var rssoutput="<b>Latest Slashdot News:</b><br /><ul>"
>
> function rssfeedsetup(){
> var feedpointer=new google.feeds.Feed(feedurl) //Google Feed API method
> feedpointer.setNumEntries(feedlimit) //Google Feed API method
> feedpointer.load(displayfeed) //Google Feed API method
> }
>
> function displayfeed(result){
> debugger;
> if (!result.error){
> var thefeeds=result.feed.entries
> for (var i=0; i<thefeeds.length; i++)
> rssoutput+="<li><a href='" + thefeeds[i].link + "'>" + thefeeds[i].title +
> "</a></li>"
> rssoutput+="</ul>"
> feedcontainer.innerHTML=rssoutput
> }
> else
> alert("Error fetching feeds!")
> }
>
> window.onload=function(){
> rssfeedsetup()
> }
>
> </script>
> </body>
> </html>
>
> i am getting this error Object { code=400, message="Feed could not be
> loaded."}
>
> what does it means?
>
> Thanks
>   Rohit Mahajan
>
> On Tue, Jun 5, 2012 at 11:18 PM, Jeremy Geerdes <jrgeer...@gmail.com>wrote:
>
>> When I pulled the feed you linked on my own, I received the feed. But
>> when I tried to run it through the W3C Validator, they received a 503
>> error. If Google is receiving the 503 error as well, that would explain the
>> problem you're seeing.
>>
>>
>> Jeremy R. Geerdes
>> Generally Cool Guy
>> Des Moines, IA
>>
>> For more information or a project quote:
>> jrgeer...@gmail.com
>>
>> If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan
>> Church!
>>
>> On Jun 5, 2012, at 12:40 PM, rohit mahajan wrote:
>>
>> Hi
>>    Thanks for replying.i am using this
>> http://robeson.edu/category/alerts/feed/  rss feed.can u tell me is
>>  this rss feed is correct?because i am stuck here.i have no idea what to do.
>> thanks
>>  Rohit mahajan
>>
>> On Tue, Jun 5, 2012 at 6:09 PM, Jeremy Geerdes <jrgeer...@gmail.com>wrote:
>>
>>> There are a number of reasons that this could be happening. The most
>>> common things to check are listed below:
>>>
>>> Is your feed publicly accessible? If the feed cannot be accessed by
>>> Google servers, it cannot be accessed through the Feeds API. The API works
>>> because Google servers download and parse the feed, caching it for fast
>>> retrieval later.
>>>
>>> Is your feed valid? In short, if the feed is too badly mangled, Google's
>>> crawler may not be able to parse it. If it can't be parsed, you will get
>>> this message.
>>>
>>> Is the feed timing out? The Feeds API has a very short built-in timeout.
>>> If you call for a new feed, and that server takes a moment to respond or
>>> the feed is relatively large, this timeout could expire before the feed has
>>> finished downloading and parsing. Usually, if this is the case, the feed
>>> will load on subsequent attempts because, even though the initial operation
>>> timed out, Google's servers did eventually receive and parse the feed.
>>>
>>> Jeremy R. Geerdes
>>> Generally Cool Guy
>>> Des Moines, IA
>>>
>>> For more information or a project quote:
>>> jrgeer...@gmail.com
>>>
>>> If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan
>>> Church!
>>>
>>> On Jun 5, 2012, at 12:37 AM, Rohit wrote:
>>>
>>> > Hi
>>> >
>>> >   I am using Google feed API to fetch data from RSS feed.when i am
>>> > using demo RSS feeds its working fine.but when i use my desired RSS
>>> > feed it gives error "Feed could not be loaded". i am unable to
>>> > understand why i am getting this error.
>>> > please help me.
>>> >
>>> > Thanks
>>> >  Rohit Mahajan
>>> >
>>> > --
>>> > You received this message because you are subscribed to the Google
>>> > Groups "Google AJAX APIs" group.
>>> > To post to this group, send email to
>>> > google-ajax-search-api@googlegroups.com
>>> > To unsubscribe from this group, send email to
>>> > google-ajax-search-api+unsubscr...@googlegroups.com
>>> > To view this message on the web, visit
>>> > http://groups.google.com/group/google-ajax-search-api?hl=en_US
>>> > For more options, visit this group at
>>> > http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Google AJAX APIs" group.
>>> To post to this group, send email to
>>> google-ajax-search-api@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> google-ajax-search-api+unsubscr...@googlegroups.com
>>> To view this message on the web, visit
>>> http://groups.google.com/group/google-ajax-search-api?hl=en_US
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en
>>>
>>
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Google AJAX APIs" group.
>> To post to this group, send email to
>> google-ajax-search-api@googlegroups.com
>> To unsubscribe from this group, send email to
>> google-ajax-search-api+unsubscr...@googlegroups.com
>> To view this message on the web, visit
>> http://groups.google.com/group/google-ajax-search-api?hl=en_US
>> For more options, visit this group at
>> http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en
>>
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Google AJAX APIs" group.
>> To post to this group, send email to
>> google-ajax-search-api@googlegroups.com
>> To unsubscribe from this group, send email to
>> google-ajax-search-api+unsubscr...@googlegroups.com
>> To view this message on the web, visit
>> http://groups.google.com/group/google-ajax-search-api?hl=en_US
>> For more options, visit this group at
>> http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en
>>
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Google AJAX APIs" group.
To post to this group, send email to
google-ajax-search-api@googlegroups.com
To unsubscribe from this group, send email to
google-ajax-search-api+unsubscr...@googlegroups.com
To view this message on the web, visit
http://groups.google.com/group/google-ajax-search-api?hl=en_US
For more options, visit this group at
http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en

Reply via email to