I’m trying to use clearbox with a codeigniter site. I’m not able to get it to work and I have a feeling it has to do with this line which is located in clearbox.js. I’m not sure if it has to be relative to my view file or what.
var CB_ScriptDir='clearbox'; // RELATIVE to your html file!
Anyone ever used this plugin before?
It has to be relative to your index.html page.
When you download the clearbox zip file from the developers page, you get a containing folder called “clearbox” which has both clearbox.js and the actual folder clearbox inside it. If you have your zip containing folder at the level of your index.html page, you would set parameters as follows:
If you take both clearbox.js and the folder clearbox out of the containing clearbox folder, your setting would be:
The confusion is with the zip extracting clearbox inside a folder named clearbox!