skip to Main Content

Javascript – I cant figure out how to make this function execute after the first one is done

I have a function called chat chattext, which purposes is to write text to a box letter by letter. function chattext(chat) { playaudio("talking.mp3"); document.getElementById("chat").style.display = "block"; document.getElementById("chat").innerHTML = ""; var count = 0; function update() { console.log(count); document.getElementById("chat").innerHTML += `${chat.substring(…

VIEW QUESTION

Azure Function to Generate file from JSON contentByte – Microsoft Graph API Email generation

Im having problem writting an azure function which takes blob input (JSON) and create a file using the contentbyte column from the JSON file. JSON Template: { "@odata.context":"https://graph.microsoft.com/v1.0/$metadata#users('XXX.com')/messages('AQMkADAA3D%3D')/attachments", "value":[ { "@odata.type":"#microsoft.graph.fileAttachment", "@odata.mediaContentType":"application/pdf", "id":"AQMkADA0NjA5YT", "lastModifiedDateTime":"2023-06-29T14:40:33Z", "name":"MISC.pdf", "contentType":"application/pdf", "size":314000, "isInline":false, "contentId":"5E2D20ED5265174C8C9DC1AD59FFA4outlook.com", "contentLocation":null,…

VIEW QUESTION
Back To Top
Search