Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 922113
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T18:58:31+00:00 2026-05-15T18:58:31+00:00

I was successful in installing the TWITTER API jquery script, but I can’t figure

  • 0

I was successful in installing the TWITTER API jquery script, but I can’t figure out how to make the script refresh with the latest tweets without refreshing the entire page IN 15 SECOND INTERVALS. Is it possible to use a .load or refreshID to reload script? Can I also include a fade in and fade out when the function reloads?

Anyone done this?

Many thanks.

Erik

Here is my script:

<script src="/src/jquery/jquery-1.4.2.min.js" type="text/javascript"></script>
<script src="/src/jquery/jquery.jtwitter.min.js" type="text/javascript"></script>

<script type="text/javascript">
$(document).ready(function(){
    // Get latest 6 tweets by jQueryHowto
    $.jTwitter('eriksnet', 3, function(data){
        $('#posts').empty();
        $.each(data, function(i, post){
        $('#posts').append(
            '<div class="post">'
            +' <div class="txt">'
            // See output-demo.js file for details
            +    post.text
            +' </div>'
            +'</div>'
        );
    });
});
});
</script>



<div id="posts">Getting Erik's tweets...</div>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T18:58:32+00:00Added an answer on May 15, 2026 at 6:58 pm

    look into a jquery plugin $.doTimeout, it makes this pretty trivial.

    http://benalman.com/projects/jquery-dotimeout-plugin/

    <script type="text/javascript">
    $(document).ready(function(){
        // Get latest 6 tweets by jQueryHowto
        $.doTimeout(15000, function() {
            $.jTwitter('eriksnet', 3, function(data){
                $('#posts').empty();
                $.each(data, function(i, post){
                    $('#posts').append(
                        '<div class="post">'
                        +' <div class="txt">'
                        // See output-demo.js file for details
                        +    post.text
                        +' </div>'
                        +'</div>'
                    );
                });
            });
            return true;
        });
    });
    </script>
    

    Just make sure that you include the dotimeout js file in your code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been successful with writing my own SQL access code with a combination of
Has anybody any successful remarks about having a team working via Remote Desktop? In
If the Mono project is successful it will pave the way for commercial software
I am using MailLogger to send a message about a failed/successful release. I would
I have been reading the MSDN documentation on subclassing and I have been successful
Shell (explorer.exe www.google.com) is how I'm currently opening my products ad page after successful
What's the best way to add a flash message, for successful or unsuccessful login
I tried to use this on my class library mylib.core.data.dll and got a successful
Since a few days ago, MySQL server on my Windows machine was not successful
We use Perl for GUI test automation. It has been very successful. We have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.