• Hello All,

    In a Particular page of my site I am listing my product details. And I need to show the images alone in a popup(this works with this plugin).

    But also I have an option for changing the image by clicking different colors. So the Easy fancy box popup is working for only the image which is been placed on Page Load.. And not working for the images which i changed the image src using Javascript.

    Please help me to fix the issue.. Thanks in advance..

    http://wordpress.org/plugins/really-simple-popup/

Viewing 1 replies (of 1 total)
  • This did the trick..

    document.getElementById(‘prod_image’).src = imgsrc;
    document.getElementById(‘popup-img-link’).href = imgsrc;

    Actualy first I was loading the anchor tag, so the dynamically generated tags was doesn’t loading the attribute “class=”fancybox””.. So now i change the src and href dynamically..

    This works like Charm..

Viewing 1 replies (of 1 total)
  • The topic ‘Popup not working for images populated via Javascript’ is closed to new replies.