Icontem

File: index.html

Recommend this page to a friend!
  Classes of Cesar D. Rodas  >  jstter  >  index.html  >  Download  
File: index.html
Role: Example script
Content type: text/plain
Description: Simple Example
Class: jstter
Retrieve statuses of a given Twitter user
Author: By
Last change: Update of index.html
Date: 16 days ago
Size: 859 bytes
 

Contents

Class file image Download
<html>
<head>
    <title>jstter simple class</title>
    <script src="./jstter.js"></script>
    <script>
        var obj = new jstter.twitter();
        obj.each(function(tweet) {
            //alert(tweet.text);
        });
        //obj.users(['crodas', 'gallir', 'chelun']);
        //obj.users(['crodas', 'gallir', 'chelun']);
        //obj.query("paola bracho");
        obj.users('crodas');
        obj.render("container", "model");
        obj.fetch();
        setInterval(function() { obj.fetch() }, 15000);
    </script>
</head>
<body>
<table>
    <thead>
        <tr>
            <td>Who?</td>
            <td>What?</td>
       </tr>
    </thead>
    <tbody id="container">
    </tbody>
</table>
<table style="display:none">
    <tr id="model">
        <td><b>@#from_user</b></td>
        <td><em>#text</em></td>
    </tr>
</table>

</body>
</html>