Deploying Gantt
The files under the <install path>\Src folder in our install should be typically referenced in your web pages and also be deployed in your server. Let us take a closer look at the contents of this folder:
Note on json files
The server will have to be setup to support uploading of files with json extensions.
By default servers do not serve .json file types(no wildcard MIME type). Therefore a 404 not found is thrown when they are accessed. So you will have to add a MIME type to allow it to serve that type of file. You can set it at the site level or at the server level.
To set this for the entire server in IIS:
Open the properties for the server in IIS Manager and click MIME Types
Click "New". Enter "json" for the extension and "application/data" for the MIME type.
To set this for the site level in IIS:
If you want to manually add support to your site, you can just add the following to your web.config in the system.webServer section:
|
<staticContent> <mimeMap fileExtension=".json" mimeType="application/data" /> </staticContent> |
Note on Date.js files
You can see that there is a Src\Scripts\Utils\date.js file which is a mandatory file to be included in your pages.
And for globalization scenarios, you should include one of the several extension files based on the culture you are currently running your pages. For example, if you are running in German culture, you should also include this js file in your page: Src\Scripts\Utils\globalization\de-DE.js.
© RadiantQ 2022. All Rights Reserved.