I have to create a webshop that can be integrated into any external webpage. (Like Ecwid.) To do this, I have to create an array, where I list the scripts name, that have to be included/executed. In that list, there is fancybox, like other plugins. Other plugins can be loaded with getScript function, but fancybox stops all the running scripts without any errors. Don't know why, and what to do. Please help in this. Thanks
engineConfig = new Array(
'/jquery.ui.js',
'/fancybox.js',
'/modernizr.js',
'/lightbox.js',
'/tinyscrollbar.js',
'/base64.js',
'/md5.js'
);
function includeEngineParts() {
if(engineConfig.length > 0) {
// global variables...
var src = strShopApiEngineDomain+strShopApiEngineGuiPath+sep+ext+engineConfig[0]+shopApiLoadRnd;
engineConfig.shift();
$.getScript(src, function(){
includeEngineParts();
});
} else {
doSomething();
}
}