PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Inline content

  1. I got this form the dev of easy fancybox, does anyone know how to make this happen

    OK so now I see it working on the first step but still not on the second one.

    I think because the content gets 'refreshed' via ajax, the fancybox function cannot be bound to the proper links (except the one on the first form page) ... you see the fancybox binding happens on document.ready, and so is not a triggered after an ajax content refresh.

    You could ask on the Gravity forum how it would be possible to re-trigger a function after tha ajax load that normally gets triggered on page load. If there is that possibility in Gravity forms, it might be possible to get fancybox working on all other steps in your form.

    Posted 8 years ago on Saturday February 18, 2012 | Permalink
  2. Have you tried this without using ajax and see if it works on the second step?

    Posted 8 years ago on Saturday February 18, 2012 | Permalink
  3. ah... indeed works with ajax off... I guess I don't have to have it on. Is there easy way to make work if I did want on

    Posted 8 years ago on Saturday February 18, 2012 | Permalink
  4. You would need to use this to reload the script when each form page is reloaded via ajax.

    Posted 8 years ago on Saturday February 18, 2012 | Permalink
  5. Thanks Kevin, I will give it a go and follow up... The other dev had just emailed me this so I came back and checked form..

    Hey Scott ,

    Did you get any answer on the Gravity Form forum about a fix for the ajax issue?

    There is a new development version of Easy FancyBox where I have changed the way FancyBox gets fired up on page load that should make it possible to re-fire it after loading ajax content.

    In technical terms: instead of jQuery(document).ready(...) it now uses jQuery(document).bind('ready', ...) to allow a call like $(this).trigger("ready"); from within the ajax load function (or from inline script within the new content?) to re-fire FancyBox.

    But, this is theoretical and untested.

    So if you see any possibility to make use of this -- or maybe trigger("ready") is already done by Gravity Forms by default -- please be so kind as to test the dev version from and let me know if it works at all...


    Posted 8 years ago on Monday February 27, 2012 | Permalink