Mashup of the Day
TwitLinks JSON

You can use TwitLinks.com JSON to put links onto your website or blog. The json call can take a callback GET parameter i.e. http://twitlinks.com/json.asmx?callback=processTwitLinks.

Example code using prototype is shown below. The demo box shows this code being run on this page.

    <div id="twitOut" style="font-size:10pt;font-family:Courier New"></div>
    <script type="text/javascript">

    processTwitLinks = function ( twits )
    {
        twits.each (   
            function ( twit ) {
                var element = new Element ( 'div' );
                element.appendChild ( document.createTextNode ( twit.Message ) );
                $ ( 'twitOut' ).insert ( element );
            }
        );
    }

    </script>   
    
    <script type="text/javascript" src="http://twitlinks.com/json.asmx?callback=processTwitLinks"></script>
    
Demo