View Full Version : CMotion Gallery In Ajax Tabs

05-29-2008, 04:48 PM
1) Script Title: CMotion Image Gallery

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/cmotiongallery.htm

3) Describe problem: I am attempting to load multiple galleries into tabs via Ajax but I cannot seem to get it to work. I am using the tabs from the jQuery UI and specifying external pages from which to load the galleries. I first tried it with the object oriented version of the gallery:

As you can see the galleries seem to work fine when they are not loaded via Ajax in the top tabs but the second tab on the bottom tries to load a gallery via Ajax and it does not work at all. I got 2 non object oriented galleries working in the tabs as well by modifying the non object oriented code a bit as you can see here:

But when I Ajaxify them they do not want to scroll :(

It seems to have something to do with the loading conflict and the fillup() function, which I have read about on the forum, and I moved it around in the non object oriented version including putting it in the body tag but could not get it to work. I am not even sure if that is the issue with the object oriented version. I also tried iFrames but the tabs do not seem to like them very much. I also tried to load the tabs with the Ajax content script I found on dynamic drive but it did not get me anywhere.

If anyone out there has loaded galleries via Ajax from external pages successfully please help a guy out! This gallery is too sweet to not use and the only thing keeping me from using it is being able to load the page without having to load images for all of the underlying galleries (if there is another way to do this besides ajax please share:D)!

Thanks in advance and thanks to John for creating such a sweet script!