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">
<!--
//Add code to handle your event here.
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
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,ViktorInfragistics web team