Entry Points Revisited

We mentioned before that your standard entry point is a .html file that is loaded into your WebResource iframe.

However, you may want to load your WebResouce directly into the parent of the iframe, which is the standard iframe that the rest of the form content is in. Generally the loads look like:

  • top: Toplevel frame

    • contentFrame1: Content frame

      • WebResource_foo: Where your foo web resource is loaded.

      • WebResource_blah: ...ditto...

      • customerscripts: The iframe where your toplevel form scripts are loaded

    • A bunch of other frames that deal with security

The iframes help isolate your resources so they don't collide as much and protect you from dynamics things. However, I find that the layouts work better for smaller web resources if I load directly into the parent of the iframe. If you do this, you cannot load a static .html file directly, everything must be done with javascript.

The basic idea is to dynamically append a <script> tag to the document in the parent of the iframe and load the specified script via a "shim" that you can setup.

In fact, a general purpose react_shim.html can help you load under multiple scenarios and make it easy to use the iframe-parent entry point when you need to. You just need to be careful your resources do not collide with the standard dynamics ones.

Last updated