Easy FancyBox
jQuery("a#inline").fancybox({ 'hideOnContentClick': true (4 posts)

  1. madguy000
    Posted 5 years ago #

    My pages at show an error when loaded in IE8 for this line in the code - jQuery("a#inline").fancybox({ 'hideOnContentClick': true });

    "Error: Object doesnt support this property or method in IE8 "

    If any fancybox link is clicked in IE8, the page throws an error and stops responding.

    I did a google and found a solution specified here.


    Is this something related to easy fancybox?

  2. RavanH
    Plugin Author

    Posted 5 years ago #

    Hi mad, 'hideOnContentClick' is not an option in Easy FancyBox so I don't know about that but the answer on http://groups.google.com/group/fancybox/browse_thread/thread/95fe04d356ccc20f?pli=1 boils down to the fact you can have only ONE instance of an ID on one page. So if you have more than one link on your page like <a id="inline">...</a> or if there are other elements using the same ID like <div id="inline"> you are asking for trouble ;)

  3. RavanH
    Plugin Author

    Posted 5 years ago #

    If you want to use (Easy) FancyBox to display inline content, use the following example and carefully take not of the ID's and href differences/cross-references/similarities:

    <a href="#inline-content" id="fancybox-inline">...</a>
    <div style="display:none" class="fancybox-hidden"><div id="inline-content>...</div></div>

    If you want to use more that one link (either to the same or to other inline content) like this on one page, use a CLASS instead of ID for it...

  4. madguy000
    Posted 5 years ago #

    thanks! im under pressure to launch the site, so i will experiment on this later :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic