How to implement profile widget in content loaded using ajax?


#1

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="http://widgets.twimg.com/j/2/widget.js"></script>
<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'
        }
}).render().setUser('AbhishekMunie').start();
</script>

#2

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


#3

#4

#5