We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Run Javascript Code Snippet In Parent Frame

Home Forums General Questions Run Javascript Code Snippet In Parent Frame

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #29271
    hermano
    Customer

    I’m looking to trigger a javascript code snippet from my Verge3D app that looks like this:

    Javascript: PagePopup(“43″,”AAB-10036”);

    The code works when executed from the URL box on the page where the Verge3D app is iframed in.

    I tried using the Open Web Page (in the same tab, parent frame) puzzle without success.

    Is it possible to trigger this Javascript code to run in the parent frame using puzzles?

    Many thanks,
    Herman

    #29276
    hermano
    Customer

    Status update: I have now solved this issue.

    Apparently, the verge3d app must be hosted in the same origin site as the parent page.

    How i did it: I hosted the verge3D app on our Azure server (where the website is hosted) and used that as the source for the iframe.

    :yahoo:

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.