Estoy tratando de actualizar los elementos HTML del Panel de tareas cuando se activa el evento OnMessageRecipientsChanged. El evento se recibió con éxito, sin embargo, no puedo acceder a los elementos HTML usando:
document.getElementById("item-subject").innerHTML = "Testing..."Además, este elemento está disponible en Office.OnReady() y puedo actualizarlo allí, pero en su lugar quiero hacer este evento onMessageRecipientsChanged.
Esto funciona:
Office.onReady(function () { $(document).ready(function () { document.getElementById("item-subject").innerHTML = "Testing..."; }); });Esto no funciona:
function onMessageRecipientsChangedHandler(event) { document.getElementById("item-subject").innerHTML = "Testing..."; }¿Cómo puedo hacer que esto funcione?