You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Hi Martin,
$.removeData($ .data($.fn.touchTouch));
$.removeData($ .fn.touchTouch);
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
The text was updated successfully, but these errors were encountered: