[REBOL] using

2000-06-09 Thread cesar

> For an example of a fully scripted REBOL page please visit
> http://geeks.dyndns.org . There does appear to be a glitch with a
> combination of animated banners, REBOL, and IE (5.0 at least)that does
some
> bizarre stuff while loading. This does not occur using Netscape 4.7...must
> be a MS problem...but YES it is possible to some extent.

I have been viewing this site and it seems to use rebol only on the server
side. It´s nice anyway.



>Are you talking about javascript level of scripting (client)? If so, then
no -
>none of browsers can interpret it. But there are other options, as
registering
>.r file with your browser, and then once pressing link on some webpage
REBOL
>would pop-up in a separate window 

But it would be possible to implement it? Although this won´t be widely used
I could use it for developing my personal web environment - using the named
active desktop - and mix it with javascript and vbscript code. I suppose
this would need REBOL to have access to the microsoft COM - or in other
browsers to their respective component architecture - which I think it is
not possible at this time.






[REBOL] using

2000-06-09 Thread cesar

Hello
I want to know if it is possible to use rebol as an internet scripting
language in microsoft windows operating systems, and if not yet if it would
be done in the future

Thanks all
cesar




[REBOL] redirecting input and output

2000-02-27 Thread cesar

Hello, and sorry for previous message


Does anyone know how to use the redirecting input feature of Rebol? I have
been trying it but it doesn´t seem to work.

I have tried on Windows things like:

rebol -w < in > out

where the file "in" is:

print "hello!!"



Redirecting only output works as I expect:

rebol -w script.r > out



[REBOL] %mensaje.txt

2000-02-27 Thread cesar

%mensaje.txt



[REBOL]

2000-02-24 Thread cesar

Yeah!  I think my english is rather worse :-)

I will archive this message because I need to learn CGI before trying to do it
but I think this would be very usefull to me.
Thanks

[EMAIL PROTECTED] escribió:

> Am 24-Feb-00 schrieb [EMAIL PROTECTED]:
>
> >I´d like to write a local page which just do it. I "double-click" my page
> >icon, write the message and send it through Rebol. I could enhace the page,
> >allowing it to write messages longer than 160 chars and then spliting it
> >automatically in 'less than 160 long' chunks and sending those chunks.
>
> Hello Cesar,
>
> I'm using exactly this concept for some REBOL scripts I needed a GUI for.
> Try using the %webserv.r script located on www.rebol.org, this server is able
> to handle REBOL CGI-scripts.
>
> Maybe the following functions come in handy - use them to handle the CGI
> arguments
> easily where you need them.
> They're simple, quick and dirty but they work fine (for me) as long as used
> with the GET method
> (I felt no need to add POST method, but this could be done easily):
>
> CGI-Arguments?: Func [
> "Returns true if script was called with CGI arguments"
> ] [
> All [
> ;-- too lazy to check out if None? or "" is correct, find out
> yourself ;-)
> Not None? System/Options/CGI/Query-String
> Not Equal? System/Options/CGI/Query-String ""
> ]
> ]
>
> CGI-Argument: Func [
> "Returns value or none for supplied CGI argument"
> Argument
> /Local Value
> ] [
> If Not None? System/Options/CGI/Query-String [
> Value: Select Decode-CGI System/Options/CGI/Query-String
> To-Set-Word Argument
> ]
> If Equal? Value "" [Value: None];-- to be more REBOL compatible
> Value
> ]
>
> Suppose you have a form element
>
> 
>
> then in the corresponding cgi script you can check for any CGI args with
>
>Either CGI-Arguments? [
>"Called script with cgi arguments!"
>][
>"Initial call to the script, no args supplied."
>]
>
> and the SMSText element with
>
>SMS-Text: CGI-Argument 'SMSText
>
> That's useful if one doesn't want to handle all CGI arguments at once
> (e.g. if you prefer a more object orientated approach where each object
> should only know about itself).
> You understand what my bad english tries to explain? :)
>
> Bye,
>
>- Christian
>   [EMAIL PROTECTED]



