Nice! Make sure you put this in the forge too: http://mootools.net/forge/
On Dec 28, 1:52 pm, Ciul <[email protected]> wrote: > Ok I've got a few free time. > > Working to fix it. > > Thanks again Kelvin. > > On 28 dic, 11:17, Kelvin <[email protected]> wrote: > > > > > Just had a quick peek, and I noticed tweets didnt get 'tweetified'. > > Looks like the succes method isn't called at all. Is that right? > > > On 25 dec, 12:55, Ciul <[email protected]> wrote: > > > > Hi MooTools pals. > > > > Here I bring to you a class that hopefully will make your life easier, > > > it extends the Rquest.JSONP class so proving the power of MooTools as > > > a nice OOP javascript framework. > > > > This class file is posted at > > > forums:http://www.mooforum.net/script-showcase-f25/modified-twitter-request-... > > > > How to implement it: > > > > [CODE] > > > var twitterRequest = new RequestTwitter({ > > > parameters: { > > > screen_name: 'quillamwa' // The twitter user account to > > > get tweets from. > > > } > > > }); > > > > twitterRequest.addEvent('complete', function(tweets) { > > > alert('Request completed'); > > > tweets.each(function(tweet, index) { > > > // Do something with each tweet. Usually here, you may > > > create elements and inject them to DOM. > > > // If you are only interested in tweets text, go for tweet.text > > > here. > > > }); > > > }); > > > > // Don't forget to add the onComplete event before making the request, > > > because twitter answers really fast hehehe. > > > twitterRequest.send(); > > > > [/CODE] > > > > And also has some custom methods I added it to make it helpfull: > > > > - updateParams(params, apiversion) > > > - deleteParams('param1', 'param2',...) > > > - changeUser('other-twitter-user-account') > > > - changeVersion(APIVersion) > > > > Merry christmass, > > > Ciul
