This is just a quick stab at it. I've not used mochi's async much yet,
so I may be a bit off-base on this, fyi.
var success = function(type, data, evt){ doc_manager.drawAOI(data); }
var error = function(){ alert("Oh noes! It no worky!"); }
var res = doXHR(url,
{queryString:formContents("aoiForm"),mimeType:'text/json'});
res.addCallbacks(success,error);
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"MochiKit" group.
To post to this group, send email to [EMAIL PROTECTED]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---