07-20-2023, 09:57 PM
I am using Intraweb 15.3.10 with C++ Builder 10.2.3
I am using Bootstrap 5.3 templates with my Intraweb application.
The template loads some JavaScript files:
[font=Consolas, "Courier New", monospace] <script src="bootstrap-js/bootstrap.bundle.min.js"></script>
<script src="wysiwyg-editor/dist/js/wysiwyg.js"></script> [/font]
Both Js files are in the wwwroot and Templates folders. Unfortunately I noticed that even if the Js is modified, Intraweb is using an old version.
The changes I make in [font=Consolas, "Courier New", monospace]wysiwyg.js[/font] are not reflected in the Browser during the execution of the program. When running the browser is showing the code below for a click on a button:
content += '<div class="form-group form-group-sm">';
content += ' <div class="form-row">';
content += ' <label class="col-xs-12 col-sm-4">Class:</label>';
content += ' <div class="col-xs-12 col-sm-8">';
content += ' <input type="text" class="form-control" id="urlClass" placeholder="CSS class name..." />';
content += ' </div>';
content += ' </div>';
content += '</div>';
But the real code in the Js file is below:
[font=Consolas, "Courier New", monospace]
content += '<div class="mb-3">';
content += ' <div class="row mb-3">';
content += ' <label class="col-12 col-sm-4">Tile:</label>';
content += ' <div class="col-12 col-sm-8">';
content += ' <input type="text" class="form-control" id="urlTile" placeholder="Title of link..." />';
content += ' </div>';
content += ' </div>';
content += '</div>';[/font]
[font=Consolas, "Courier New", monospace]So the 2 codes which are supposed to be from the Js file are different!!
It is not related to the browser because I cleared the cache and tried 2 different browsers.[/font]
[font=Consolas, "Courier New", monospace]So it is Intraweb which is caching the wrong version and using it ignoring the changes I am making![/font]
[font=Consolas, "Courier New", monospace]In the browser, the Js version used is located at http://localhost:20300/[font=Consolas, "Courier New", monospace]wysiwyg-editor/dist/js/wysiwyg.js[/font][/font]
I tried to relocate the application cachedir, TIWTemplateCache::Instance->ClearCache(). But nothing is resolving the issue!
So, where is Intraweb is getting this old and wrong version from?
I am using Bootstrap 5.3 templates with my Intraweb application.
The template loads some JavaScript files:
[font=Consolas, "Courier New", monospace] <script src="bootstrap-js/bootstrap.bundle.min.js"></script>
<script src="wysiwyg-editor/dist/js/wysiwyg.js"></script> [/font]
Both Js files are in the wwwroot and Templates folders. Unfortunately I noticed that even if the Js is modified, Intraweb is using an old version.
The changes I make in [font=Consolas, "Courier New", monospace]wysiwyg.js[/font] are not reflected in the Browser during the execution of the program. When running the browser is showing the code below for a click on a button:
content += '<div class="form-group form-group-sm">';
content += ' <div class="form-row">';
content += ' <label class="col-xs-12 col-sm-4">Class:</label>';
content += ' <div class="col-xs-12 col-sm-8">';
content += ' <input type="text" class="form-control" id="urlClass" placeholder="CSS class name..." />';
content += ' </div>';
content += ' </div>';
content += '</div>';
But the real code in the Js file is below:
[font=Consolas, "Courier New", monospace]
content += '<div class="mb-3">';
content += ' <div class="row mb-3">';
content += ' <label class="col-12 col-sm-4">Tile:</label>';
content += ' <div class="col-12 col-sm-8">';
content += ' <input type="text" class="form-control" id="urlTile" placeholder="Title of link..." />';
content += ' </div>';
content += ' </div>';
content += '</div>';[/font]
[font=Consolas, "Courier New", monospace]So the 2 codes which are supposed to be from the Js file are different!!
It is not related to the browser because I cleared the cache and tried 2 different browsers.[/font]
[font=Consolas, "Courier New", monospace]So it is Intraweb which is caching the wrong version and using it ignoring the changes I am making![/font]
[font=Consolas, "Courier New", monospace]In the browser, the Js version used is located at http://localhost:20300/[font=Consolas, "Courier New", monospace]wysiwyg-editor/dist/js/wysiwyg.js[/font][/font]
I tried to relocate the application cachedir, TIWTemplateCache::Instance->ClearCache(). But nothing is resolving the issue!
So, where is Intraweb is getting this old and wrong version from?