// The example XML is as follows:
//
var _filedisplay = '';
var _title;
var _url;
var _filexml = eventdialogjs.currentCalEventDetailObj.eventFiles;
if (_filexml.length > 0) {
$(_filexml).find('link').each(function () {
$.each(this.attributes, function (i, attrib) {
if (attrib.name == 'title') {
_title = attrib.value;
}
if (attrib.name == 'link') {
_url = attrib.value;
}
});
_filedisplay += '' + _title + ' ';
console.log('Files: ', _filedisplay);
});
$('#file-list').html(_filedisplay);
}
//javascript/5286