Stack as website?

Bringing the internet highway into your project? Building FTP, HTTP, email, chat or other client solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
peter.s
Posts: 99
Joined: Thu Jul 10, 2008 11:47 am

Stack as website?

Post by peter.s » Tue Aug 12, 2014 12:55 pm

Please excuse this if it is a silly question...

I need to make a simple website, but I know nothing of how to make a website - however I do know how to make a good looking livecode stack.

So, Is it possible to present/convert a stack to be a website?

I've been searching the internet and these forums for a definitive answer to this, but only come up with even more questions. I also came across this website which was apparently designed with livecode (http://www.encresdubuit.com/en/index.irev), so it does seem possible... or am I misunderstanding something?

Information on the OnRev website suggest that a stack can sit on a server and be accessed by a user, but it also suggests that the stack running on the server will not present itself in the browser :?

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9842
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Stack as website?

Post by FourthWorld » Tue Aug 12, 2014 5:23 pm

Bad news, good news, better news, amd best news:

The Bad News: Browsers only render HTML, with some visual attributes defined in CSS and interactivity provided through the only language browsers natively understand, JavaScript. LiveCode stack files are among the many formats browsers simply aren't designed to handle, so there's no way to display a LiveCode stack file in a browser.

The Good News: HTML, CSS, and JavaScrtipt are just plain text, and LiveCode is unusually adept at manipulating text. Many of us produce Web sites using LiveCode as a key part of the process, generating HTML/CSS to translate layouts to a Web-ready form, and even assembling JavaScript snippets to deliver the interactivity for those pages.

The Better News: While Web browsers can't render LiveCode stacks, many of the benefits of delivering stacks over the Web can be achieved very easily by building a standalone that is in effect a custom browser, one that downloads and runs LiveCode stacks from servers similarly to how traditional browsers download and render HTML files. There's an example of this in the IDE (thought woefully in need of a content update, coming as soon as I finish some client work): see Development->Plugins->GoRevNet. Once you select that plugin, it downloads and runs a stack that lives on one of my servers. This is super-easy to do, and you can even store the files compressed on the server and decompress them in the standalone for faster transfer times using LiveCode's built-in compress and decompress functions. This won't satisfy needs for running in a Web browser specifically, but can provide many of the same benefits in terms of instant delivery of the latest versions of your stacks, providing ultra-simply deployment with a UI dedicated to the task your app supports. Right now a majority of the projects I'm working on are standalones that use downloaded stack files used in intranet and extranet contexts.

The Best News: For projects that require deployment through a traditional Web browser, RunRev just successfully completed a crowd-funding campaign to deliver a turnkey solution to translate LiveCode into HTML/CSS/JavaScript automatically. It's a rather huge effort that's estimated to take about a year to deliver, but once completed promises the simplest means of delivering LiveCode-based projects to traditional Web browsers - see this page for details:
http://livecode.com/livecode-to-html5/
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

peter.s
Posts: 99
Joined: Thu Jul 10, 2008 11:47 am

Re: Stack as website?

Post by peter.s » Wed Aug 13, 2014 8:54 am

Thank you Richard for clarifying this for me. It seems bringing Livecode to HTML5 is a very exciting step forward!
I can't wait for it for my immediate project, but I will certainly be trying it out when it is released.

kellymdeters
Posts: 23
Joined: Wed Oct 31, 2007 9:16 pm

Re: Stack as website?

Post by kellymdeters » Wed Dec 10, 2014 5:01 pm

FourthWorld wrote:Bad news, good news, better news, amd best news:

The Good News: HTML, CSS, and JavaScrtipt are just plain text, and LiveCode is unusually adept at manipulating text. Many of us produce Web sites using LiveCode as a key part of the process, generating HTML/CSS to translate layouts to a Web-ready form, and even assembling JavaScript snippets to deliver the interactivity for those pages.

/
Where can I get more information on how to do this? I would like to code a project for work using LiveCode but it must be web deployable before the HTML5 deployment project by LiveCode is ready next fall.

Post Reply

Return to “Internet”