Object's field cannot be accessed after $.ajax call in success function - it is undefined
- by dragonfly
I have a $.ajax call and and server returns JSON. This is my call:
var result; // tmp variable just for playing with Chrome console
$.ajax({
type: "GET",
url: "ashxJSON.ashx",
data: { name: "some sample data" },
contentType: "application/json; charset=utf-8",
…