You need to sign in to do that
Don't have an account?
reeti bibhuti
Rss feed on Community home page
Reeti Bibhuti
RSS feed using jquery
I made lighting component for rss feed to show on Community home page. ThereI have a jquery method and its very simple thing. $.ready(function(){
But looks like this method is firing twice. How to fix this.
Here is the code of auro component :
<aura:component implements="forceCommunity:availableForAllPageTypes" access="global" >
<ltng:require scripts="{!$Resource.jQuery}"
afterScriptsLoaded="{!c.loadJquery}" />
<div id="RSSname" class="slds-page-header"></div>
<div id="rssfeed" class="rssfeed"></div>
</aura:component>
First part of js file:
({
loadJquery : function(component, event, helper) {
jQuery(document).ready(function(){
Or is there any way to see CNN/BBC news feed on the community home page?
RSS feed using jquery
I made lighting component for rss feed to show on Community home page. ThereI have a jquery method and its very simple thing. $.ready(function(){
But looks like this method is firing twice. How to fix this.
Here is the code of auro component :
<aura:component implements="forceCommunity:availableForAllPageTypes" access="global" >
<ltng:require scripts="{!$Resource.jQuery}"
afterScriptsLoaded="{!c.loadJquery}" />
<div id="RSSname" class="slds-page-header"></div>
<div id="rssfeed" class="rssfeed"></div>
</aura:component>
First part of js file:
({
loadJquery : function(component, event, helper) {
jQuery(document).ready(function(){
Or is there any way to see CNN/BBC news feed on the community home page?