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 8898251
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T00:33:59+00:00 2026-06-15T00:33:59+00:00

Is there any particular reason why fancybox function $.fancybox.showActivity(); throws an error in my

  • 0

Is there any particular reason why fancybox function

$.fancybox.showActivity();

throws an error in my script? Is there a specific order in which the functions need to be called? The function is intended to show the loading image before the content is loaded to the popup. Here’s my code:

$(".info_button").click(function () {

    var pictid_browse = $(this).parent().find('#pictid').val();
    $.fancybox.showActivity();
    $.ajax({
                url: "ajax.html",
                type: "POST",
                async:false,
                data: ({f:"get_info",pictid:pictid_browse}),
                success: function(data){
    $.fancybox({
                    'autoDimensions'    : false,
                'width'                 : 950,
                'height'                : 'auto',
                'transitionIn'      : 'none',
                'transitionOut'     : 'none'
            });
                $.fancybox({content:data,'autoDimensions':true,'scrolling':'no',});


    }
    });

    return false;
    });

The errors I’m getting are:

Uncaught TypeError: Object function () {
        F.open.apply( this, arguments );
    } has no method 'showActivity'

or

TypeError: 'undefined' is not a function (evaluating '$.fancybox.showActivity()')

Fancybox version: 2.1.3

UPDATE:

I have no clue what is going on but if I place the

$.fancybox.showLoading();

outside of

$(".info_button").click(function () {

then it fires and shows the animation. But I need it to happen once the item of a class ‘.info_button’ i clicked

The following solution does not seem to solve the problem either:

    $(".info_button").bind('click', function (e) {
  e.stopPropagation(); e.preventDefault();
}

The research shows that the loading is triggered if the following code is deleted:

 $.fancybox({
content:data,
                'autoDimensions'    : true,
            'width'                 : 'auto',
            'height'                : 'auto',
            'transitionIn'      : 'none',
            'transitionOut'     : 'none',
            'scrolling':'no'
        });

This may mean that the fancybox does not work fine when included inside ajax function, but why-I have no clue

  • 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-15T00:34:00+00:00Added an answer on June 15, 2026 at 12:34 am

    The apidock on fancybox.net is kinda outdated ( its for 1.x.y ).

    So if you use:

    • the older 1.x.y you want to go for: $.fancybox.showActivity();
    • the newer 2.x.y you want to go for: $.fancybox.showLoading();

    You can find for documentation for 2.x.y fancyapss.com documentation and stuff. They keeping up the site “because the two versions (1.x and 2.x) have different license schemes” ( thx to @JFK ). You can report it, mb you get a gold star from them 🙂

    ========= Answer after question update ==========

    I cant be sure without seeing the full html and js but You could try:

    $(".info_button").bind('click', function (e) {
      e.stopPropagation(); e.preventDefault();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any particular reason that all data members in a class are private
Is there any way to find particular C language function's input and output parameters
Is there any way in SSIS to identify which particular task has failed? My
Is there any particular reason to deny the use of magic constants (like __DIR__
Is there any particular reason to use one over the other? I personally tend
Is there any particular reason? Is it not possible at all or is it
Is there any particular reason to use one over the other or it's all
Is there any particular reason why chrome does not respect display:inline when it's used
Is there any particular reason why Regex.MatchData.group(i: Int): java.lang.String returns null rather than Option[String]?
Is there any particular reason that it isn't in any of the the specs?

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.