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.

Event listener HTML element generated after iframe load

Home Forums General Questions Event listener HTML element generated after iframe load

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #49952
    victor.hamel
    Customer

    Hello,

    My interface loads the verge3d iframe when the page loads but I also generate some html elements after user interactions with the page and thus after all the verge3d elements and scripts have already loaded.

    This means some HTML event listener from the visual logic refer to items generated later on on the page via javascript. When the visual logic is loaded these items do not exist yet. Is there a way to re-assign the visual logic on elements with javascript or any other method after the iframe has already loaded ?

    Thank you for your help
    Victor

    #49972

    hi,

    yes, you can enable the event puzzle at any particular moment not just when the Verge3D scene is loaded. To do this, you can put this event puzzle inside a procedure puzzle, and then trigger it from your page via JavaScript
    https://www.soft8soft.com/docs/manual/en/puzzles/Procedures.html#calling_procedures_javascript

    Chief 3D Verger | LinkedIn | Twitter

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