public_html/wp-content/plugins/wp-statistics/includes/functions/functions.php
// This function creates a small JavaScript snipit that will load the contents of a overview or dashboard widget.
This function creates a small JavaScript snipit that will load the contents of a overview or dashboard widget.
This function creates a small JavaScript snipit that will load the contents of a overview or dashboard widget .
function wp_statistics_generate_widget_load_javascript( $widget, $container_id = null ) {
		if( null == $container_id ) {
			$container_id = str_replace( '.', '_', $widget . '_postbox' );
		}
?>
<script type="text/javascript">
	jQuery(document).ready(function() {
		wp_statistics_get_widget_contents( '<?php echo $widget; ?>', '<?php echo $container_id; ?>' );
	});
</script>
<?php
	}
function wp_statistics_generate_widget_load_javascript ( $ widget , $ container_id = null ) { if ( null == $ container_id ) { $ container_id = str_replace ( '.' , '_' , $ widget . '_postbox' ) ; } ?> <script type="text/javascript">
	jQuery(document).ready(function() {
		wp_statistics_get_widget_contents( ' <?php echo $ widget ; ?> ', ' <?php echo $ container_id ; ?> ' );
	});
</script>
 <?php }
This function creates a small JavaScript snipit that will load the contents of a overview or dashboard widget.
This function creates a small JavaScript snipit that will load the contents of a overview or dashboard widget .