Search found 5 matches
- Fri Jan 20, 2023 4:47 am
- Forum: HTML5
- Topic: Replace external functions/commands with JS
- Replies: 17
- Views: 13923
Re: Replace external functions/commands with JS
I wasn't asking what javascript method you're trying to replicate in LC. I was asking what the overall intention of what you're doing is - because if you think LiveCode is a good fit for whatever it is you're doing, then maybe there is a better LiveCode way of doing it. If not, then perhaps LC is t...
- Fri Jan 20, 2023 4:40 am
- Forum: HTML5
- Topic: Replace external functions/commands with JS
- Replies: 17
- Views: 13923
Re: Replace external functions/commands with JS
The essence of everything you have mentioned in this thread (as far as I can see) is that LC isn't Javascript - but that should not be a surprise. But just because LC <> JS doesn't necessarily mean it can't be done completely within LC script, or at least partially. Sure, LC doesn't have to be JS. ...
- Wed Jan 18, 2023 12:03 am
- Forum: HTML5
- Topic: Replace external functions/commands with JS
- Replies: 17
- Views: 13923
Re: Replace external functions/commands with JS
Well you may then want to wait for the next LC version which will have direct array assignment What version of LiveCode are you using? LC 10 dp 4 has added new syntax which may help. Open the release notes and search for "syntax" and you will see several new implementations that may help you avoid ...
- Fri Jan 13, 2023 10:11 pm
- Forum: HTML5
- Topic: Replace external functions/commands with JS
- Replies: 17
- Views: 13923
Re: Replace external functions/commands with JS
I know that some people simply load the JS libraries in a browser widget and call from there. The issue is calling/driving it from LCScript and passing data to/from it. I can say that 'do as javascript' is the recommended way that I've seen, not sure why you consider this 'bad practice'? Using "eva...
- Thu Jan 12, 2023 8:18 pm
- Forum: HTML5
- Topic: Replace external functions/commands with JS
- Replies: 17
- Views: 13923
Replace external functions/commands with JS
I have an external stack (DLL) that provides external functions (related to IO) to my stack. These functions cannot be implemented in LC script (they are far too large, and perform IO that cannot be done in LC), but I have a .js implementation that I can include in a script tag in the HTML file. How...