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.

Parent Doc HTML Element on Click

Home Forums Puzzles Parent Doc HTML Element on Click

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #8301
    maxwellhankner
    Participant

    Hello friends,

    I am trying to recreate the on click action I see in the recliner example. I’m just not understanding how exactly this works.

    I am simply trying to hide an object when the button is clicked. I have embedded my project in an html doc along with a simple button/link

    My code looks like this:

    <iframe….

    My puzzle consists of
    “on event of click for elem “hide button” in parent doc (checked)”
    “hide” – “my object”

    I have not coded an css to correspond to the hide_button id.

    I am currently using the trial version if that matters, but I’ll purchase a version soon.

    Any help on this would be much appreciated. Thank you in advance

    #8302
    maxwellhankner
    Participant

    I figured I’ll just add pics

    #8304
    maxwellhankner
    Participant

    and the puzzle

    #8309

    I am currently using the trial version if that matters, but I’ll purchase a version soon.

    Frial version has no restriction in functionallity only watermark.

    and the puzzle

    If buttons and other elements you want to interract with in the same HTML file with the iframe you don’t need to set In Parent Doc checkbox.

    Co-founder and lead graphics specialist at Soft8Soft.

    #8342
    maxwellhankner
    Participant

    Thank you for your response, Mikhail.

    Ok, and other than that, any idea why I can not get the action to work? I’m not a very experienced programmer/coder which is why I really like Verge3D, but i can’t even do this haha so I’m wondering if there are any other suggestions to complete this simple task.

    #8347

    Hi,

    I see you embedded Verge3D HTML using the link to Soft8Soft CDN. If you’re running your app from the App Manager it won’t work due to same-origin policy.

    Try using a relative path such as src=”my_app.html” and see if it works in the App Manager first. And yes, the Recliner demo is a good example of how you embed 3D in html.

    Also avoid using spaces in file names – they are not that web-friendly.

    Chief 3D Verger | LinkedIn | Twitter

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