Hi,
I use the WP Image Zoom on several pages of my WordPress website, in a long HTML page, listing about 90 to 100 images. Each of them being ‘class=”zoooom”‘.
Works well.
But when the DOM is refreshed, by Ajax + jQuery, for instance when I delete the display of an image, the plugin seems to “remember” the old image.
Exemple :
Initial situation, I have a list of images, including these two :
https://storage.magna-regula.cloud/tileobjects/MISC/STEP-0.png
The Zoom works well on them :
https://storage.magna-regula.cloud/tileobjects/MISC/STEP-1.png
I delete the first image :
https://storage.magna-regula.cloud/tileobjects/MISC/STEP-2.png
An Ajax call is done, the DOM corresponding to the whole list is refreshed. The deleted image is not present; but the zoom on the following image “remembers” the deleted one :
https://storage.magna-regula.cloud/tileobjects/MISC/STEP-3.png
Is there a javascript function I can call, to “refresh” something, or to clear what is seems to be a cache ?
Sylvain