[REBOL] Re: Newbie question
From: al:bri:xtra at: 25-Jan-2002 20:22
> Q1: If the .r files are have nothing more than text input and output, like
any other CGI script, will they work in any standard browser? Can Netscape
or IE display the dynamic information to a wandering web surfer from say, a
Forum script written in Rebol that doesn't need View to see it in action?
Yes to all. There's example CGI scripts at http://www.rebol.com. I've got a
collection of them now as well, if you want to see an example of Rebol
script and it's HTML output.
> Q2: Is there a way to get Rebol to interpret .r files on my desktop
through a local Rebol server so I don't have to bring View up each time I
want to pull up a .r file? In Miva (a CGI scripting language I use -
miva.com) I can set up a local Miva server and have my .mv files go through
it by using 127.0.0.1 as the IP address in the URL line which lets me test
everything in any browser on my system.
This sounds a little confused. By using Xitami (free web server) and
localhost (127.0.0.1 IIRC) and a browser, I can get Xitami to interpret a
Rebol script by launching Rebol. It's very fast as well.
> Q3: Ok, now let's say you have a server with Command installed and a bunch
of .r files that take advantage of the graphical interface of View as well
as, let's say, some ODBC database stuff. How does the server let the local
machine know that View needs to run this particular .r file? For example,
if a person wanted to put that RebTris.r (demo tetris game) on a website for
visitors to play from the server, how would they be notified that View is
needed, or is that up to me?
Here's where you've gotten some confusion. The script itself should contain
notification that the Rebol/View interpreter is required on the client/local
machine. With Rebol/IOS, these kind of problems vanish away, because the
server and client/local machine both had rebol interpreters and the rebol
script is replicated/copied from the server to the client automatically.
Check out the Rebol/View desktop to see the older version of Rebol/IOS.
There's also the browser plug-in for Rebol, but that doesn't seem to work
with the latest version of MS IE 6 IIRC.
ICQ: 26227169 http://valley.150m.com/