How to implement profile widget in content loaded using ajax?


I’m using this code to create widgets. But how to create widgets in places where content is loaded by ajax and injected into existing page.

<script src=""></script>
    new TWTR.Widget({
        version: 2,
        type: 'profile',
        rpp: 30,
        interval: 5000,
        width: 310,
        height: 472,
        theme: {
            shell: {
                background: '#333333',
                color: '#ffffff'
            },tweets: {
                background: '#000000',
                color: '#ffffff',
                links: '#4aed05'
        features: {
            scrollbar: false,
            loop: true,
            live: true,
            hashtags: true,
            timestamp: true,
            avatars: false,
            behavior: 'default'


I’ve been having the exact issue and have yet to find a fix for it. Any help would be appreciated.

closed #3

closed #4

closed #5