Joomla Javascript in the Frontend

This is for all your Joomla Developers out there. When trying to add Joomla javascript to the frontend like the pop calendar, it only works for the registered users. This is because the code currently only loads joomla.javascript.js for registered users and when joomlaJavascript has been set in the mainframe object. So what do you do then? Add this one liner to your code:

$mainframe->set('joomlaJavascript', 1);

That’s it, now you have the javascript pop calendar in the frontend. Little update on the current calendar installed with Joomla. It is one created by dynarch.com. Joomla currently uses 0.9.2 and with the next release they should be upgrading to 0.9.4 which allows for adding of time allow with the date.