SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Evangelist
    Join Date
    Feb 2005
    Posts
    452
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Problem with Jquery and twitter

    Hi. Am trying to display my latest twitter updates on my webpage. Have been following a tutorial by Chris Coyier. However, my updates are not showing up as text on my page. This is the code that deals with it and here is a link to the webpage in question http://www.dazthomas.net

    Code:
    <script src="http://www.dazthomas.net/js/jquery-1.2.6.min.js" type="text/javascript"></script>
    	
    	<script type="text/javascript">
    		$(function(){
    		
    			$.getJSON('http://twitter.com/status/user_timeline/DarrenThomas.json?count=1&callback=?', function(data){
    				$.each(data, function(index, item){
    					$('.twitter .inside').append('<div class="tweet"><p>' + item.text + '</p></div>');
    				});
    			});
    Any ideas what I am doing wrong guys???

  2. #2
    Function Curry'er JimmyP's Avatar
    Join Date
    Aug 2007
    Location
    Brighton, UK
    Posts
    2,006
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    "http://www.dazthomas.net/js/jquery-1.2.6.min.js" does not exist (404). <- There's your problem.
    James Padolsey
    末末末末末末末末末末末末末末末末末末末
    Awesome JavaScript Zoomer (demo here)
    'Ajaxy' - Ajax integration solution (demo here)

  3. #3
    SitePoint Evangelist
    Join Date
    Feb 2005
    Posts
    452
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey. Your JimmyP. Changed the link to my file, it worked when loaded first time, but then when I go to other pages etc not showing. Seems a bit inconsistent. Any ideas??

  4. #4
    SitePoint Evangelist
    Join Date
    Feb 2005
    Posts
    452
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Still not showing up right. Even when I have changed the link, any ideas why??


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •