I am having a problem with image_show_gk4 on my website. I'm using the gk_bikestore template therefore I have set the module style for image show as gk_4. The problem is that the slideshow never starts. From google developer tools I found that the slide show is throwing an error
"Uncaught TypeError: Object [object Object] has no method 'getElements' "
- Code: Select all
window.addEvent("load",function(){
(function() {
$$(".gkIsWrapper-gk_bikestore").each(function(el){
var elID = el.getProperty("id");
var wrapper = $(elID);
var $G = $Gavick[elID];
var slides = [];
var links = [];
var imagesToLoad = [];
var loadedImages = 0;
// animation variables
$G['animation_timer'] = false;
// blank flag
$G['blank'] = false;
// load the images
wrapper.getElements('.gkIsSlide').each(function(el,i){ <-------- code breaks here !!
var newImg = new Element('img',{
"title":el.getProperty('title'),
"class":el.getProperty('class'),
"style":el.getProperty('style')
});
newImg.store('num', i);
links[i] = el.getElement('a').getProperty('href');
el.getElement('a').destroy();
This was working fine earlier, however I recently changed the root folder of the website and this problem has been happening since then. Earlier I had created my website under <public_html>/new and moved all the files and directories to <public_html>/ . I suppose the problem is related to this move but I can't figure out.
The slideshow seems to work fine if change the module_style in image_show to something else like gk_rockwall or gk_appsprotech but doesn't work with some of the others such as gk_estore.
Seems to me like a bug in the code. It's really important for me to get this to work since I am just days away from the launch. I'll be happy to share the access details of the website if you want to take a look.
Please help.
Cheers,
Manik