leandro Posted November 22, 2023 Share Posted November 22, 2023 Hello, I have a project with unigui, which has an html template associated with a javaScript file. What I need is to know how to make sure that when running in the browser, it reads that js file, since outside of Delphi it works fine for me, but when using it from Delphi I can't get it to read the file. I am using a TUniSyntaxEdit to read the html. I tried putting the js file in the Files folder and then calling it from the ServerModule in customFiles, but it still doesn't work. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 22, 2023 Share Posted November 22, 2023 Hello, First of all please specify which edition and build of uniGUI are you using? Quote Link to comment Share on other sites More sharing options...
leandro Posted November 22, 2023 Author Share Posted November 22, 2023 Delphi 11.3 Version 28.048361.3236 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 22, 2023 Share Posted November 22, 2023 uniGUI version? Quote Link to comment Share on other sites More sharing options...
leandro Posted November 22, 2023 Author Share Posted November 22, 2023 unigui professional edition v1.90.0.1572 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 23, 2023 Share Posted November 23, 2023 7 hours ago, leandro said: unigui professional edition v1.90.0.1572 So, you are not using the trial version, please adjust your forum email address: Quote Link to comment Share on other sites More sharing options...
Thiago Moraes Posted November 28, 2023 Share Posted November 28, 2023 Make sure the path you're using to reference the JavaScript file in your HTML code is correct relative to your Delphi project's root directory. Also, check your browser's developer console for any error messages that might give you a clue about what's going wrong. It could be a CORS (Cross-Origin Resource Sharing) issue if the JavaScript file is hosted on a different domain. If all else fails, you can try using an absolute URL for the JavaScript file in your HTML code to see if that resolves the problem. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.