Randallmaster
9.09.2013, 17:08:05
Witam,
Czemu nie wyświetla mi alerta data?
$.ajax({
url : 'link',
}).done(function(data) {
alert(data);
if(data == '1') {
alert('ok');
} else {
alert('false');
}
});
markonix
9.09.2013, 19:45:22
A pozostałe wyświetla?
Co to w ogóle za typ ten data?
Liczba sugeruje int, potem apostrofy string, potem false niby bool.
Proponuje uniwersalny json.