Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-15-2012, 11:19 PM   PM User | #1
foxylad
New Coder

 
Join Date: Feb 2011
Posts: 22
Thanks: 5
Thanked 0 Times in 0 Posts
foxylad is an unknown quantity at this point
jquery twitter script has stopped working

Hi Guys.
This script below has been working fine for months and displaying the users latest 3 tweets on their site up until a few days ago. It now just hangs on 'Loading Tweets...'
Can anyone help?
Code:
(function($){$.fn.getTwitter=function(options){$.fn.getTwitter.defaults={userName:null,numTweets:5,loaderText:"Loading
tweets...",slideIn:true,slideDuration:0,showHeading:true,headingText:"Latest Tweets",showProfileLink:true,showTimestamp:true};var
o=$.extend({},$.fn.getTwitter.defaults, options);return this.each(function(){var
c=$(this);c.hide().empty().addClass("twitted");if(o.showHeading){c.append("<h2>"+o.headingText+"</h2>")}var twitterListHTML="<ul
id=\"twitter_update_list\"><li></li></ul>";c.append(twitterListHTML);var tl=$("#twitter_update_list");tl.hide();var preLoaderHTML=$("<p
class=\"preLoader\">"+o.loaderText+"</p>");c.append(preLoaderHTML);if(o.showProfileLink){var profileLinkHTML="<p class=\"profileLink\"><a
href=\"http://twitter.com/"+o.userName+"\">http://twitter.com/"+o.userName+"</a>
</p>";c.append(profileLinkHTML)}c.show();$.getScript("http://twitter.com/javascripts/blogger.js");$.getScript("http://twitter.com/statuses/us
er_timeline/"+o.userName+".json?callback=twitterCallback2&count="+o.numTweets,function()
{$(preLoaderHTML).remove();if(!o.showTimestamp){tl.find("li").each(function(){var timestampHTML=$(this).children("a");var
timestamp=timestampHTML.html();timestampHTML.remove();$(this).attr("title",timestamp)})}if(o.slideIn){var
tlHeight=tl.data("originalHeight");if(!tlHeight){tlHeight =
tl.show().height();tl.data("originalHeight",tlHeight);tl.hide().css({height:0})}tl.show().animate({height: tlHeight},
o.slideDuration)}else{tl.show()}tl.find("li:first").addClass("firstTweet");tl.find("li:last").addClass("lastTweet")})})}})(jQuery)
$(function(){$("#twitter").getTwitter({userName:"perfezionevalet",numTweets:3,loaderText:"Loading
tweets...",slideIn:true,showHeading:false,headingText:"Latest Tweets",showProfileLink:true})})
Cheers,
Foxy
foxylad is offline   Reply With Quote
Old 10-16-2012, 01:15 AM   PM User | #2
sunfighter
Senior Coder

 
Join Date: Jan 2011
Location: Missouri
Posts: 2,362
Thanks: 18
Thanked 347 Times in 346 Posts
sunfighter is on a distinguished road
Working code just don't stop working. Either you did something on your end or twitter did something on there's.
sunfighter is offline   Reply With Quote
Old 10-16-2012, 08:36 AM   PM User | #3
foxylad
New Coder

 
Join Date: Feb 2011
Posts: 22
Thanks: 5
Thanked 0 Times in 0 Posts
foxylad is an unknown quantity at this point
Quote:
Originally Posted by sunfighter View Post
Working code just don't stop working. Either you did something on your end or twitter did something on there's.
That's what I feared. I haven't changed anything my end so it must be Twitter.
Does anyone know of anything that has changed, and why the script above no longer works.

C
foxylad is offline   Reply With Quote
Old 10-24-2012, 08:49 PM   PM User | #4
emcquaid
New to the CF scene

 
Join Date: Oct 2012
Location: Plano, Texas
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
emcquaid is an unknown quantity at this point
Check http://stackoverflow.com/questions/1...topped-working

It works now for me!
emcquaid is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:03 AM.


Advertisement
Log in to turn off these ads.