I have the following code to load the .js files, and they're showing up right in the code (between opening/closing header tag)
$doc =& JFactory::getDocument(); $doc->addScript( JURI::root( true ).'scripts/js/jquery.datePicker-min.js' ); $doc->addScript( JURI::root( true ).'scripts/js/jquery-1.6.1.min.js' ); $doc->addStyleSheet( JURI::root( true ).'scripts/css/datePicker.css' );
If I have the above code, where does the function code go? right underneath?
$doc->addScriptDeclaration('
$(function () {
$('.date-pick').datePicker(
{clickInput:true});
}); ');
I've tried that, but I haven't been able to produce anything yet - either I get an internal server error 500 or a blank page.
Any help on this is greatly appreciated

New Topic/Question
Reply


MultiQuote





|