Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Making jscript and jquery twitter widget scripts to work in IEMaking jscript and jquery twitter widget scripts to work in IE
Previous
 
Next
New Post
1/9/2012 11:01 PM
 

Making jscript and jquery twitter widget scripts to work in IE

Ok, I am trying to implement a working Twitter Feed widget on a DNN website. I went and found

two different scripts, and put them into a container skin inside of a <div> tag toward the bottom of the container skin.

#1 In a nutshell, the first twitter feed script:

<dnn:ACTIONBUTTON runat="server" id="dnnACTIONBUTTON4"  CommandName="ModuleSettings.Action" DisplayIcon="True" DisplayLink="false" />
        <div class="c_footer2">
        <h1></h1>
  <div id="widget-twitter" class="content2">
    <div id="widget-twitter-inner">
    </div>
 <script type="text/javascript" src="http://widgets.twimg.com/j/2/widget.j...
<script>
jQuery(document).ready(function(jQuery) {
    $.getScript('http://widgets.twimg.com/j/2/widget.js', function() {
otweet = new TWTR.Widget({
  id: 'widget-twitter-inner',  
  version: 2,
  type: 'profile',
  rpp: 4,
  interval: 6000,
  width: 'auto',
  height: 300,
  theme: {
    shell: {
      background: '#3f67a3',
      color: '#fafafa'
    },
    tweets: {
      background: '#faf2fa',
      color: '#061859',
      links: '#219de0'
    }
  },
  features: {
    scrollbar: false,
    loop: false,
    live: false,
    hashtags: true,
    timestamp: true,
    avatars: false,
    behavior: 'all'
  }
}).render().setUser('xxxUser').start();

})
})
</script>
<script src="/js/render/edit.js"></script>
</div>

#2 In a nutshell the second twitter feed script:

<dnn:ACTIONBUTTON runat="server" id="dnnACTIONBUTTON4"  CommandName="ModuleSettings.Action" DisplayIcon="True" DisplayLink="false" />
        <div class="c_footer2">
         <div class="content2" id="twitterbox">
         <div id="innerdiv"></div>
  
   <script type="text/javascript" src="http://widgets.twimg.com/j/2/widget.j...>
<script type="text/javascript">

new TWTR.Widget({
  id: 'innerdiv',     
  version: 2,
  type: 'profile',
  rpp: 4,
  interval: 6000,
  width: 'auto',
  height: 300,
  theme: {
    shell: {
      background: '#3f67a3',
      color: '#fafafa'
    },
    tweets: {
      background: '#faf2fa',
      color: '#061859',
      links: '#219de0'
    }
  },
  features: {
    scrollbar: false,
    loop: false,
    live: false,
    hashtags: true,
    timestamp: true,
    avatars: false,
    behavior: 'all'
  }
}).render().setUser('xxxuser').start();
document.getElementById('innerdiv').click()

With the Script #1, sometimes the twitter feed box loads properly, but sometimes it loads in a wierd incomplete way, and page hangs with a "one item remaining" message.

The feeds are there, but the box is not completely loaded, AND the browser continues to "LOAD" for over 60 seconds or even forever.

Other times, the twitter box does load completely. It is easy to get the twotter box to complete loading by just clicking anywhere on the screen. The box is on all pages, and changes pages will now display a correct twitter box.

With Script #2, on the HOME page, the twitter box always loads completely, and there is no "one item remaining" hang.  However, when we navigate to other pages, the twitter box is incompletely rendered, though again there is no "one item remaining" hang. In this case the box can always be rendered completely by doing a page refresh. But navigating between pages results in the incomplete box.

SO far, all of these tests were in IE 7 or IE 8 Browser

Questions:

1. What is going on? Is there any way in Dot Net Nuke  to get the first script to reliably load the box, or the 2nd script to render the box correctly on all pages? Perhaps there is only a simple setting somewhere.

2. Is there a web source for javascript or jquery scripts that load Twitter feed boxes that also WORK with Dot Net Nuke?

Thanks,

Richard

 

 

 

 

 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Making jscript and jquery twitter widget scripts to work in IEMaking jscript and jquery twitter widget scripts to work in IE


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out