I have this jQuery ajax:
// ... omitted code ...
var data = "{'TagName':'" + TagName + "'}";
var resultSet = 0;
jQuery.ajax(
{
type: "POST",
url: '<%= ResolveUrl("~/Webservices/TagWebServices.asmx/GetTagByTagName") %>',
data: data,
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (t)
{
resultSet = t.d;
}
});
jQuery(this).after("<div style='color:#E3E3E3; margin-bottom:10px;'>" +
resultSet.desc +
"</div>" );
// ... omitted code ...
The problem is that resultSet.desc always returns "undefined" BUT when I use Firebug and add a breaking point in the last line and then click (Continue) resultSet.desc works as expected.