31,003
edits
| Line 361: | Line 361: | ||
To ask Dolibarr that forge this header to include your own javascript file, you must just provide it to the llxHeader() function called by your page. | To ask Dolibarr that forge this header to include your own javascript file, you must just provide it to the llxHeader() function called by your page. | ||
Example: | Example for /mymodule/mypage.php : | ||
<source lang="php"> | <source lang="php"> | ||
require('../main.inc.php'); | |||
$morejs=array("/mymodule/js/mymodule.js"); | $morejs=array("/mymodule/js/mymodule.js"); | ||
llxHeader('','Titre','','','','',$morejs,'',0,0); | llxHeader('','Titre','','','','',$morejs,'',0,0); | ||