I am writing some PHP rules (scripts) files.
In one, I have some javascript that should exist only once per page in
addition to another tag. How do I detect that the user has use (:tag
blah:) more than once so I can omit emitting the singleton content?
I am trying
SDV('$Flag']), 0);
global Flag;
if ($Flag == 0){
$codeSnippet .= "<script type=\"text/javascript\"
src=\https://domain.com/init.js <https://domain.com/init.js>
\"></script>";
$Flag = 0;
}
Am I on the right track ?
Thanks
_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users