When I compile a program and run the compiled executable, I get the following error:
When I load the same page (which loads that ui.js file) in any browser, I do not get any javascript errors. If I ignore the error and "continue running scripts" everything seems to work, but I would really like to track down what's causing that error.
I suspect it's a syntax error generated by whatever version of javascript the Web Browser Control is using, as I got a similar error before for a different issue, and was able to solve it with a polyfill. Is there any way to get a better detailed error message, or to show a javascript console, like I'd do in a browser?
In the Project Options -> Behavior tab, I have "Hide javascript errors to the user" unchecked to help with debugging. When I run the compiled file, I get an error popup. That popup gives me a line and a Char position, but no file.
Furthermore, I have gone through every javascript file loaded by my index.html file, and none of them have a forEach statement on line 66. Any ideas as to where I should look to track down the problem?
I'm trying to use HTML compiler to save and load .json flavored text files. If I use javascript's JSON.stringify and JSON.parse I can encode and decode data fine. However, when I use stringify to get a string and write it to a file, then read it in to a string and use parse, Javascript throws an "unknown character" error.
For what it is worth, I opened the file written by appReadFile and copy and pasted the stringify results into a json validator, and it says the text is valid json.
If I have javascript write out those two strings (the one i write to the file and the one i read from the file, they strings look the same, but javascript says they are not === or ==.
Is it possible that appReadFile is inserting a hidden character somewhere?
I'm trying to use fontawesome and one other custom font in an app I'm building in HTML Compiler. If I use the fontawesome's cdn link
link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous"
things work fine when I test in all browsers and in the HTML Compiler preview, but I'd rather embed the font in a local manner, like:
link rel="stylesheet" href="./css/all.css"
This second link works in all browsers I can test, but not when I use the HTML Compiler preview. Any idea what's going on, or if it is possible to get it to work somehow?
Everybody can read the DecSoft support forum for learning purposes, however only DecSoft customers can post new threads. Purchase one or more licenses of some DecSoft products in order to give this and other benefits.
This website uses some useful cookies to store your preferences.