Page 1 of 2

FWH as web application ?

Posted: Fri Jun 05, 2009 3:19 pm
by driessen
Hello FWH-users,

Is there a possibility to use a FWH-application as a web application ? And if so, how ?

That question I got today from one of my costumers. He wants to make it possible that his clients can connect to his system to be able to check the clients data, of course well protected.

Thanks a lot in advance.

Re: FWH as web application ?

Posted: Fri Jun 05, 2009 5:59 pm
by FranciscoA
Dear Driessen:
I Think you can do this if you use TMySql+MySql+xHarbour. Look for TMySql in this forum.
As well, you can read this blog: http://wmormar.blogspot.com (It is Spanish)
Regards.

Francisco.

Re: FWH as web application ?

Posted: Sat Jun 06, 2009 11:21 am
by Dietmar Jahnel
I'm doing this for quite a while:

I use the html.lib from contrib.lib of xharbour.org
I build a normal xHB-exe with this lib and put it in \cgi-bin on the server.

If this is what you are looking for and you need more information, let me know.

Regards,
Dietmar

Re: FWH as web application ?

Posted: Sat Jun 06, 2009 11:31 am
by anserkk
Mr. Dietmar,

I am interested in this subject and would like to know more about this. What is the advantage of linking xHarbour html.lib file ?
Do you mean that any Web application can access functions written in xHarbour on the web server.

Regards

Anser

Re: FWH as web application ?

Posted: Sat Jun 06, 2009 11:57 am
by Dietmar Jahnel
Do you mean that any Web application can access functions written in xHarbour on the web server.

Yes, we provide acess to a DBF-database on the webserver to business-partners on our homepage:
See: http://www.rida.at / Partner / Login (on the right side): if you click "jetzt einloggen" a xBH-application is started (pdfverlage.exe).
We didn't work much on the design, but we are very satisfied with the speed of this solution.

Dietmar

Re: FWH as web application ?

Posted: Sat Jun 06, 2009 12:27 pm
by anserkk
Dear Mr.Dietmar,

Thanks for the info. I visited your web site and it's really wonderful to see our FWH app running on a webserver. Just out of curiosity, can I ask you one more question. Till now I have not done anything on the web, it may be a very stupid question and I don't know much about CGI scripts

1.) What about the interface ie the username and password (SAY and GET) found on the webpage. Do you make it on FWH/xHarbour PRG using the HTML tags inside the PRG or is it a simple webpage .html file seperate from the PRG and the values entered in the GETS are somehow send as parameter to the FWH application and there it is processed and the result is send back to the web page.

Regards

Anser

Re: FWH as web application ?

Posted: Sat Jun 06, 2009 12:46 pm
by Dietmar Jahnel
You cannot use gets, it is a FORM in Html, but the syntax is similar to xHB and FWH, which make it pretty easy...
This is the code of the page you have seen:

Code: Select all

PROCEDURE getUser( oCgi )
LOCAL RIHtml
LOCAL oForm, oUser, oPass,oSub

DEFINE CGI; //HTML; //CGI ;
       TITLE "Verlagsanmeldung" ;
       OF RIHtml

RIHtml:Setcenter( .T. )
RIHtml:SetFont("Verdana",,,,2)
RIHtml:write("<br><br>")

DEFINE FORM oForm NAME "UserForm" ;
       FRAME;
       COLOR "WHITE" ;
       CAPTION " RIDA PDF-Verwaltung: Verlags-Login" ;
       CAPFONTCOLOR "white" ;
       WIDTH 35 ;
       ACTION "/cgi-bin/pdfverlage.exe?VALIDATE"  

LINE BREAK IN oForm

SPACE 10 IN oForm
TEXT '<font face="Verdana"' + 'size="2"' +  'color="black">Benutzername:</font>' IN oForm

LINE BREAK IN oForm
SPACE 9 IN oForm
DEFINE EDIT oUser NAME "UserName" ;
       VALUE "" ;
       MAXCHARS 40 ;
       IN oForm


LINE BREAK IN oForm
SPACE 10 IN oForm
TEXT '<font face="Verdana"' + 'size="2"' +  'color="black">Passwort:</font>' IN oForm

LINE BREAK IN oForm
SPACE 9 IN oForm
DEFINE PASSWORD oPass NAME "UserPass" ;
       VALUE "" ;
       MAXCHARS 40 ;
       IN oForm

LINE BREAK IN oForm
LINE BREAK IN oForm

SPACE 9 IN oForm
DEFINE SUBMIT oSub NAME "cSubmit" VALUE "    Login    " IN oForm

ACTIVATE oForm

END FONT OF RIHtml

RIHtml:CGIClose()

RETURN
 
Regards,
Dietmar

Re: FWH as web application ?

Posted: Sat Jun 06, 2009 4:57 pm
by Armando
Mr. Dietmar:

It's very very interesting.

Regards

Re: FWH as web application ?

Posted: Sat Jun 06, 2009 8:52 pm
by driessen
Dietmar,

It looks indeed very good the way you do it.

Let me tell you what I want to do :

My application is a total solution for laywer offices. My customer wants their customer to be able to log in to check his dossiers. This means financial situation, calendar, letters, and so on.

This means that I need to show a listbox or a sort of browse in which the data can be shown.

Any idea ?

Thanks a lot for your efforts.

Re: FWH as web application ?

Posted: Sun Jun 07, 2009 1:35 pm
by Dietmar Jahnel
Michel,

I think in this situation your customer could provide a VPN (Vitual Private Network)-connection to his clients,
Citrix might work as well. But I have no (active) experience with both of them.

For a real web-application like the onie in our website you have to put the database on the web-server.

Regards,
Dietmar

Re: FWH as web application ?

Posted: Sun Jun 07, 2009 4:34 pm
by Thomas Grueninger
Hello Dietmar,

i also interested in a web solution.
I can not find the lib-files on xharbour.org
Where can i download them?

Regards,
Thomas

Re: FWH as web application ?

Posted: Sun Jun 07, 2009 5:31 pm
by kajot
does it work with IIS (server microsoft) ?

best regards
kajot

Re: FWH as web application ?

Posted: Thu Jun 11, 2009 4:28 pm
by Dietmar Jahnel
Thomas Grueninger wrote:Hello Dietmar,

i also interested in a web solution.
I can not find the lib-files on xharbour.org
Where can i download them?
It used to be part of the contrib-lib three years ago and they still tell so on their homepage.
I don't know why they removed it - please ask them, there seem to be more people interested in the lib.
If it is not available any more I can send it to you.
Regards,
Dietmar

Re: FWH as web application ?

Posted: Thu Jun 11, 2009 4:28 pm
by Dietmar Jahnel
kajot wrote:does it work with IIS (server microsoft) ?

best regards
kajot
yes!

Re: FWH as web application ?

Posted: Wed Jul 29, 2009 11:52 am
by codemaker
Hello Dietmar,
Can you send this Web access LIB to me also, please?
bpekic@gmail.com

Thank you