Location: PHPKode > projects > ezStats for Crysis 3 > ezStats2_c3/templates/detail.html
<script type="text/javascript" charset="utf-8">
	(function($) {
		$.extend({
			load_data: function() {
				// AJAX starten
				$.ajax({
					type:     "GET",
					url:      "$filename",
					dataType: "json",
					data: {
						pid:  "$playerid",
						load: "true"
					},
					success: function(data) {
						// Ergebnis ausgeben
						if (data && data.html) {
							$('#ezLoad').hide(); // Ajax-Loader deaktivieren
							$('#bubble').remove(); // Infobubble entfernen
							$('#ezDetail').html(data.html); // HTML einbinden
						}
					}
				});
			}
		});
	
		$(document).ready(function(){
			$.load_data();
		});
	})(jQuery);
</script>


<div id="ezLoad" class="ezLoad"></div>
<div id="ezDetail"></div>
Return current item: ezStats for Crysis 3