Skip to content

Instantly share code, notes, and snippets.

Last active Jul 15, 2016
What would you like to do?
The News page which will be displayed as an inline VF page in Account detail page.
<apex:page standardController="Account" extensions="NewsWidgetController" sidebar="false" showHeader="false" standardStylesheets="false" applyHtmlTag="false" applyBodyTag="false" docType="html-5.0" >
Google News
<div width="100%" style="text-align:center" >
<img src="{!$Resource.News_Loading}" id="loader"></img>
<div id="news">
<script type="text/javascript" src="//"></script>
<script type="text/javascript" src="{!$Resource.GoogleNewsJS}"></script>
<script type="text/javascript">
$( document ).ready (
function() {
getNews( encodeURIComponent( "{!Account.Name}" ) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment