[pmwiki-devel] markup modifying html header
Guillermo Calderon - INCO
calderon at fing.edu.uy
Mon Jun 11 11:35:20 CDT 2007
Hi,
I have a problem when trying to modify the global variable
HTMLHeaderFmt, inside a function which process a markup translation.
The context is as follows:
- Define a new markup:
Markup(..., ..., "/.../e", "Kepp(Fun1('$1')")
- Define function Fun1:
function Fun1(...) {
global HTMLHeaderFmt;
$HTMLHeaderFmt[] = "<script language='javascript'
type='text/javascript' src='....'></script>\n";
....
}
I want that certain javascript library was called, only if the
markup appears in the page.
But, it doesn't work. The variable $HTMLHeaderFmt is not modified (I
test this using "?action=diag").
What can I do to solve this problem?
Thanks in advance for the answers
Guillermo
More information about the pmwiki-devel
mailing list