I decided to try this, but I am just looping over the results and updating the text. This works but I am seeing some really odd results. The regex doesn't seem to completely work, its wrapping more text than it should
Code:
onRefresh: function(){
var twitterStore = Ext.getCmp('twitter-list').getStore();
Ext.getBody().mask(false, '<div class="loading">Loading…</div>');
Ext.util.JSONP.request({
url: 'http://search.twitter.com/search.json',
callbackKey: 'callback',
params:{
q: 'cfunited',
rpp: 50,
suppress_response_codes: true
},
callback: function(result) {
var tweets = result.
for( var i=0; i < tweets.length; i++){
tweets[i].text = tweets[i].text.replace(/(http:\/\/)(.*)\s/gi, '<a href="$1$2">$1$2</a>');
}
twitterStore.loadData(tweets);
Ext.getBody().unmask();
}
});
},