Base solution for your next web application
Open Closed

jquery.fancybox-media.js does not work it goes to youtube pa #1988


User avatar
0
avanekar02 created

my code

@section Scripts { <script src="~/Common/Scripts/jquery.fancybox.js"></script> <script src="~/Common/Scripts/jquery.fancybox-media.js"></script>

&lt;script type=&quot;text/javascript&quot;&gt;
    $(document).ready(function () {
        $(".fancybox").fancybox({
            openEffect: 'none',
            closeEffect: 'none'
        });

        $('.fancybox-media').fancybox({
            openEffect: 'none',
            closeEffect: 'none',
            helpers: {
                media: {}
            }
        });

        $('[data-toggle=offcanvas]').click(function () {
            $('.row-offcanvas').toggleClass('active');
        });
    });
&lt;/script&gt;

}


3 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Can you share if there is an error you are getting ?

  • User Avatar
    0
    avanekar02 created

    jquery.fancybox-media.js:89 Uncaught TypeError: Cannot read property 'helpers' of undefined(anonymous function) @ jquery.fancybox-media.js:89(anonymous function) @ jquery.fancybox-media.js:199 jquery.min.js:4Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check <a class="postlink" href="https://xhr.spec.whatwg.org/">https://xhr.spec.whatwg.org/</a>.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    We don't have any knowdledge of fancybox plugin. You can first check which version of jquery is compatible with your version of fancybox.

    If that does not help, you can serach on the internet for this problem.