Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8702899
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T02:45:44+00:00 2026-06-13T02:45:44+00:00

Here is my code for fancybox iframe <script type=text/javascript> $(document).ready(function () { $(‘.fancybox’).fancybox(); $(#popup).fancybox({

  • 0

Here is my code for fancybox iframe

 <script type="text/javascript">
        $(document).ready(function () {
            $('.fancybox').fancybox();
            $("#popup").fancybox({
                fitToView: false,
                autoSize: false,
                autoDimensions: false,
                title: "Item Details",
                width: 965,
                height: 525,
                padding: 0,
                helpers: {
                    title: {
                        type: 'float'
                    },
                    overlay: {
                        css: {
                            'background': 'rgba(238,238,238,0.85)'
                        }
                    }
                },
                'transitionIn': 'elastic',
                'transitionOut': 'elastic',
                onClosed: function () {
                   alert('Hi');
                }
            });
        });
    </script>

I want to handle iframe close event, but the above code is not working.
Please let me know where am I going wrong Please.
Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T02:45:45+00:00Added an answer on June 13, 2026 at 2:45 am

    I assume that you are using fancybox v2.x because the API options in your code … if so onClosed is not a valid option for this version but for v1.3.x.

    You have to use afterClose instead :

    afterClose : function () {
     alert('yep, you just closed fancybox v2.x');
    }
    

    BTW, neither transitionIn or transitionOut are valid v2.x API options, check the documentation for the valid options for v2.x

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here is my Code <script type=text/javascript> $(document).ready(function () { $(#popup).fancybox({ 'width': 500, 'height': '500',
Ok. Here's my code: <script type=text/javascript language=javascript src=js/jquery-1.7.min.js></script> <script type=text/javascript src=js/fancybox/jquery.fancybox-1.3.4.pack.js></script> <link rel=stylesheet type=text/css
Here is my HTML code: <a id=hidden_link href=StatusNotification.aspx class=statusNotification fancybox.iframe></a> And this is my
The script is on jsfiddle here : CODE What it does at the moment
Here is my code inside of a jquery function: $(form).submit(function() { if(form.First_Name.value == ){
I have a jQuery fancybox with an iframe. It loads the code from a
I have been struggling with this jQuery Validation Plugin. Here is the code: <script
I am using the fancybox iframe (as can be seen here in the iframe
Ok the error is showing up somewhere in this here code if($error==false) { $query
Here is code my jqgrid editing through form. $(#DataEnergy).jqGrid('navGrid', '#pagergrid', {}, //options {editdata: {

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.