My Question is this: Is there something in Confluence blocking the output of the console.log method?
There's no errors in either the velocity markup or JS. Try it for yourself. Create a macro, set a variable to something and have the console.log method run that variable. Even simple tests like this come back empty but if I use the command line in Chrome Dev, I see that in fact that foo = "foo";
var foo = "foo"; console.log(foo);
It works fine for me. Did you wrap your JS in a <script> tag? Here's what my full macro looks like:
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
An efficient enterprise content management system, or ECM, is a must-have for companies that create work online (cough cough, all companies). If content calendars, marketing plans, and bu...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs