4
I'm just now facing an issue related to this.
When you're developing a module for everyone's use and wish to include JavaScript in the HEAD, you don't want to make a change to the admin file itself.
I'm having a very long process to handle and wish to display a progress bar without page refresh, and hence am using JavaScript to do so.
In 2.0.9.2, xoops_cp_header() essentially hard-codes the HEAD data. I think the ability to add a JavaScript file in the HEAD would be useful, that would permit calls such as:
xoops_cp_header(); // For default
xoops_cp_header('/modulename/file.js'); // Adds a file
xoops_cp_header(array('/modulename/file1.js','/modulename/file2.js')); // Includes two, etc. files
This would make it possible to make modules more portable when they have to rely on some JavaScript operation.
Comments?
Eric