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>