5
Keeping only one processRequest() is not that easy indeed. I used xajax but not in a block, so I didn't face this issue.
I found something like
$xoopsTpl->assign( 'xoops_module_header' , '<link rel="stylesheet" type="text/css" href="'.XOOPS_URL.'/modules/mysearch/css/style.css" /><script type="text/javascript" src="'.XOOPS_URL.'/modules/mysearch/js/scriptaculous/lib/prototype.js"></script><script type="text/javascript" src="'.DELTA_URL.'/modules/mysearch/js/scriptaculous/src/scriptaculous.js"></script>'.@$xoopsTpl->get_template_vars("xoops_module_header") );
in mysearch module but this way you can add something at the end or beginning of xoops_module_header.
Maybe you should check if xoops_module_header contains xajax assignment code, put a sign like a separator in module header part( like <!--xajaxseparator--> ), explode xoops_module_header into block part of script, add some code and reassign xoops_module_header. For now nothing else cross my mind.
Don't follow me. I'm lost too.