ApplicationLoad event

0
In Mendix, is there any event which is triggered on after successful loading of an Application ?  I want to execute a Javascript Action immediately after application loading. 
asked
3 answers
0

If you mean directly after having started the application then have a look at the ‘After startup’ microflow in the Runtime-tab of your Project Settings.

answered
0

You could use the Javascript Snippet widget to perform that action on loading of the homepage. This should be triggered on successful loading of that page.

answered
0

You can add some javascript in your index.html page, or whatever first page is people get redirected to.

Just add it in the body:

<head>
  ...

</head>

<body>
    <script>
        **Your script**
    </script>
    <script src="mxclientsystem/mxui/mxui.js?{{cachebust}}"></script>
</body>
 

answered