Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
External JS and CSS Files
#10
I see what you mean your template contains the links, you are not adding them using those methods from PageContext or IWForm. Try to reference your files like this:

<script src="../wwwroot/assets/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>

Please notice that I included "../wwwroot" in front of your existing path

IntraWeb template processor always looks for 2 "special" strings in paths of files when processing the template: "../wwwroot" and "../files/"

They both will be replaced when the final HTML is generated. In a simplified way:

../wwwroot -> when your wwwroot folder is under the application folder, IW template processor will replace ../wwwroot by the URL base. In case of ISAPI, it will be something like <Web application alias or name>/<ISAPI dll name>

../files/ -> will be replaced by <URL base>/files/
Reply


Messages In This Thread
External JS and CSS Files - by baxing - 04-01-2023, 04:51 PM
RE: External JS and CSS Files - by baxing - 04-03-2023, 06:11 AM
RE: External JS and CSS Files - by brsoft - 04-04-2023, 07:12 AM
RE: External JS and CSS Files - by baxing - 04-04-2023, 09:29 AM
RE: External JS and CSS Files - by brsoft - 04-05-2023, 06:59 AM
RE: External JS and CSS Files - by baxing - 04-07-2023, 05:08 AM
RE: External JS and CSS Files - by baxing - 04-08-2023, 07:09 AM
RE: External JS and CSS Files - by Alexandre Machado - 04-09-2023, 10:44 PM
RE: External JS and CSS Files - by baxing - 04-10-2023, 03:54 AM
RE: External JS and CSS Files - by baxing - 04-10-2023, 07:17 AM
RE: External JS and CSS Files - by baxing - 04-25-2023, 05:22 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)