• EricBrownGTM
  • NEWBIE
  • 25 Points
  • Member since 2012

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies

I am using a VisualForce page for our Yammer embedded feeds and I am trying to modify some CSS via jQuery. I'm not exactly sure what is wrong, but the jQuery event won't execute and there for there is no CSS modification happening. Here is my code:

 

<apex:includeScript value="{!$Resource.YamEmbedJ}"/>
<script type="text/javascript">
$(window).load(function(){
$('yj-message-container').css('padding-left','40px');
});
</script>

 

The YamEmbedJ is a static resource of the jQuery library. I have also tried (document).ready event firing and no luck. Any assistance is appreciated.

I am using a VisualForce page for our Yammer embedded feeds and I am trying to modify some CSS via jQuery. I'm not exactly sure what is wrong, but the jQuery event won't execute and there for there is no CSS modification happening. Here is my code:

 

<apex:includeScript value="{!$Resource.YamEmbedJ}"/>
<script type="text/javascript">
$(window).load(function(){
$('yj-message-container').css('padding-left','40px');
});
</script>

 

The YamEmbedJ is a static resource of the jQuery library. I have also tried (document).ready event firing and no luck. Any assistance is appreciated.