I'm trying to get the image url for a Hyperlink or Picture column field in a SharePoint list, however after trying a lot of variations I just can't get the url to display in the alert to make sure i'm getting it and my script just stops at that line. Below is my code, any help is greatly appreciated! the field's name is 'Stage' (also the internal name)
function onQuerySucceeded(sender, args) {
var listItemInfo = '';
//set up enumerator to go through list
var listItemEnumerator = collListItem.getEnumerator();
//go through returned list items
while (listItemEnumerator.moveNext()) {
var oListItem = listItemEnumerator.get_current();
listItemInfo += '\nID: ' + oListItem.get_id() +
'\nName: ' + oListItem.get_item('Software_x0020_Name') +
'\nStatus: ' + oListItem.get_item('TD_x0020_Status0') +
'\nStage: ' + oListItem.get_item('Stage').split(',')[0];