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>
|