Hi,
I'm working a data with through Jquery ajax (dataType:json).But,I got the following the error.
Thanks in advance.
I'm working a data with through Jquery ajax (dataType:json).But,I got the following the error.
Code:
"SyntaxError: JSON.parse: unexpected non-whitespace character after JSON data".
Code:
var text_veri = $("#text_veri").val();//textarea'dan gelen veri
$.ajax({
type: "POST",
cache: false,
url: "veri_ajax.php",
dataType: "json",
data: "deger1=sec°er2="+text_veri,
success: function(gelen_bilgileri){
$.each(gelen_bilgileri, function(i, bilgiler){
$("#cevap").html(i + " - " + bilgiler.xxx+ "<br />");
});
}, error:function (xhr, ajaxOptions, thrownError){
alert(thrownError);
}
});
Thanks in advance.