jQuery::Ajax success never occurs
Posted
by Legend
on Stack Overflow
See other posts from Stack Overflow
or by Legend
Published on 2010-05-21T03:09:05Z
Indexed on
2010/05/21
3:10 UTC
Read the original article
Hit count: 165
I have an ajax call in the head section of my index.html
$.ajax({
method: 'get',
url : 'php/getRecord.php?color=red',
dataType: "json",
success: function (data) {
alert(data);
}
});
For some reason, that alert never gets called. Am I doing something wrong? The PHP file does give me data when testing it directly.
© Stack Overflow or respective owner