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

  • Home
  • SEARCH
  • 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 7820667
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T07:23:14+00:00 2026-06-02T07:23:14+00:00

I am working on a functionality where i can show Loading Progress using animated

  • 0

I am working on a functionality where i can show Loading Progress using animated image till actual image is downloaded.

I have a page which has lots of image i loop through the record and display them using repeater control. Below is teh example of the code HTML-CSS

<asp:Repeater ID="rpt4x42" runat="server" EnableViewState="False">
    <ItemTemplate>
         <asp:HyperLink ID="hylTopFour2" style=" text-decoration:none;" runat="server" 
                                   NavigateUrl='<%# getURL(Eval("ArticleID")) %>' BorderWidth="0px" meta:resourcekey="hylTopFour2Resource1">
          <div id="articleContainer2" class="articleContainer" >
               <div id="ArticleImgHP-container" >
                    <asp:Image ID="imgTopFourImg2" runat="server" width="170px" height="112px" CssClass="ArticleImgHP"
                                                    border="0" ImageUrl='<%# getImagePath(Eval("ArticleThumNailImage")) %>'  />
               </div>
               <div class="Details4x4">
               <div  class="Title4x4" >
                     <asp:Label ID="lblTopFourTitle" runat="server" Text='<%# getTitle(Eval("ArticleTitle")) %>'></asp:Label>
                </div>
                <div class="hLine4x4"></div>
                <div class="dateWrapper4x4">
                <div class="Date4x4">
                     <asp:Label ID="lblTopFourDate" runat="server"  
                                                               Text='<%# FormatDate(Eval("[ArticlePublishDate]")) %>'></asp:Label>
                </div>
               </div>

             </div>

           </div>
</asp:HyperLink>
                             </ItemTemplate>
                        </asp:Repeater>

                </div>  

CSS

   img.ArticleImgHP {
         /* Set the width and height to the size of its container */
        width : 100%;
        height : 100%; 
        visibility : hidden;
    }
    div.ArticleImgHP-container { 
        width : 170px;
        height : 112px;
        background-image: url('../images/loading-circle.gif');
        background-position: center center;
        background-repeat: no-repeat;
    }

jQuery

     $(document).ready(function () {
        // $("img #MainContent_rpt4x42_imgTopFourImg2_1").bind("load", function () { $(this).show(); });
           $("img.ArticleImgHP").bind("load", function () { $(this).css("visibility", "visible"); });


     });

I have wrapped the actual image inside a div tag and i want to show background image of this div tag till actual image is downloaded.I am not able to get it working. I would appreciate help in this regard.

I am trying to make the same thing run on jsFiddle it is not working http://jsfiddle.net/t5d39/13/

  • 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-02T07:23:15+00:00Added an answer on June 2, 2026 at 7:23 am

    RESOLVED it by adding the class to div tag

    <div id="ArticleImgHP-container"  class="ArticleImgHP-container">
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on an offline only help system which requires loading a large amount
I am working in ASP.NET 3.5 MVC application. We have a functionality where we
I am working on an iPad application. I have used email and print functionality
I have been working on and testing the jQuery autcomplete functionality here on my
I'm working on a website which handles large amounts of data. I have got
I'm working on a profile-website which shows the location of people using google maps.
I have an application which should watching incoming SMS (scan SMS text and show
I'm working on 'add a link' functionality. For that I'm using Modal plugin from
Can someone show me how to dynamically overlay an image (an icon in my
It's better to show a working example: The JQuery slider has a functionality I

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.