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

Renee S’s picture

[removed]

dpearcefl’s picture

Do you still need help with this issue?

Status: Active » Closed (outdated)

Automatically closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.