Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Working with Javascript
#8
Thank you for your replies, but doesn't work with me Cry

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).
Reply


Messages In This Thread
Working with Javascript - by StephB - 03-22-2023, 10:21 AM
RE: Working with Javascript - by StephB - 03-23-2023, 08:53 AM
RE: Working with Javascript - by valmeras - 03-23-2023, 07:17 PM
RE: Working with Javascript - by valmeras - 03-23-2023, 11:27 PM
RE: Working with Javascript - by jeroen.rottink - 03-24-2023, 10:18 AM
RE: Working with Javascript - by StephB - 03-28-2023, 04:56 PM
RE: Working with Javascript - by valmeras - 06-28-2024, 08:29 AM
RE: Working with Javascript - by Comograma - 06-28-2024, 01:55 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)