View difference between Paste ID: ndHEyPDw and E0EVaP0i
SHOW: | | - or go back to the newest paste.
1
$('.solveit-button').click(function() { 
2
	var idToGet = this.getAttribute("data-solvebutton");
3
	$.ajax({
4
			type: 'GET',
5
			url: 'ajax.php?id' + idToGet,
6-
			dataType: 'json',
6+
			dataType: 'text',
7-
			success: function(html, textStatus) {
7+
			success: function(text, textStatus) {
8-
				alert(html);
8+
				alert(text);
9
			},
10
			error: function (xhr, ajaxOptions, thrownError) {
11
				alert(xhr.status);
12
				alert(thrownError);
13
			}
14
		}); 
15
16
});