1

I am using window.postmessage() to send data from lightning component to visualforce page as given in below link.

https://developer.salesforce.com/blogs/developer-relations/2017/01/lightning-visualforce-communication.html

For some reason window.postmessage() in not working in Microsoft edge after spring'19 release. Is there any other way to communicate between independent lightning component and visualforce page without window.postmessage()?

Any kind of help is appreciated.

Thank You

2
  • @codeyinthecloud When I used post message, I added Vf page as Iframe and then using that I was sending message to VF page. Suppose if I use dispatchEvent in lightning component, how a visualforce page will listen to that event as vf and lightning components are in different container? Commented Jan 15, 2019 at 15:59
  • Has any one achieved this using any other way? Commented Jan 19, 2020 at 12:01

1 Answer 1

1

you can try lightning message service, this is a new feature. http://www.webuildsf.cloud/salesforce-crm/an-example-to-communicate-between-lightning-web-components-and-visualforce-pages/

1
  • yes, earlier when i posted this question this feature was not available. Commented May 20, 2020 at 8:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .