Hi,
i'm a beginner with ajax and i have a problem :
i can't get the object properties within the javascript function.
This is the test code i wrote:
function FillCombo(ddl)
{
Repository.GetDataList(11,FillCombo_callback);
}
function FillCombo__callback(response)
{
if ( response != null && response.value != null)
{
alert(response.value[0].Name);
}
}
The GetDataList method return an arraylist of my custom object.
The result is "undefined" but the data are correctly loaded by the GetDataList method. When i debug the code the response.value[0] is a string like "mynamespace.myClassName" but not an object !
What's going wrong?
i'm a beginner with ajax and i have a problem :
i can't get the object properties within the javascript function.
This is the test code i wrote:
function FillCombo(ddl)
{
Repository.GetDataList(11,FillCombo_callback);
}
function FillCombo__callback(response)
{
if ( response != null && response.value != null)
{
alert(response.value[0].Name);
}
}
The GetDataList method return an arraylist of my custom object.
The result is "undefined" but the data are correctly loaded by the GetDataList method. When i debug the code the response.value[0] is a string like "mynamespace.myClassName" but not an object !
What's going wrong?