function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SRILAKSHMI BSRILAKSHMI B 

How to Progress bar on the Visualforce Page

Hi All,

 

I am showing multiple lead locations on the google map and it take some time to load the map.I want show a progress bar to the user viewing the googlemap page.

 

Could anyone please share a code snippet to acheive this progress bar on the Visualforce page.

 

 

Thanks,

Srilakshmi B

b-Forceb-Force

as google map page might be loaded into some iframe,

If you use jQuery, within jQuery there are easiar option to capture iframes ready and load events ,

and show some ajax loader or jquery progress bar.

 

 

<script type="text/javascript">
var $J=jQuery.noConflict();
$J(document).ready(function(){
/***********CODE STARTS HERE **********/
$J("#container-iframe-dialog-confirm-details").ready(function(){
$J("#mswait"+iCount).show();
});
$J("#container-iframe-dialog-confirm-details").load(function(){
$J("#mswait"+iCount).hide();
});

/***********CODE ENDS HERE **********/

});
</script>

 

 

Hope this will help you.

 

Thanks ,

Bala