/*$(document).ready(function(){
	$("ul#personale a").click(function(event){
	    //Blocca il normale evento click su tag a
	    event.preventDefault();

  	    var id = $(this).attr("id");
	    var name = $(this).text();

	    //Nasconde i valori per poterli ripresentare dopo con fadeIn
	  	$("#name").hide();
	  	$("#employ").hide();
	  	$("#age").hide();	    

		//Elabora la richiesta ajax
		$.ajax({
		  type: "POST", 		//Tipo di richiesta
		  url: "webservice.php", 	//Url web service
		  data: "id="+id+"&from=web",	//Parametri (da concatenare con &)
		  dataType: "json",		//Tipo di risposta
		  success: function(msg){	//Callback risposta

		  	//Setta i valori dei campi e fa un fadeIn
		  	$("#name").text(name).fadeIn("slow");
		  	$("#employ").text(msg.employ).fadeIn("slow");
		  	$("#age").text(msg.age).fadeIn("slow");
		  }
		});

	});
 });*/
$(document).ready(function(){
	$("#list_portfolio ul a").click(function(event){		
	    //Blocca il normale evento click su tag a
	    event.preventDefault();
		
			var id = $(this).attr("id"); 

			$.ajax({  
			  url:"include/ajax.request/item_portfolio.php",  
			  type: "POST",  
			  data: "id=" + id,
			  dataType: "html",
			  success: function(msg) {  
				$("div#ajax_port").html(msg);  
			  },
			  error: function(){
				alert("Chiamata fallita");
			  } 
			}); 
			return false;  
	});
 });

