i think what we need to do here is to add the ability to define your
own custom update code. basically, we need to define a handle on the
updatePageContent function. the only problem right now is that it
relies on some internal code so that will need to be separated out
first, which shouldn't be too hard.
so, when all done and working, you'll be able to do something like
this:
function myCustomContentHandlingFunction() {
// your code here
};
CiUI.updateContentFunct = myCustomContentHandlingFunction;
before making this change, we would probably also want to specify what
AJAX should return (text || XML). so the full configuration would look
like this:
CiUI.ajaxResponseType = "XML"; // could also be "TEXT"
CiUI.updateContentFunct = myCustomContentHandlingFunction;
this all could then be generalized into a single custom initialization
object, i.e.:
CiUI.Preferences = ({'ajaxResponseType' : 'XML',
'updateContentFunct' : myCustomContentHandlingFunction});
what do you guys think?