Skip to content

Instantly share code, notes, and snippets.

@justin-lyon
justin-lyon / sfdc-postMessage.md
Last active March 1, 2021 19:57
Some things I learned about window.postMessage on Salesforce

Salesforce and window.postMessage

I have a visualforce page in lightning console, and I need it to send messages other components in the page. This is troublesome because Salesforce always embeds VF Pages in an iframe, even in classic.

In my research, and from folks in a few different communities I heard about window.postMessage as a possible solution.

I found that the Locker API Viewer did not block it, so I sent about figuring it out.

The following regails my misconceptions and pitfalls along the way.

@floriankraft
floriankraft / JcrQueryLibrary.md
Last active July 28, 2025 14:45
Some useful JCR queries (XPATH, SQL2) for AEM/CQ development.

SQL2

All nodes with a specific name

SELECT * FROM [nt:unstructured] AS node
WHERE ISDESCENDANTNODE(node, "/search/in/path")
AND NAME() = "nodeName"

All pages below content path