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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:33:52+00:00 2026-05-26T18:33:52+00:00

I am using Fancybox. When the following link is clicked the modal window opens

  • 0

I am using Fancybox.

When the following link is clicked the modal window opens but it just shows a white box while the content loads.

<a class="iframe"  href="/icons/?icon_for=<%=@user.class.name%>&category=<%=Icon::USER_DEFAULT%>" id="user_iframe">
                                        <%= image_tag("avatar-bis.png", :width => 140, :height => 128, :class => "dotted")%>
                                </a>

So I want to show the animated image while the content loads.
I have the following which is called when the link is clicked:

<script>
      $('a.iframe').live("click",function(){
        $('#fancybox-loading').show();
        });
</script>

This produces the following:

enter image description here

However it is not animated. It is a static image. How can I load it so it shows a dynamic image?

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-05-26T18:33:52+00:00Added an answer on May 26, 2026 at 6:33 pm

    You can use these fancybox’s APIs:

    Show loading animation:

    $.fancybox.showActivity()   
    

    Hide loading animation:

    $.fancybox.hideActivity()   
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using Fancybox to play youtube videos in a modal box . My Problem is
I'm using fancyBox to create a gallery with the following code: <a class=fancybox rel=group1
I'm using Fancybox and Zend. Hope the following is clear. On www.example.com/template/edit/id/3 I have
Folks, I'm trying to open a youtube video in fancybox using the following code:
I'm using Fancybox to display inline content (a div with an image linked to
I'm using FancyBox to display YouTube videos (using the YouTube embed link) with Fancy
I'm creating a standard image gallery using FancyBox. The page shows a list of
I'm using the Fancybox plugin for my modal windows. It seems like no matter
I'm using FancyBox to contain my iframes, but it only works for the first
I using the fancybox plugin for jquery and I want to put a link

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.