Use DefaultDisplayFormUrl at the time of loading the list in Javacript client object model. Example:
var clientContext = new SP.ClientContext.get_current();
var list = clientContext.get_web().get_lists().getByTitle(listTitle);
clientContext.load(list, 'DefaultDisplayFormUrl');
Then while enumerating the listitemcollection use get_defaultDisplayFormUrl() to create the Url. Example:
while (listItemEnumerator.moveNext()) {
var listItem = listItemEnumerator.get_current();
var listItemId = listItem.get_item('ID');
var href = list.get_defaultDisplayFormUrl() + "?ID=" + listItemId;
}
data.value. It could alter if you use SPO, on premise or through an app. What you can do is to callconsole.log(data)and you will see the object structure in say Chrome dev tools. Another option is to view it in Dev tools network tab. Yet another is to set break point and inspectdatavariable. – eirikb Nov 17 '14 at 07:10console.log(data)work perfect then I can inspect the object. Great! – tbbt Nov 17 '14 at 07:14