LiveCode Server with Stacks
Posted: Wed Jul 17, 2013 5:35 pm
Now LiveCode CGI without Stacks are working, I started to try to create CGI using stacks.
The stack is a simple database stack with one background field called MyField.
MyDatabase.lc is as follows:
<?lc
set the errorMode to "inline"
?>
<html>
<head>
<title>My LiveCode Database Test Page</title>
</head>
<body>
<h1>My LiveCode Database Test Page</h1>
<?lc
go stack "MyDatabase.livecode"
put "<p>Card 1</p>"
put "<br>" & card field "MyField" & "</br>" & crlf
put "<p>Card 2</p>"
go next
put "<br>" & card field "MyField" & "</br>" & crlf
put "<p>Card 2</p>"
go next
put "<br>" & card field "MyField" & "</br>" & crlf
?>
</body>
</html>
I saved it and typed the URL of the CGI in Safari, but the loading stops. It doesn't respond. Any suggestions?
The stack is a simple database stack with one background field called MyField.
MyDatabase.lc is as follows:
<?lc
set the errorMode to "inline"
?>
<html>
<head>
<title>My LiveCode Database Test Page</title>
</head>
<body>
<h1>My LiveCode Database Test Page</h1>
<?lc
go stack "MyDatabase.livecode"
put "<p>Card 1</p>"
put "<br>" & card field "MyField" & "</br>" & crlf
put "<p>Card 2</p>"
go next
put "<br>" & card field "MyField" & "</br>" & crlf
put "<p>Card 2</p>"
go next
put "<br>" & card field "MyField" & "</br>" & crlf
?>
</body>
</html>
I saved it and typed the URL of the CGI in Safari, but the loading stops. It doesn't respond. Any suggestions?