At CFv5 we had a Load Javascript to use at Setup Tab and insert the URL files at JS Files field. With CFv6 how can we do that?
Hi Austre,
There is a JavaScript action in the Custom panel on the Designer tab. I don't' see how you load a file - I think that Max posted an answer but I don't see it right now. You can always use the Joomla! Document method
Bob
There is a JavaScript action in the Custom panel on the Designer tab. I don't' see how you load a file - I think that Max posted an answer but I don't see it right now. You can always use the Joomla! Document method
<?php
$jdoc = \JFactory::getDocument();
$jdoc->addScript('. . . ');
?>
Bob
Got this option too: put a Custom Javascript at Designer tab with the code below and checked the Add inside domready event option.
$.getScript('filepath/jquery.datatables.min.js', function(){
$('#tableData').dataTable({});
});
This topic is locked and no more replies can be posted.