[REBOL]

2000-02-24 Thread cesar



[EMAIL PROTECTED] escribió:

> Hi Keith,
>
> you wrote:
> >For now, if you want to use REBOL to get form input from
> >an HTML page, you'll have to do it with REBOL running as a CGI script. :)
>
> Well, how else would collect data from a form? Even using JavaScript, you
> will have to eventually report the data to the server and you will need
> some server side application to collect the data. So, server side you must
> have some program that will accept the data and do something sensible with
> it.

When the own JavaScript script can not do it. I use a web page for sending
short messages to cell phones. The limit is 160 characters. The service of the
telephone company allows me to send those messages as e-mails (using a mail
address like  [EMAIL PROTECTED]) I could use my mail program to
do it, but I use a web page where I write the phone number and the body of the
message. I use it because it takes care of the characters you are typing and
you know when you reach the 160 characters limit. When you press an OK button
you send this input to the servers which send the mail.

This needs a server program, because as far as I know JavaScript doesn´t have
the ability to send mails by itself, but the character counting is done
enterely from the client side. Using Rebol I think all this could be done from
the local computer and I wouldn´t depend on the stability of the remote
service (which is very poor).

I´d like to write a local page which just do it. I "double-click" my page
icon, write the message and send it through Rebol. I could enhace the page,
allowing it to write messages longer than 160 chars and then spliting it
automatically in 'less than 160 long' chunks and sending those chunks.

>
> ;- Elan >> [: - )]

Thanks




[REBOL]

2000-02-24 Thread cesar

Thanks

Sorry for my ignorance but, how can I do it in Windows95?
I am not going to develop app for web servers but I´d like to give my rebol
scripts an html interface for local use. Rather than giving command-line
parameters or getting input from the rebol prompt I would use html forms and
buttons for getting input and use hyperlinks for creating menus and navigate
over my scripts.


[EMAIL PROTECTED] escribió:

> It can't be done. Browsers don't have built in REBOL interpreters like they
> do JavaScript interpreters. However, there's been something called
> REBOL/Browse planned for awhile as far as I know, which is possibly a
> browser plugin that will let you do this. Also, REBOL/Apache is supposed to
> let you have REBOL code embedded in HTML pages in the style of PHP or ASP or
> JSP (curse JSP!!!). For now, if you want to use REBOL to get form input from
> an HTML page, you'll have to do it with REBOL running as a CGI script. :)
>
> Keith
>
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, February 24, 2000 10:58 AM
> Subject: [REBOL] 

[REBOL]

2000-02-24 Thread cesar

I don´t know also how to use scripts form HTML pages, using from rebol
the input fields from HTML forms. Does anyone know if is itpossible? How
would it be done?

[EMAIL PROTECTED] escribió:

>
>
> How do I get the embedded Script tags in a HTML page to work. I have
> tried saving as both myPage.r and myPage.html, neither work. I have
> managed to set up the web server to correctly run Rebol as CGI
> scripts. This is the only example I cannot get to work.
>
> If the browser doesn't know about Rebol as it does 

[REBOL] What about Rebol/Command?

2000-02-10 Thread cesar

I'd like to see Rebol as an extension language I can use in my app, just like
VBA or the scheme extension language of Linux, but currently it doesn´t seem
to evolve to providing such a services.

For example I´d like to run other programs from Rebol using it as a command
interpreter ( very much powerful replacement of windows command.com ). I got
very dissapointed when I discovered that Rebol doesn´t allow to do this.

The Rebol FAQ says that some people have done this by writing to files while
keeping another proccess scanning the files for launching the external
programs. It also says that a future rebol/command would allow this ( and I
hope many more things ). Do you know something about it?

And what do you think about a Rebol extension language tool?

thanks   /cesar