03-28-2023, 04:56 PM
Thank you for your replies, but doesn't work with me
My app tree is :
In js, I already have my js file.
I've added the rc file with the same name and content than you (copy/paste to avoid case/spelling mistakes). Then I compiled it with brcc32 succesfully, RES file was created.
In the form where I want to use my js file, I've added :
- IWServerInternalFiles in the interface USES list
- {$R ScrollLesson.res} in the implementation (also tried with {$R \Win32\Debug\wwwroot\js\ScrollLesson.res})
- gInternalFiles.Add('IW_JS_SCROLLLESSON', '/js/ScrollLesson.js'); at the beginning of the procedure FormShow
No error when I run my app, but the js file is not loaded (not displayed in the page source, not visible in the debugger tab of the firefox web dev tool.
I also tried the method of Jeroen, same issue (the file is added in the program dpr file, no compilation/execution error, but the js file is not loaded).
My app tree is :
Quote:App root path
|--Win32
|--|--Debug
|--|--|--wwwroot
|--|--|--|--js
In js, I already have my js file.
I've added the rc file with the same name and content than you (copy/paste to avoid case/spelling mistakes). Then I compiled it with brcc32 succesfully, RES file was created.
In the form where I want to use my js file, I've added :
- IWServerInternalFiles in the interface USES list
- {$R ScrollLesson.res} in the implementation (also tried with {$R \Win32\Debug\wwwroot\js\ScrollLesson.res})
- gInternalFiles.Add('IW_JS_SCROLLLESSON', '/js/ScrollLesson.js'); at the beginning of the procedure FormShow
No error when I run my app, but the js file is not loaded (not displayed in the page source, not visible in the debugger tab of the firefox web dev tool.
I also tried the method of Jeroen, same issue (the file is added in the program dpr file, no compilation/execution error, but the js file is not loaded).

