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.

Feature Request: onload Function

Home Forums Bug Reports and Feature Requests Feature Request: onload Function

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #44187
    jdhutchinson
    Customer

    For any iframe, there is an onload property. It would be nice to be able to access this in puzzles. Currently, I’m having a tough time trying to workaround to get my index.html to run a v3d.puzzles.procedures[‘myProcedure’]();

    console logging has got me this far; an empty objetinside of:
    v3d.puzzles.procedures
    {}[[Prototype]]: Object

    I need to access the puzzle, as it makes use of variables in the puzzle environment. So;

    How do I access a puzzle procedure for index.html, or access vaiables from visual logic.js in index.html?

    #44193
    jdhutchinson
    Customer

    Attached is what I tried;accessing a named puzzle procedure, adding v3d.js, app.js, visuallogic.js as modules and text/javascript.

    Attachments:
    You must be logged in to view attached files.
    #44264
    jdhutchinson
    Customer

    Can anybody help with this?

    To try and better explain;

    For an iframe element in my parent doc, i have a src link which I change depending on an annotation that is clicked. This iframe takes some time to preload, and also ‘onload’ it actually takes 2/3 seconds more to render fully. For this reason, I want to link a puzzle to create a time delay before display:none – ing the preloader.

    Is there a way I could run a puzzles procedure in the ‘onload’ property of an iframe, in my index.html document? :scratch: :scratch:

    #44315

    Hi,
    Thanks for the suggestion! We’re going to support the “load” event in the upcoming Verge3D pre-release.

    Soft8Soft Tech Chief
    X | FB | LinkedIn

    #44333
    jdhutchinson
    Customer

    Great! Thank you Alexander!

    Will this be the pre-5?

    #44508
    jdhutchinson
    Customer

    @alexander-kovelenov

    Dear Alexander, how would i get the ‘load’ event to work for my v3d app, signalling that all the contents of the app are loaded? It’s the same thing, right, an iframe that fires a load event?

    I did post a topic regarding some puzzles, such as animate param to animate css, are unavailable from the init tab. Thus I don’t see how I can fade out my preloader nicely, although it’s only a small change I know. Animate param is more helpful, since it has the ‘when finished do’ slot so that after a transition to opacity 0% I can set display:none.

    Hoping this makes sense.

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