Hi everyone,
I’ve been struggling to get this dropbox integration working as intended for the past few days hence me turning to the community for help.
Essentially I’m trying to code a embedder for a specific dropbox link which is dynamically updated depending on the current user (gets the link from a database) in a Iframe, I have it working with a static link without the onmessage event function , however when I try to update the link via the postmessage() function from the page javascript it doesn’t work and in my browser console it displays that dropbox isnt defined (which it is via the src in the original script tag) .
Here is my HTML component code:
And my page code is a lookup to database and returns a link in the form of a string and sends to the HTML component via the postmessage function.
I’m originally a python (data science background) developer so please be kind, but the on message event is copied from a chart.js html component that I have made and works perfectly so I’m a bit lost.
Thank you in advance!