$(document).ready(function () {

	$.ajax({
		type: "POST",
		url: "request.php",
		dataType : "json",
		success: function(msg){
		
			if( msg != 'E' ) {
			
				var author = msg.author;
				var tip =  msg.tip;

				$('.tip-text').text(tip);
			
				$('.tip-text').append('<br/><div>- <span class="quoted">' + author + '</span></div>');

			}	

		}
	});

});

