I would like to reload the content of a YUI ScrollView in a similar manner to how a YUI DataTable can be reloaded via
myDataTable.showTableMessage("Loading...");
myDataTable.getDataSource().sendRequest('', { success: myDataTable.onDataReturnInitializeTable, scope: myDataTable });
(snippet courtesy of How can I refresh a YUI dataTable with a button?)
Is there a similar mechanism for reloading a YUI ScrollView?
Not directly, however you could use the node io plugin to reload the contents of the scroll view based on a timer or a user action. Something like this.
Y.one('content-node-selector').load('url', 'selector', function(){
//do something if needed
scrollView.syncUI();
});
Or you could just get the contentBox attribute and set the content that way (calling syncUI and handling any scroll changes you may need to make
Info on load Info on contentBox inherited from widget