This may also be simple Javascript related but here is the link to IO just in case: YUI3 IO
I have a YUI instance created and am using the io function to retrieve data from the server.
YUI().use('event', 'node', 'io', function(Y) {
Y.on('io:start', onstart, this, true);
Y.on('io:success', changecontent, this);
Y.on('io:end', onend, this, true);
// irrelevant code has been omitted
function loadpage(e) {
var request = Y.io(uri+"/"+tgt);
}
});
Does this mean that if I, at any time, use Y.io on start/success/end it will call onstart/changecontent/end respectively?
I want to make multiple calls to the server but have different functions to handle the results from each call. How would I go about doing this?
Thank you.