Skip to Content
Learning Salesforce Lightning Application Development
book

Learning Salesforce Lightning Application Development

by Mohit Shrivatsava
July 2018
Beginner to intermediate
458 pages
9h 58m
English
Packt Publishing
Content preview from Learning Salesforce Lightning Application Development

Communication between the Lightning main frame and iframe

Your Lightning app may also include applications that are designed in Visualforce. Visualforce was used in the Salesforce classic experience before Lightning existed.

In this section, we will explore how can we communicate between a Visualforce iframe and a Lightning Component. Note that we have used Visualforce here, but technically one could use this approach to communicate between a Lightning window and any iframe loaded in the Lightning page. Use only unsecured data between frames, since the postMessages API that we use to communicate does not offer security.

This technique uses the postMessage API to do the communicating. You can read about postMessage at https://developer.mozilla.Org/en-US/docs/Web/API/Window/postMessage ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Application Development with Force.com

Mastering Application Development with Force.com

Kevin J. Poorman
Learning Salesforce Einstein

Learning Salesforce Einstein

Mohit Shrivatsava, Raghuver Parupalli

Publisher Resources

ISBN: 9781787124677Supplemental Content