I am a newbie to AjaxPro so pardon my simple question.

In the examples, there is this code for datasets:

function doTest1() {
        AJAXDemo.Examples.DataSets.Demo.GetDataSet(_callback1);
}

function _callback1(res) {

        var cols = res.value.Tables[0].Columns.length;
        var rows = res.value.Tables[0].Rows.length;

        alert(cols + " cols and " + rows + " rows");
}

In the _callback1 function, how do you reference the individual columns
returned in the dataset?  For example (this does not work!), I want to
set an element's inner text.

  document.getElementById("detailName").innerText =
res.value.Tables[0].Rows[0][0];

The Rows[0][0] returns an undefined values.  However, there is data.

Any thoughts on the correct syntax?

Thanks.
Steve


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Ajax.NET Professional" 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/ajaxpro

The latest downloads of Ajax.NET Professional can be found at 
http://www.ajaxpro.info
-~----------~----~----~----~------~----~------~--~---

Reply via email to