I was also using HTML as a GUI frontend for some application. Some time 
ago I extracted the WebServer into a single project, here (written in 
c++):
http://sourceforge.net/projects/webgui-cpp/
There is no CGI, PHP or whatever, all handling is done inside 
extendable callback functions.

The most noteable feature is, that all html pages are compiled into the 
executable. There's some functionality to make html pages dynamic (kind 
of what php does). No further dependencies on other libs, plain c++ code.

This is for sure not usable for official software releases but probably 
helpful for a quick and dirty UI.


Alex.

On Sun, 20 Jul 2008, steve wrote:

> The end goal after FSO is complete is to make UI creation on the phone as
> simple as web page
> Creation.
>
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Dirk Bergstrom
> Sent: Wednesday, July 16, 2008 12:35 AM
> To: community
> Subject: Web server on the phone?
>
> Basically all of my experience writing UIs is on the web.  I'd like to run a
> webserver on the phone, so I can write dirt-simple UIs that way, rather than
> getting tied up in GTK/e/Qt.
>
> I see that there's a busybox server:
>
> http://buildhost.openmoko.org/daily-feed/armv4t/busybox-httpd_1.11.0-r2_armv
> 4t.ipk
>
> One might also consider thttpd:
>
> http://www.acme.com/software/thttpd/
>
> Or shttpd:
>
> http://shttpd.sourceforge.net/
>
> I suspect any of them would be OK for serving static files.  However, I
> wonder if CGI would be feasible.  I'm guessing that spawning a shell script
> wouldn't be too hard, but I suspect that spinning up a whole python process
> might be a bit much for the little arm CPU.  Anyone have any thoughts on
> that?
>
> Since I'm quite familiar with Django (http://www.djangoproject.com), I
> thought I might just run the Django development server, which has a toy-ish
> httpd server built in.  That way I'd already have python running, so I'd
> avoid all the fork/exec/load-libraries overhead.
>
> Not really sure where I'm going with this, just throwing out ideas to see if
> anyone says yea or nay.
>
> --
> Dirk
>
> _______________________________________________
> Openmoko community mailing list
> community@lists.openmoko.org
> http://lists.openmoko.org/mailman/listinfo/community
>
>
> _______________________________________________
> Openmoko community mailing list
> community@lists.openmoko.org
> http://lists.openmoko.org/mailman/listinfo/community
>
>

_______________________________________________
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community

Reply via email to