none
Has anyone been successful at embedding a “Quote of the Day?” RRS feed

  • Question

  • I tried to do this per the following link:  

    http://sharepointgeorge.com/2009/sharepoint-quote-day-web-part-cewp-code-required/

    SharePoint returned that it can’t find the URL. The source is a site called  Brainy Quotes. I went to the site http://www.brainyquote.com/link/feed_qotd.htmland they have a slightly different script than the one provided by the tutorial author. The script at the site is as follows:

    ::::::::::::::::::::::::::Begin script: ::::::::::::::::::::::::::

    <script type="text/javascript" src="http://www.brainyquote.com/link/quotebr.js"></script><small><i>more <a href="http://www.brainyquote.com/quotes_of_the_day.html" target="_blank">Quotes</a></i></small>

    ::::::::::::::::::::::::::End script: ::::::::::::::::::::::::::

    The script above returns the same error.

    Has anyone been successful embedding a quote of the day, or something similar?

    Thanks!

     

    Thursday, May 12, 2011 3:46 PM

Answers

  • I only posted a blog entry about using RSS viewer which I guess you saw and managed to reproduce. The js way also worked (used a web part page for the test). The steps are same as in your original post. Notice that BQ's script does not produce a document.write code fragment, it could be some other item on your page. Also, inspect the source again in  your CEWP to make sure it only has the script.
    AK
    • Marked as answer by Wayne Fan Thursday, May 19, 2011 8:52 AM
    Tuesday, May 17, 2011 4:49 PM

All replies

  • In 2010, the external js may be removed when you save the source. There is actually another way of doing it especially since BQ offers RSS feed.
    Insert an RSS viewer web part (from the content rollup group). Edit the web part and set the feed url to http://feeds.feedburner.com/brainyquote/QUOTEBR (or whatever your rss source is). See feed limit to 1 and Refresh time to 1440 (24 hours, since it changes every day :-)) and check Show feed title and description. Save and test. You can also set chrome type to None since the feed has its own header. I am preparing a short blog post based on this how to.
    AK

    Friday, May 13, 2011 11:26 AM
  • Thank you very much for the reply!

     

    > In 2010, the external js may be removed when you save the source.

     

    I tried this but must be doing something wrong. While it works to display the quote content, there is also some code that is added. As one example, I get a

    “document.write(‘”

    ...Then the quote of the day content...

    Then a close reference “‘);” after the quote.

     

    I’m using the Content Editor Web part to embed the source.

     

    > There is actually another way of doing it especially since BQ offers RSS feed.

    Insert an RSS viewer web part (from the content rollup group). Edit the web part and set the feed url to http://feeds.feedburner.com/brainyquote/QUOTEBR (or whatever your rss source is). See feed limit to 1 and Refresh time to 1440 (24 hours, since it changes every day :-)) and check Show feed title and description. Save and test. You can also set chrome type to None since the feed has its own header.

     

    This works GREAT as do RSS feeds in general.

     

    > I am preparing a short blog post based on this how to.

     

    I would appreciate it if you’d provide a link to the article.

     

    Thanks!

     

    Tuesday, May 17, 2011 3:56 PM
  • I only posted a blog entry about using RSS viewer which I guess you saw and managed to reproduce. The js way also worked (used a web part page for the test). The steps are same as in your original post. Notice that BQ's script does not produce a document.write code fragment, it could be some other item on your page. Also, inspect the source again in  your CEWP to make sure it only has the script.
    AK
    • Marked as answer by Wayne Fan Thursday, May 19, 2011 8:52 AM
    Tuesday, May 17, 2011 4:49 PM