tutorialzine / touchTouch

Touch Optimized Mobile Gallery
179 stars 56 forks source link

Ajax Issue #12

Open jhemsley30 opened 11 years ago

jhemsley30 commented 11 years ago

Is there a way this code can be altered so it will attach itself with content loaded via ajax? I'm using this gallery on a Drupal installation (which has some built in ajax in views), everything works great until the content is loaded with ajax, the gallery fails to work. Am I looking at this the correct way? Thanks, James

jhemsley30 commented 11 years ago

Any thoughts

dakins commented 11 years ago

They way I fixed this was to remove all the placeholders before I called the touchTouch plugin again after loading my new items...

$('.placeholder').remove(); $('.thumbs a').touchTouch();

franckpaco commented 11 years ago

Hello, I'm looking for a tutorial on how to integrate this gallery on a drupal 7 website (instead of my actual lghtbox), do you have some advices or adresses for this? (my skills with drupal are only working with modules and theming tricks with html/css!!) Thanks

jhemsley30 commented 11 years ago

Frank, the only way I was able to make this work was to implement the code directly onto the tpl.php files. I'm looking for more of a Drupal way, as well.

gorborukov commented 10 years ago

dakins, your solution works, thank you

MrOutput commented 10 years ago

Hello I am having the same problem as jhemsley30 was having, can someone please specify what Dakins means when he says to remove the placeholders. Thanks

svanetten1976 commented 9 years ago

Hi all, I am still having the same issue, and due to the complexity of the AJAX gallery I've built, the $('.placeholder').remove() workaround doesn't always do it for me. Anyone have any ideas how to truly make jQuery.touchTouch work consistently with AJAX content. I tried editing the plugin myself, but I just kept breaking things.... Any help at all would be much appreciated! Thanks, Steve

MrOutput commented 9 years ago

Steve I've tried everything to get touchTouch working with AJAX. I switched to fancyBox and things worked out. Hope this helps 😊

-----Original Message----- From: "svanetten1976" notifications@github.com Sent: ‎12/‎3/‎2014 2:10 PM To: "martinaglv/touchTouch" touchTouch@noreply.github.com Cc: "Rafael Cepeda" rcepeda1993@gmail.com Subject: Re: [touchTouch] Ajax Issue (#12)

Hi all, I am still having the same issue, and due to the complexity of the AJAX gallery I've built, the $('.placeholder').remove() workaround doesn't always do it for me. Anyone have any ideas how to truly make jQuery.touchTouch work consistently with AJAX content. I tried editing the plugin myself, but I just kept breaking things.... Any help at all would be much appreciated! Thanks, Steve — Reply to this email directly or view it on GitHub.=

aiyou666666 commented 9 years ago

i hava a idear for working with Ajax we can use $("#gallerySlider").empty();

aiyou666666 commented 9 years ago

my english is poor maybe i didn't understand this issue, the issue how to truly make toucuPlugin work consisitently with ajax contnet .before jquery1.9 versoin,use live() bind event for add element after,but now is use on(event,elemet,callback());so you can try to do this methd

aiyou666666 commented 9 years ago

add element later

Blacksnipe commented 8 years ago

If you're looking for a Drupal-module to support this plugin, check out http://www.drupal.org/project/touchtouch