So i’ve moved my project over to nodejs (see my other posts were all issues in php) and I am trying to add a dynamic event to the app on page load. When choose + > Load everything related DMX disappears and i’m left with the paragraph element i had on the page and the button. I can do CTRL Z to fix it but as soon as I try to add it back the same thing happens over again. Screenshots of before and after:
Before i try to add the on load event:
The dynamic events for App are not available for NodeJs content pages, but this should not break the App Structure.
Can you check what’s changed on the content page code when you try to add this event?
before i click to add an on load event, this is at the top of the code in the wappler comment. <!-- Wappler include head-page="layouts/main" id="index" components="{dmxBrowser:{}}" jquery_slim_35="local" fontawesome_4="local" bootstrap4="local" bootstrap_icons="local" is="dmx-app" appConnect="local" -->
after i click it becomes: <!-- Wappler include head-page="layouts/main" id="index" components="{dmxBrowser:{}}" jquery_slim_35="local" fontawesome_4="local" bootstrap4="local" bootstrap_icons="local" is="dmx-app" dmx-on:load="" -->
Following the same sequence on another content page in the project doesn’t do anything.
This started because I have a security restrict on a server action in the content page we’ve been talking about (index.ejs). However it’s not working properly either. It should redirect me to /login but it’s doing nothing. How I discovered this was trying to figure out why the security restrict wasn’t work so I thought i’d try the on load event under dynamic events. Then I found this and thought it was odd… I didn’t know you couldn’t use that in a nodejs project.