• Resolved duyngha

    (@duyngha)


    Hi RavanH,

    This is a great plugin for people who want to show content in popup. I really like fancybox inline feature. But I got a problem with fancybox inline when I used ajax to load content. For example, I used ajax to render HTML code as: `<a href=”#fancyboxID-<?php echo $post_id; ?>” class=”fancybox-inline”>
    <img src=”<?php echo $post_image; ?>” alt=””>
    </a>
    <div style=”display:none” class=”fancybox-hidden”>
    <div id=”fancyboxID-<?php echo $post_id; ?>” class=”hentry” style=”width:50%;max-width:100%”>
    <iframe width=”<?php echo $frame_width; ?>” height=”<?php echo $frame_height; ?>” src=”<?php echo $video_link; ?>” frameborder=”0″ allowfullscreen></iframe>
    </div>
    </div>`. So when I click into the links which are rendered after ajax invoked, the popup isn’t working. How can I run the code after ajax?

    Thanks
    Duy

    https://wordpress.org/plugins/easy-fancybox/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fancybox Inline isn't working when using ajax rendered HTML’ is closed to new replies.