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

  • SEARCH
  • Home
  • 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 6740715
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:38:20+00:00 2026-05-26T11:38:20+00:00

How can I load the twitter below on via AJAX loaded page? I have

  • 0

How can I load the twitter below on via AJAX loaded page?

I have the twitter widget on a page called twitter.php

<script src="http://widgets.twimg.com/j/2/widget.js"></script>
<script>
new TWTR.Widget({
  version: 2,
  type: 'profile',
  rpp: 4,
  interval: 30000,
  width: 455,
  height: 563,
  theme: {
    shell: {
      background: '#e70e6f',
      color: '#ffffff'
    },
    tweets: {
      background: '#ccc8cc',
      color: '#ffffff',
      links: '#08a9cd'
    }
  },
  features: {
    scrollbar: false,
    loop: false,
    live: false,
    behavior: 'all'
  }
}).render().setUser('gtteam').start();
</script>

the html,

<a href="#" class="load">click to load</a> 

<div id="container"></div>

the jquery,

$(document).ready(function(){

        $('.load').click(function(){

             $('#container').load('twitter.php');
             return false;
        });

    });

the error message on firebug,

TWTR is not defined [Break On This Error] (17 out of range 16)

How can I get around to this?

  • 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-26T11:38:21+00:00Added an answer on May 26, 2026 at 11:38 am

    iframe is the solution I think:

    iframe.php,

    <iframe src="twitter.php" marginheight="0" marginwidth="0" frameborder="0" 
    style="border:0;height:600px;width:600px;" scrolling="no"   ></iframe>
    

    twitter.php,

    <script src="http://widgets.twimg.com/j/2/widget.js"></script>
    <script>
    new TWTR.Widget({
      version: 2,
      type: 'profile',
      rpp: 4,
      interval: 30000,
      width: 455,
      height: 563,
      theme: {
        shell: {
          background: '#e70e6f',
          color: '#ffffff'
        },
        tweets: {
          background: '#ccc8cc',
          color: '#ffffff',
          links: '#08a9cd'
        }
      },
      features: {
        scrollbar: false,
        loop: false,
        live: false,
        behavior: 'all'
      }
    }).render().setUser('gtteam').start();
    </script>
    

    jquery,

    $(document).ready(function(){
    
        $('.load').click(function(){
            $('#container').load('iframe.php');
            return false;
        });
    
    });
    

    Works perfectly.

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

Sidebar

Related Questions

This is my code : <script src=http://widgets.twimg.com/j/2/widget.js></script><script>new TWTR.Widget({version: 2,type: profile,rpp: 4,interval: 30000,width: 650,height: 202,theme:
Im using jQuery/PHP/MySql to load twitter search results on the page but limited to
I have a web application that can load plugins through reflection. It currently uses
I was successful in installing the TWITTER API jquery script, but I can't figure
On twitter (new twitter) and facebook they now have the the ability to load
I tried to load a page in my app, and the below error pop
I load http://search.twitter.com/search.json?callback=formatTweets&q=somehashTag&timestamp=+new Date().getTime(); I suddenly got Error: illegal character Source File: http://search.twitter.com/search.json?callback=formatTweets&q=sunshine&timestamp=1305631097599 Line:
** UPDATE: Apparently the problem morphed into an XMLHttpRequest problem: XMLHttpRequest cannot load http://api.twitter.com/1/statuses/user_timeline.json?screen_name=bogdanch&.
page here: http://webpages.marshall.edu/~glasser1/jquery.html I'm trying to replicate the old twitter page login style. If
I have a Ruby script in my Rails app that I use to load

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.