Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
blocks:api:javascript [2025-10-01 13:21] – [action] mattiasblocks:api:javascript [2025-10-01 13:22] (current) – [Additional Web Block Interaction Capabilities (postMessage)] mattias
Line 134: Line 134:
 </code> </code>
  
-===== Additional Web Block Interaction Capabilities (postMessage) =====+==== Additional Web Block Interaction Capabilities (postMessage) ====
  
 Custom code hosted inside a Web Block has some additional capabilities for talking to the enclosing Spot. Those are made available through the the browser's //window.parent.postMessage// function, passing various messages and parameters out of the IFRAME hosting the Web Block, then handled by the main Spot code. Custom code hosted inside a Web Block has some additional capabilities for talking to the enclosing Spot. Those are made available through the the browser's //window.parent.postMessage// function, passing various messages and parameters out of the IFRAME hosting the Web Block, then handled by the main Spot code.