/
Technical documentation - Inserting custom javascript

Technical documentation - Inserting custom javascript

It is possible to insert custom JavaScript in the application. js files added with this method is executed on each page load after application’s own js.

Configuration

Custom java script files are configured in profile.config. Insert the following in the root of profile.config of a site. It is possible to add several tags to refer several js files.

<CustomJSUrl>whatever.js</CustomJSUrl> <CustomJSUrl>whatever2.js</CustomJSUrl>

Place your custom js in the site folder:

C:\inetpub\wwwroot\AssertWeb\App_Data\Site\whatever.js

C:\inetpub\wwwroot\AssertWeb\App_Data\Site\whatever2.js

Custom javascript are executed at the end of the application’s javascripts.

Related content

Custom texts and available languages
Custom texts and available languages
More like this
Technical documentation - Profile.config snippets
Technical documentation - Profile.config snippets
More like this
Redirect multiple URLs to different sites
Redirect multiple URLs to different sites
More like this
Custom css does not load
Custom css does not load
More like this
Technical instruction - Add http response header on IIS
Technical instruction - Add http response header on IIS
More like this
Pdf.js is used by Assert, here is a hint to make it fit
Pdf.js is used by Assert, here is a hint to make it fit
More like this