Problem with postMessage to Html Component

Problems I am encountering:-
We are trying to populate our Dynamic Members page with Sound cloud Iframes, we give the option to the users of multiple tracks, so we store the Iframe elements in an array. We grab these Iframe elements from input boxes on our Members Update page, and each input field pushes the values into an array that is then stored in our Members Database in a field called links. The problem arises when we create a function to grab the User row from the Database; we then target the field of the returned row and iterate the array to postMessage() to the HTML component. If I postMessage() a random String there is no problem, but when I try and do that exact thing with the Array values there is no feedback at all from the HTML Component.

  1. This is the array I have : (3) [“<iframe width=“100%” height=“300” scrolling=“no” f…e&show_teaser=true&visual=true”>“, “<iframe width=“100%” height=“300” scrolling=“no” f…e&show_teaser=true&visual=true”>”, “<iframe width=“100%” height=“300” scrolling=“no” f…e&show_teaser=true&visual=true”>"]
  2. 0:“”
  3. 1:“”
  4. 2:“”
  5. length:3
  6. proto:Array(0)
    But once we try sending that across with the postMessage() we get the error:
    postMessage.es6:55 Uncaught (in promise) DOMException: Failed to execute ‘postMessage’ on ‘DedicatedWorkerGlobalScope’: # could not be cloned.
    at R (https://static.parastorage.com/services/js-wixcode-sdk/1.165.0/lib/wix.min.js:1:18542)
    at a (https://static.parastorage.com/services/js-wixcode-sdk/1.165.0/lib/wix.min.js:1:15925)
    at Object.i [as sendMessage] (https://static.parastorage.com/services/js-wixcode-sdk/1.165.0/lib/wix.min.js:1:15800)
    at HtmlComponent.value (https://static.parastorage.com/services/js-wixcode-sdk/1.165.0/lib/wix.min.js:1:173941)
    at getArray (https://3ec09d70-0234-48c7-888a-47ce844a91ce.static.pub.wix-code.com/static/v2/d050e848-1b55-4e5a-aaf3-39762ebb461c/3ec09d70-0234-48c7-888a-47ce844a91ce/pages/nzc5n.js?empty-if-missing=true&exclude=wix-&module-name=nzc5n:102:23)
    at
    I hope this is clear enough of an explantion!

Hey,
Can you please share with us with the site URL so that we can have a look?

Thanks,
Tal.

Hi sorry we want to keep the URL private at the moment could you please email me on the following address and ill send it via email ?
josh@codezacademy.co.uk

Sent you an email.