The weird thing is that I have used the exact same module code in a previous module and it loaded the module JS AFTER the JQuery so it worked fine, but in this case it is not working.
public function init() {
parent::init();
// add necessary admin page scripts
// ---------------------------------------------------------------------------------
$this->config->styles->append( $this->config->urls->ProcessTestSearch . "css/demo_table.css" );
$this->config->styles->append( $this->config->urls->ProcessTestSearch . "css/demo_table_jui.css" );
$this->config->scripts->append( $this->config->urls->ProcessTestSearch . "js/dataTables/jquery.dataTables.min.js");
//$this->config->scripts->append( $this->config->urls->ProcessTestSearch . "js/dataTables/dataTables.fnSetFilteringDelay.js" );
$this->config->scripts->append( $this->config->urls->ProcessTestSearch . "ProcessTestSearch.js" );
}
Is there something I am doing wrong? Is there some way to control the order in which modules output the JS script links into the header? I presume this must be happening because, for some reason, the core JQuery module is being loaded after my module, and so therefore the scripts are being added after my module scripts.













