
// Cette fonction va chercher la liste des nouvelles recentes, a afficher sur la page frontale du site
function fill_recent_news( path ) {

	jQuery("#iskio_recent_news").html(""); // clear current news list
	
	// Obtenir une nouvelle liste des nouvelles recentes (en mode asynchrone, via ajax)
	jQuery.get( path + "/ajax_get_recent_news_posts.php", { limit: 8, type: '*' }, function(data){

		str = "<ul>"+data+"</ul>";
		jQuery("#iskio_recent_news").html( str );
		return false;  // prevent page from reloading
	});
}


jQuery(document).ready(function() {
	
	fill_recent_news( iskio_url_ajaxscripts );
});
