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.

How to trigger Event listener for HTML element anytime?

Home Forums Puzzles How to trigger Event listener for HTML element anytime?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #84576
    c4cc
    Customer

    As yuri says here

    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

    I tried, but it doesn’t work when html document’s element is clicked on while verge3d is initialising. Only after does it work. Any way to get Verge3d puzzles, like HTML events to run before app is initialized?

    FPS trialproduct 20.9.25 https://postimg.cc/gallery/LMM5vkQ/af43346e

    #84599
    c4cc
    Customer

    Tried in both html document and application.js, still doesn’t work

    Edit: fullscreen error is solved in this post and the last. Fullscreen puzzle variables values’ now can be updated when fullscreen and reset to default values when smallscreen

    :good:

    • This reply was modified 1 month, 1 week ago by c4cc.
    • This reply was modified 1 month, 1 week ago by c4cc.
    • This reply was modified 1 month, 1 week ago by c4cc.

    FPS trialproduct 20.9.25 https://postimg.cc/gallery/LMM5vkQ/af43346e

    #84606

    Hi,
    I believe the issue is that your params in the init tab are not applicable in the main tabs (once your app is fully loaded). Please check out this post for a solution.

    Soft8Soft Tech Chief
    X | FB | LinkedIn

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