Home › Forums › Bug Reports and Feature Requests › Feature Request: onload Function
- This topic has 5 replies, 2 voices, and was last updated 4 years, 1 month ago by
jdhutchinson.
-
AuthorPosts
-
2021-09-01 at 11:28 pm #44187
jdhutchinsonCustomerFor 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]]: ObjectI 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?
2021-09-02 at 1:10 am #44193
jdhutchinsonCustomerAttached is what I tried;accessing a named puzzle procedure, adding v3d.js, app.js, visuallogic.js as modules and text/javascript.
Attachments:
2021-09-03 at 12:45 pm #44264
jdhutchinsonCustomerCan 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?
2021-09-06 at 9:13 am #44315
Alexander KovelenovStaff2021-09-06 at 12:40 pm #44333
jdhutchinsonCustomerGreat! Thank you Alexander!
Will this be the pre-5?
2021-09-10 at 11:07 am #44508
jdhutchinsonCustomerDear 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.
-
AuthorPosts
- You must be logged in to reply to this topic.
