twitter's profile widget include in a separate javascript file

Posted by raulricardo21 on Stack Overflow See other posts from Stack Overflow or by raulricardo21
Published on 2010-03-17T06:22:34Z Indexed on 2010/03/17 6:51 UTC
Read the original article Hit count: 304

Filed under:
|
|

Hi stackoverflowers,

I'm just trying to put the custom twitter's profile widget on my page, but I like to put the code in a separate javascript's file.

so, I don't know how to do that.

I mean, I put this on head tag

<script type="text/javascript" src="http://widgets.twimg.com/j/2/widget.js"></script>

the create a div for the widget, an put the rest of the code in another javascript

new TWTR.Widget(json_twitter_options).render().setUser('username').start();

But, how to "put" the result in that widget... I'm totally lost, thanks in advance.

© Stack Overflow or respective owner

Related posts about twitter

Related posts about widget