I have a view that I created in my GWT application, and I would like to enable / use one of the Twitter widgets that provides twitter (e.g. this http://twitter.com/about/resources/widgets/widget_search ). They, as they inserted, have a script that then writes out the corresponding html. I tried various ways to insert it, but I could not get it to work - we got it working by placing it in an iFrame, but this showed other problems.
Here is an example of the code that twitter provides for embedding it:
<script src="http://widgets.twimg.com/j/2/widget.js"></script> <script> new TWTR.Widget({ version: 2, type: 'search', search: 'rainbow', interval: 30000, title: 'It\ a double rainbow', subject: 'Across the sky', width: 250, height: 300, theme: { shell: { background: '#8ec1da', color: '#ffffff' }, tweets: { background: '#ffffff', color: '#444444', links: '#1985b5' } }, features: { scrollbar: false, loop: true, live: true, behavior: 'default' } }).render().start(); </script>
JoseM source share