Page 1 of 1

Include custom JavaScript

Posted: Sat Feb 23, 2008 3:37 pm
by qson
I want to include custom JavaScript-files in my component. Where should I place these and how to include them?
JPATH_COMPONENT_SITE is a local path so I can't use that one. Can I place the js-files in components/com_component/media/js/ and then point to them by $this->baseurl.DS.'components'.DS.$GLOBALS['option'].DS.'media'.DS.'js'.DS;
?

Please help!