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.

Getting variable value from Articulate Storyline

Home Forums Puzzles Getting variable value from Articulate Storyline

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #77480
    gulumse716
    Participant

    Hi. I want to transfer the value of the slider_a_value1 variable defined on the articulate storyline to the slider_value1 variable in the webgl application created with verge3d, which has been added as a webobject to the articulate storyline. Even though I tried many times, I couldn’t figure it out.

    Verge3d side
    window.————- = function() {
    app.ExternalInterface.————-();
    }

    On the articulate storyline side

    var iframeElements = document.getElementsByTagName(“iframe”);
    iframeElements[0].contentWindow.window.—————-();

    I can trigger a procedure by adding it, but I was not successful in transferring the value of the variable.

    • This topic was modified 2 months ago by gulumse716.
    #77488

    It looks like you need to call a JS function inside iframe:
    https://stackoverflow.com/questions/251420/invoking-javascript-code-in-an-iframe-from-the-parent-page

    Chief 3D Verger | LinkedIn | Twitter

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