Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
35
Changing default animation of progress indicator of WebAsync panel
posted

Hi All,

I'm looking to change the default animated gif of the progress indicator used by the WebAsyncPanel. I've the following client side script being called by the InitializePanel event.

<script type="text/javascript" id="igClientScript">

<!--

function ChangeProgressIndicator(oPanel){

//Add code to handle your event here.

var pi = oPanel.getProgressIndicator();

pi.setLocation(ig_Location.MiddleCenter);

pi.setImageURL('images/loading_animation_liferay.gif');

}

 

However, this codes correctly change the location of the progress indicator, but the image doesn't. Am I missing something?

 Thanks,

Johan

Parents
No Data
Reply
  • 24497
    posted

    Hi Johan,

    The setImageUrl should work (please check your spelling and letter-cases). However, if any WAPR customized indicator (setTemplate has priority over setImageUrl), then all other WARPs which did not customized indicator will get that last image/html. To debug and see how it works, you may insert "debugger;" in front of your statement and press F11 after break point is hit.

    There is should be no difference between 7.2 and 7.3. Recently another property (get/set member functions) was added to indicator: get/setRelativeContainer. That allows to move indicator to another container. For example body:

    function WebAsyncRefreshPanel1_InitializePanel(oPanel)
    {
     
    var pi = oPanel.getProgressIndicator();
     pi.setRelativeContainer(document.body);
    }

    Regards,
    Viktor
    Infragistics web team

Children
No Data