Essence of the question:

we load the data on the page via AJAX, while the photos are displayed, when clicked, the zoom should be activated, connected by js script once on the page.

If you do without an AJAX, everything works, when booting with AJAX, you need to load these js scripts every time, including the jquery library, so that everything works.

This is fundamentally wrong, but how to do differently?

  • one
    You need to hang a click handler on the loaded data. Depends on your implementation of the zoom. - Zhukov Roman
  • can be more specific? on any example - Ozim
  • How does your zoom initialize? - Zhukov Roman
  • there is not only zoom .. there is jQuery (document) .ready (function () {and after it the initialization of all the figs, Fancybox, zoom, etc. zoom here linkexchanger.su/example_jquery/zoom.html - Ozim
  • one
    Well, in the success-function, after adding content to the page and add $(data).find(".jqzoom").jqueryzoom(options) - Zhukov Roman

0