title: Sending a chunk of HTML to another URL using postMessage()
body: <p><strong>Objective:</strong> Copy a chunk of HTML and send it to a website on another domain.</p>
  
  <p><strong>My problem:</strong> The website I'm working on and the website in the iframe are on different domains. I own both of them and have set the Access-Control-Allow-Origin to allow the websites to communicate to each other. However, I can't seem to pass the HTML chunk to the parent window.<br>
  I've tried <code>parent.window.postMessage(chunk, http://www.parent-page.com)</code> (chunk is the chunk of HTML code) but I get this error:<br>
  <code>Uncaught DataCloneError: Failed to execute 'postMessage' on 'Window': An object could not be cloned.</code><br>
  I have also tried to use ajax to send a PUT request to the parent window but, I get a 404 error that it cannot find the parent window. *I am running the parent window from my local server.<br>
  <br>
  <strong>My Question:</strong> Can anyone tell me the best way to send an object, containing HTML code, from an iframe to the parent window given that the two websites are NOT on the same domain?</p>
  
  <p><strong>EDIT:</strong> I removed the stuff about a skeleton object as that was out of the scope of the question I was really trying to ask.</p>