as learned on #Mochikit:

<Jerub> oh hey, you just don't understand Deferred yet.
<Jerub> it's quite simple.
<Jerub> just do a doSimpleXMLHttpRequest(..).addCallback(callmewhenyouaredone); <Jerub> where callmewhenyouaredone is along the lines of: function callme(response) { ... }
<Jerub> and do define a function to handle errors, you just do:
<Jerub> doSimpleXMLHttpRequest(..).addBoth(callmewhenyouaredone, callmeonerror);

Reply via email to