[Gambas-user] Gambas Web-Form-Apps
Rolf-Werner Eilert
rwe-sse at osnanet.de
Thu Dec 3 12:12:20 CET 2020
Hi Claus
The reason for your surprise might be that you do not consider that apps
for the web run "on demand" only. So when the page is read, the
application runs through once, produces the answer page, sends it and stops.
Maybe I am writing nonsense here and gb.web is different? I don't think
so, but please correct me if I'm wrong. I have no experience with gb.web
yet, only have programmed a few purely coded web applications couple of
years ago and did some testing when gb.web was still fairly new.
There is a newer technique which lets you think the application runs
continuously, like does my banking website. This is called AJAX or Web
2.0, but if you look under the hood, these apps merely run some of the
code within the browser and still lease requests in the background like
ever before.
Regards
Rolf
Am 03.12.20 um 11:56 schrieb Claus Dietrich:
> Hi
>
> Although I gained some knowledge about Gambas over the years, I failed to write a Web-App with Gambas. My aim: Writing a Web-Form-App which provides a GUI on a Web-Browser just like those GUIs you get, when you connect with a web-browser to a router or NAS for configuration. My Web-applications would be purely technical, which means, that I want to manage (control) some equipment through a serial interface and this shall be possible from any PC/ mobile phone in my house.
>
> So I started a Web-Form-App and added gb.net for the serial interface (the IDE didn't provide any warning). To my disappointment I found, that SerialPort-objects can be generated with a New-constructor, but they didn't work as usual. Right after generating the SerialPort-object I was able to send something over the RS232 interface, but any later attempt raised an "Null object" error.
>
> What is wrong? Did I make any mistake? Are Gambas Web-Apps limited to database applications? Are Web-Form-Apps limited to controls designated as "Web"-controls? Are there any workarounds? Would it be possible to include gb.net into a Web-Form-App in the future if not possible today?
>
> I have zero experience with web apps and would be grateful for any reply.
>
> Best regards
>
> Claus
>
> P.S: I was using Gambas V3.15.2 with the embedded server.
>
>
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
More information about the User
mailing list