Rohit_Nz
(Gupta Rohit)
September 2, 2025, 2:18am
1
If I include this app in the project (not even using it), the webapp fails. The console shows
Uncaught SyntaxError: Invalid or unexpected token
index.html:29 Uncaught ReferenceError: rtl is not defined
at index.html:29:34
It points to
<body id="body">
<script type="text/javascript">rtl.run();</script>
</body>
Help, I am stuck. Obviously, I have something incorrect in it.
Ops.Position.pas (15.6 KB)
The problem is in your ASM code that is literally output to the application .JS file and that the browser has a problem with:
Code like:
asm
var latElement = @FLatInput.FElement;
var lngElement = @FLngInput.FElement;
@LatValid = latElement && latElement.classList.contains('coordinate-valid');
@LngValid = lngElement && lngElement.classList.contains('coordinate-valid');
end;
I'm not sure what the intent is of using @FLatInput but it is causing a problem in the browser.
Rohit_Nz
(Gupta Rohit)
September 2, 2025, 12:26pm
3
There were other bits. I had done some refactoring, which had not changed the identifier names inside asm . I finally jiggled it to use more Delphi and less js.