fritzdekatt wrote: ↑Tue Feb 26, 2019 11:19 pm
FourthWorld wrote: ↑Tue Feb 19, 2019 7:12 pm
Was the difficulty on the AJAX side or the PHP side? I've used XMLHttpRequest to call LC Server routines, so I may be able to help once I learn more about where the trouble lies.
I have trouble on the AJAX side because my javascript stinks.
It's not you. It's JavaScript.
But seriously, in LC we most commonly submit requests to servers with GET and POST. These are built-in commands in LC. Give 'em a whirl and let us know if you run into any snags.
Bottom line, I'm so far from entertaining the notion of doing anything novel with LC server. I'm turning some simple PHP apps into LC analogues just for giggles.
To get started, let me know: are you running a VPS, dedicated server, or on a shared host?
With your background in Node.js I'm guessing not shared.
Also: how far have you gotten so far with LC Server? Able to submit requests and get replies?
As for stack on a sever, there are two main ways they're useful:
1. On the server, a stack file can be a good way to keep multiple scripts in one place. And if you have an Indy or Business license, those scripts can be encrypted as well, making server solutions deliverable to customers if you're in that sort of business. Stacks can also be used to generate custom graphics based on user inputs.
2. In an LC client app, stacks can be downloaded from a server quite easily. This allows many of the same benefits of web delivery, in terms of instant updates so your users always have the latest UI. There's an example living on your hard drive right now: in LC, see Development -> Plugins -> GoLiveNet. The initial progress window you see is the only thing in the plugin itself. From that point on everything you see is downloaded on the fly from one of my servers to run locally on your computer. Of course this won't help if your target is the browser, but if you're also making LC standalones that are already network-dependent, being able to download stacks dynamically over the web has many advantages.
Obviously, if some veteran did write a "book-long post" on these subjects, it would probably be a popular read.
Lordy, how I wish I could. Find my someone to pay my bills for a couple months and I'll actually write a full book.
For now, I eek out what time I can here and hope it helps.