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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Twitter - Profile WidgetTwitter - Profile Widget
Previous
 
Next
New Post
12/28/2009 12:34 PM
 

Hello..  I'm trying to get some code working from the twitter profile widget (http://twitter.com/goodies/widget_pro...).  But, when I enter this into a HTML module, IE8 errors out (see below).  I've tried this suggestion, but this too didn't work (http://www.dnncreative.com/Forum/tabid/88/forumid/4/tpage/1/view/topic/postid/21433/Default.aspx#22994).

I've tried a number of different DNN Twitter modules and since we're county government, they won't pay for a pay-type of module.

Anyone else have any ideas on how to get this working?  Thanks.. -Jeff

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Mon, 28 Dec 2009 13:50:11 UTC

Message: Object doesn't support this property or method
Line: 9
Char: 25601
Code: 0
URI:
http://widgets.twimg.com/j/2/widget.js
 
 
 
New Post
12/28/2009 2:56 PM
 

I took a quick look at the code that the widget generates and there is nothing specific to the implementation that is dependent on DNN. 

I would start by doing two things.

1.) Review the code as it is rendered to the page, does it show EXACTLY how you had it when you added it?

2.) If #1 is correct, try making a regular HTML page with the script, see if you still get the error.


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
12/28/2009 4:02 PM
 

Hello, thank you for the reply.. After many trial and errors, I just decided to create a module which uses the config settings created by the twitter widgets page and grabbed a copy of the widgets.js file and placed that with the module as well.

After installing the module into DNN, added the module to a page and it worked without any errors on all browsers.

Thanks again.. -Jeff

 

 

 
New Post
1/12/2010 8:51 AM
 

Interesting as we see these errors when just loading a single test.htm page. On 32 bit and 64 bit versions of IE on windows 7 with compatibility mode set.

Just going to use RSS which i think is better in many ways -- at least the content lives on your site.

 
New Post
1/12/2010 9:17 AM
 

Here's the code I used for the "Tweet" module which seems to work well..  I don't get any JS errors when using this.  Hope this will help someone.

I tried to create a settings page to pass the colors, etc along to the javascript, but it didn't work out well and I haven't had time to continue working on it.

First, go to http://twitter.com/goodies/widget_profile to get the configuration which you'd like.  Grab the code and put this configuration code between the divs on the tweet.ascx page.  I added "type="text/javascript"" to the script areas to ensure there aren't any issues; twitter code leaves these out.

Grab a copy of the widget.js file from http://widgets.twimg.com/j/2/widget.js and put it in the /js folder.  If the URL to the js file is blocked in this posting, you can get the URL from the above twitter URL; click on "Finish and grab code".

Module Folder/File Structure:
DesktopModules
     /TweetModule
           /js/widget.js
          /Tweet.ascx
         /Tweet.ascx.vb

Tweet.acsx
<%@ Control Language="VB" AutoEventWireup="false" CodeFile="Tweet.ascx.vb" Inherits="DesktopModules_Tweet_Tweet" %>

<div id="Tweet">
    <script type="text/javascript" src="js/widget.js"></script> // keep this line, do not over-write this
    <script type="text/javascript">
        new TWTR.Widget({
          version: 2,
          type: 'profile',
          rpp: 20,
          interval: 6000,
          width: 'auto',
          height: 600,
          theme: {
              shell: {
                  background: '#333333',
                  color: '#ffcc00'
              },
              tweets: {
                  background: '#000000',
                  color: '#ffcc00',
                  links: '#993300'
              }
          },
          features: {
              scrollbar: true,
              loop: false,
              live: true,
              hashtags: true,
              timestamp: true,
              avatars: true,
              behavior: 'all'
          }
      }).render().setUser('%tweeterusername%').start();  // Enter your twitter user name here
    </script>
</div>

Tweet.acsx.vb
Imports DotNetNuke
Imports System.Web.UI
Imports DotNetNuke.Entities.Modules
Imports DotNetNuke.Security.Permissions

Partial Class DesktopModules_Tweet_Tweet
    Inherits DotNetNuke.Entities.Modules.PortalModuleBase

    Private Sub Page_Init(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Init
        Page.ClientScript.RegisterClientScriptInclude("TweetScript", ControlPath & "js/widget.js")
    End Sub
End Class
 

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Twitter - Profile WidgetTwitter - Profile Widget


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