Click here to Skip to main content
15,891,567 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I currently have the slicebox library being used on a drupal 7 website. It's not a module and it's being added to a page content-type in hardcoded version:

<?php
drupal_add_js(path_to_theme().'/js/no_bug_jquery.slicebox.min.js', 'file');
drupal_add_js(path_to_theme().'/js/no_bug_jquery.slicebox.js', 'file');
?>

My problem is that the 1st file (jquery.slicebox.min.js) is in conflict with other .js scripts found on this page.

If I remove that 1st file, the other scripts work fine but I can't display the slicebox anymore.

Can someone give me a hint how to proceed with that conflict? Cheers, Michael

What I have tried:

Tried removing the line
drupal_add_js(path_to_theme().'/js/no_bug_jquery.slicebox.min.js', 'file');
Posted
Comments
F-ES Sitecore 11-Jan-17 11:23am    
You only need no_bug_jquery.slicebox.min.js or no_bug_jquery.slicebox.js, you can't add both, one is just a minimised version of the other, they are functionally the same.

As for conflicts, how do you expect us to know what conflicts you have when we don't know anything else about the other javascript files? Remove them one by one until the conflict goes away and the last thing you removed might be the culprit.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900