realbasic-nug
[Top] [All Lists]

Re: web application

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: web application
From: James Sentman <james at sentman dot com>
Date: Sun, 30 Dec 2007 16:36:58 -0500
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <4777FF40 dot 8090608 at earthlink dot net> <FB79A90B-87D0-4ADA-A4EE-D10B3F2E86EA at thezaz dot com> <4778054F dot 5090405 at earthlink dot net>
On Dec 30, 2007, at 3:53 PM, Tony Alfrey wrote:

> Thom McGrath wrote:
>> On Dec 30, 2007, at 3:27 PM, Tony Alfrey wrote:
>>
>>> I upgraded from 5.5 to the latest version, partly to see if there is
>>> anything new (other than bug fixes).  Does anyone know if it is
>>> possible
>>> to used rb to make a web-based app that will run in a browser (like
>>> various Google apps)?
>>> Thanks
>>
>> Yes, this can help:
>>
>> <http://www.thezaz.com/opensource/realbasic/httpserver/>
>
> Interesting, thanks!
> I thought that any application that I would expect to be interactive
> from the web would require Java but perhaps there is something here  
> that
> will allow this (of course my goal is to avoid having to compile for
> three different platforms and just compile for something vaguely
> universal like Firefox).
>

well... you can't build something that runs inside of a browser, but  
you can certainly make CGI applications that are run by apache. I do  
this fairly regularly for different things. You can embed an http  
server into your app, but this might not be a good idea depending on  
what exactly you are trying to accomplish. If you go the CGI app route  
then the first problem you're going to have is that the stdin/out  
streams in RB are not binary safe, so if you try to output anything  
that isn't text (say, image data) it's going to choke.  I did find a  
solution to that problem and posted it here, it's pretty simple.

http://sentman.com/Projects/Entries/2007/10/3_Sending_nulls_to_stdout_in_RB.html

Thanks,
  James


James Sentman                       http://sentman.com          
http://MacHomeAutomation.com



_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>