Hi,
I have a simple Javascript.
alert('hello world!');I have saved this in a file called simple.js in
/opt/atlassian/confluence/confluence/includes/resources
My 'HTML Macro' contains:
<!doctype html>
<html>
<title>My Web Page</title>
<head>
<script src="/includes/resources/simple.js" type="text/javascript"></script>
<script>alert('hello world inline!');</script>
</head>
<body>
Random Text...<br>
<img src="/includes/resources/logo.png" height="30px">
</body>
</html>
The inline alert is presented by Confluence but the one that should come from the included Javascript simple.js is not. I am not a Javascript expert so I could be doing something stupid, but the same code on a standalone browser works fine.
Any advice or pointers as to why it might not be working would be appreciated. Note that Iogo.png displays fine...done as a sanity check to verify I had the path correct. The console debugger does not show anything obvious work either.
Regards
Alan