Page 1 of 1

Launching a stack via URL

Posted: Wed Aug 25, 2021 4:55 am
by dalkin
Hello. I hope I'm in the right place. I am experimenting with launching a stack I uploaded to a web directory. I then created a new stack with a single button (the standalone app) that pulls down that stack file from the URL. It works to a degree but I have a few issues I need to sort out.

I can't seem to find any LC documentation that talks about this way of doing things, including its limitations or tips etc. but I am particularly concerned with saving the stack contents/changes and uploading/saving referenced multimedia files.

I think that someone will tell me it can only be done as a html5 project.

Re: Launching a stack via URL

Posted: Wed Aug 25, 2021 5:05 am
by FourthWorld
For a living example, in your IDE see Development -> Plugins -> GoLiveNet

Please ask any questions that come to mind. Delivering stacks via HTTP is how I've done much of my work for many years.

Re: Launching a stack via URL

Posted: Wed Aug 25, 2021 5:45 am
by dalkin
goLiveNet is very cool Richard. I guess my question is fairly simple .. using this approach, I wonder if my stack is downloaded into RAM - is there any mechanism for changes to the stack to be saved and consequently uploaded back to the server to overwrite the existing file?

Re: Launching a stack via URL

Posted: Wed Aug 25, 2021 6:23 am
by FourthWorld
Do you want to save the whole stack, or just data within the stack?

Either way, you'll need something in the server to receive the data, along with some form of authentication. LiveCode Server can help with that.

Re: Launching a stack via URL

Posted: Wed Aug 25, 2021 6:31 am
by dalkin
Thanks a million! I would prefer to save the whole stack. I have LC Server on my Indy licence.

Re: Launching a stack via URL

Posted: Wed Aug 25, 2021 7:25 am
by FourthWorld
What is the file size of the stack currently? And can your briefly describe what it does?

Re: Launching a stack via URL

Posted: Wed Aug 25, 2021 7:44 am
by dalkin
The stack is only 320kb at the moment and is intended to help songwriters think of lyrics. It contains various text fields and (in its desktop version) allows users to load sound files and also record sounds via mergMicrophone (Mac) with a Windows equivalent. The desktop version creates a new card for each musical project and populates a scrolling menu where people can navigate to any project they have created.
Screen Shot 2021-08-25 at 4.36.12 pm.png

Re: Launching a stack via URL

Posted: Wed Aug 25, 2021 8:18 am
by FourthWorld
Will you need to also upload the audio files?

Re: Launching a stack via URL

Posted: Wed Aug 25, 2021 8:38 am
by dalkin
Yes. That would be the ultimate aim but I was thinking a DropBox account might work. A specific folder on the server would be preferable though. I sort of stumbled across this LC feature and I’m surprised it’s not more widely used V html5 deployment.