[Gambas-user] gb.web

Mike Crean mike.crean at ...2897...
Fri Feb 22 01:53:43 CET 2013


 
Hi Jussi,

Thanks for the reply.
I have tried the example you have pointed to and can not get it to
work.
All I need to do is take data from a serial stream e.g.
Stuff = "A01 ON" and use the print statement to display
the
string A01 ON on a HTML web page. I have Apache running ok and
can display an index.html page from /var/www
when I connect to
http://localhost/
I have tried entering this code in the
index.html file, I don't get the desired result as it just displays
the text and not the 
print statement as such, it displays all
the file <% and %> etc.

<html>
<body>

<h1>Gambas3
Web Server.</h1>
<%
print Stuff
or print "A01
ON"
%>

</body>
</html>

Mike


________________________________
 From: Jussi Lahtinen <jussi.lahtinen at ...626...>
To: mailing list for gambas users <gambas-user at lists.sourceforge.net> 
Sent: Thursday, 21 February 2013 11:25 PM
Subject: Re: [Gambas-user] gb.web
 
Please be more specific.
Send your project and tell us what it is supposed to do and what happens
instead.
Or specifically what doesn't work.

Here is example of server page. It doesn't work?
http://gambasdoc.org/help/doc/serverpage?view

Jussi



On Thu, Feb 21, 2013 at 2:35 PM, Mike Crean <mike.crean at ...2897...> wrote:

>
> Hi Benoit,
>
> I am trying to get a Gambas 3 web
> server up and running using gb.web I just do not get it at all. I
> have looked at a lot of examples and threads but I just can not get a
> web server page up and running. I am using Apache2 and Gambas 3.4
> with gb.web enabled. The aim is to use Gambas 3 within a HTML page to
> get data from a communications port (ttyACM0) and display the data as
> text or other on the HTML page. Also would like to send data from a
> HTML page with the push of a button or text box to a serial device
> (ttyACM0). The device would be an Arduino.
>
> Hope you can help with an example and
> any changes I would have to make to files and directors  for Gambas 3
> and Apache2. The OS is Ubuntu 12.04. If this is to much to ask
> perhaps you can suggest someone that can help me.
>
> Best Regards
> Mike Crean
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_feb
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Gambas-user mailing list
Gambas-user at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


More information about the User mailing list