Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AJAX Gallery Problem #34

Open
svanetten1976 opened this issue Dec 3, 2014 · 1 comment
Open

AJAX Gallery Problem #34

svanetten1976 opened this issue Dec 3, 2014 · 1 comment

Comments

@svanetten1976
Copy link

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:
$.removeData($.data($.fn.touchTouch));
$.removeData($.fn.touchTouch);
$('.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

@MrOutput
Copy link

MrOutput commented Dec 3, 2014

fancyBox supports AJAX

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants