Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

How to show Progress Indicator in Portal Entity Form Load

Posted on by 115

Hi All,

I want to show progress indicator on load of the portal entity form as it is taking time to load the page.

Thanks & Regards,

Nandhini M

*This post is locked for comments

  • urklnme Profile Picture
    urklnme 437 on at
    RE: How to show Progress Indicator in Portal Entity Form Load

    Oliver,  

    Where in the javascript should the fade-in, fade-out be placed?  I am thinking it cannot go into the Ready.

    Should it be placed in the entity form or web template?

    Also, the div that I placed in the Tracking Code snippet does not appear in the Elements when I use f12 developer's tools (chrome)

    Double checking to see if I followed your instructions correctly.

  • Suggested answer
    oliver.rodrigues Profile Picture
    oliver.rodrigues 4,052 on at
    RE: How to show Progress Indicator in Portal Entity Form Load

    hi.. in fact I did say the snippet name

    navigate through your Content Snippets, see if you have one called Tracking Code, if you don't simply create with that name.. make sure the type is HTML, and add this simple DIV through the HTML

    <div id="loading"></div>


    you don't need to call this snippet anywhere.. it will be called in all the Portal pages that uses the Header/Footer.. so basically the div is present in the entire Portal

  • Ranjani K Profile Picture
    Ranjani K 55 on at
    RE: How to show Progress Indicator in Portal Entity Form Load

    Hi Oliver,

    Thanks in Advance.

    In the above code you didn't mention the content snippet name in entity form so how it will create the div and uses the css. can you explain?

    Regards,

    Ranjani K

  • Suggested answer
    oliver.rodrigues Profile Picture
    oliver.rodrigues 4,052 on at
    RE: How to show Progress Indicator in Portal Entity Form Load

    hi.. you will need to do a few things for this
    first, add the following into your CSS file (can be the OOB bootstrap or if you're using a custom one for yourself it is ok also)

    div#loading {
     position: fixed;
     background-color: rgba(0, 0, 0, 0.5);
     background-image: url("~/loading-gif");
     background-repeat: no-repeat;
     background-position: center center;
     background-size: 50px auto;
     top: 0;
     right: 0;
     bottom: 0;
     left: 0;
     z-index: 1000000000;
     display: none;
    }


    download any gif file you want to represent your loading icon.. create a Web File and attach this gif there.. the Partial URL has to be the same as the background-image above (I am using "loading-gif")

    navigate through your Content Snippets, see if you have one called Tracking Code, if you don't simply create with that name.. make sure the type is HTML, and add this simple DIV through the HTML

    <div id="loading"></div>


    now you can go to your entity form or pretty much any page in the portal, and call the loading through the following JavaScript:

    $("#loading").fadeIn(); // starts the loading
    
    // your code here, you can add a timeout or wait for any element to be ready in the page
    
    $("#loading").fadeOut(); // ends the loading


Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans