AJAX Gallery Problem
Opened this issue · 1 comments
Hi Martin,
First of all, I really like touchTouch. Its an excellent plugin, especially for mobile. But I've been running into an issue with dynamic content, specifically AJAX-loaded thumbnails. I have a pretty complex interface and it seems like after a couple of AJAX-loaded content changes, the plugin can't find the right image (or any image to load). One user had suggested $('.placeholder').remove() before re-calling the plugin on newly loaded thumbnails, but it doesn't consistently work. The whole thing fails very irregularly, so I can't trace what the exact problem is. Any ideas how I could fix this? Here's the block of code I've been trying to use to re-call the plugin after the AJAX thumbs have loaded:
$('.placeholder').remove();
$('#gallerySlider').find('.placeholder').remove();
$('.portfolio-item .image a').touchTouch();
FYI, I tried editing the plugin itself to make it fully compatible with dynamic content, but I can't figure it out. Thanks -- Steve
fancyBox supports AJAX