Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

6. Building a Quote of the Day Web Part ... > Part II: Preparing Quote of the Day ...

Part II: Preparing Quote of the Day Web Part for Redistribution

During the creation of the Quote of the Day web part, we leveraged the SharePoint 2010 JSOM to retrieve and display a random quote from a list of quotes, all without using a single line of custom code.

Although the Quote of the Day web part is working, it has a few disadvantages in its current configuration. First, managing JavaScript through the CEWP is fragile and error-prone. Yes, the CEWP allows Power Users to enrich pages with dynamic functionality. However, all it takes is one wrong character to break the whole page! Additionally, all of that JavaScript is included as-is on the page. While adding one Quote of the Day Web Part to a page would probably not make much difference, adding a few of them, especially combined with other similar web parts, will have a significant impact on the size and performance of the page.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint