Hierarchy

  • IFrameHelper

Constructors

Methods

  • Pushes the given data into the Google Tag Manager data layer on the parent page.

    If the configurator is not embedded in an IFrame, the event is pushed directly into the data layer of the current window.

    Parameters

    • event: string

      key for event identification

    • Optional eventData: string | object

      optional event data

    Returns void

  • Retrieve the parent page's URI.

    Parameters

    • type: "GetParentPageUri"
    • callback: ((parentPageUri: undefined | string) => void)

      Given parentPageUri is undefined if we're not inside an IFrame or the CbnPlugin does not respond to our request.

        • (parentPageUri: undefined | string): void
        • Parameters

          • parentPageUri: undefined | string

          Returns void

    Returns void

  • Checks if the page is opened inside an IFrame

    Returns boolean

  • Sets window.location.href to the given url on the parent page

    Parameters

    • url: string

    Returns void

  • Send a custom message to the parent page via the "CustomMessage".
    The parent page can handle those messages by implementing the function Combeenation.on{msgName}.

    Parameters

    • msgName: string
    • Optional data: object

    Returns void

  • Changes the width and/or height of the IFrame and/or scroll position of the parent page window.
    Won't do anything if we are not inside an IFrame.
    Sends an "silent" error to raygun if we are inside an IFrame but the CbnPlugin is not correctly installed on the parent site.

    Parameters

    • Optional width: string

      If not given or 0, the width is not changed

    • Optional height: string

      If not given or 0, the height is not changed

    • Optional scrollToX: number

      New horizontal scroll position of the parent page window

    • Optional scrollToY: number

      New vertical scroll position of the parent page window

    Returns void

Generated using TypeDoc