Loading...
 
Skip to main content

Features / Usability


Am I using the PluginJS correctly?

Wiki version = 6.1

I am trying to display the Julian day on a Wiki page. I typed in the following Javascript code into a Wiki page, but nothing displays. Am I using the javascript plugin correctly?

Copy to clipboard
{JS()} var today = new Date(); var julday = math.Floor((today.valueOf() / (1000 * 60 * 60 * 24)) - 0.5) + 2440588; document.write(julday); {JS}
jangriff wrote:
Am I using the javascript plugin correctly?


Yes, your syntax of the JS plugin looks correct to me. You can confirm if Tiki is generating the script correctly by reviewing the HTML source of the generated page.

HTH,

- RickQuestion | My Tiki Blog | My Tiki UserPage

Now Available: Tiki EssentialsQuestion, the #1 (and only) book for Tiki! Learn more...Question
Coming Spring, 2011: Tiki for Dummies SmartiesQuestion, the best (and only) Tiki beginner's guide! Learn more...Question


Need more help? Try Tiki for Dummies SmartiesQuestion: A beginner's guide and Tiki EssentialsQuestion: What all Smarties need to know about Tiki Wiki CMS Groupware.