Hi,
I had a problem with my .ajax
I 'm pretty sure my code runs fine, since I can see what the result
for the page I post to,
but i still get to direct to the error status, even though my status
is 200.
this is my .ajax code
$.ajax({
url: 'game_func.php?uid=team2='+team2io+'&act=ioratio',
dataType: "json",
success: function(json) {
if(json.callback == "done")
{
teamcon.value = json.newcon;
document.getElementById("team1_io").value =
json.newio1;
document.getElementById("team2_io").value =
json.newio2;
}else{
if(json.value == "concede")
{
alert('球投輸入錯誤!!');
}
}
},
error: function(xhr) {
alert(xhr.status);
}
});
and the json get return is
{"callback":"done","newcon":"2.5","newio1":"0.850","newio2":"0.850"}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---