I'm having some problem adding DOMEC with the drupal_add_js function.
In my template.php in the theme_preprocess_page function I'm using:
$data = $theme_path . '/js/jquery.domec.min-0.3.4.js';
$type = 'theme';
$scope = 'header';
$defer = false;
$cache = true;
$preprocess = false;
drupal_add_js($data , $type, $scope, $defer, $cache, $preprocess);
Nothing special what I can see, but the javascript refuses be included in $scripts. Tried adding other scripts in the same folder and that work. Anyone got any ideas or can try if you have the same problem including the file? if i just write it in the page.tpl it works
<script type="text/javascript" src="/sites/default/themes/theme/js/jquery.domec.min-0.3.4.js"></script>
Comments
Comment #1
Renee S commented[removed]
Comment #2
dpearcefl commentedDo you still need help with this issue?