FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Web based interface for FWH
Posts: 189
Joined: Fri Oct 14, 2005 12:33 AM
Re: Web based interface for FWH
Posted: Thu Jan 07, 2010 02:33 PM

Hola Carlos,

El xBScript se instala en servidores Windows (XP Pro, 2000, 2003, 2008, etc.), despues que se ha configurado correctamente el servicio de Internet Information Server (IIS), es lo que conozco hasta ahora. Creo que no existe aun para servidores Linux. Si le hechas el ojo a los comentarios en el foro (news.xHarbour.com), veras algunos realizados a los autores sobre este respecto.

Se trata de una .DLL que se carga al Windows del Servidor Web (donde esta instalado y configurado el IIS), y toda la informacion la encontraras en http://www.xharbour.com/xhc/index.asp?p ... show_sub=1

Abrazos,

Julio Llinás
Visita mi Blog en http://mangucybernetico.blogspot.com/
xHarbour 1.1.0 + FWH810 + Borland 5.5.1
Posts: 582
Joined: Fri Oct 07, 2005 02:17 PM
Re: Web based interface for FWH
Posted: Thu Jan 07, 2010 04:42 PM

Antonio, muy buena noticia, es lo que creo muchos estamos esperando, estaremos atentos

Enrrique Vertiz Pitta

Lima-Peru

xHb 1.23.1026X, Fwh 25.01, BCC74, MySQL 8.0.X, SQLLIB 1.9m
Posts: 1335
Joined: Fri Jun 13, 2008 11:04 AM
Re: Web based interface for FWH
Posted: Fri Jan 08, 2010 06:42 AM
Dear Mr.Julio Llinás ,

The xBscript is supposed to be installed on the IIS Server right ? and not on the Client's PC. I am just trying to understand the concept. Please forgive my ignorance in this regard.

I was of the impression that the scripting language is installed on the web server and when the client web browser request for a web page, the webserver will do the necessary process using the xbscript and Html tags and delivers the HTML page to the requesting client PC's Web browser like IE or Mozilla Firefox.

I tried visting the page http://www.xharbour.com/xbs/buttons.htm

On Mozila Firefox, the page displayed without any errors but nothing happened when I clicked on the buttons on the page.

On Internet Explorer, it said an ActiveX is to be installed on my PC, and I choose to allow the installation. But the installation was not completed and it displayed an error saying that "Windows has blocked the software because it cant verify the publisher. Name xBScript.Cab", Publisher unknown". Once I click the Ok button of the error popup window, the html page is displayed but nothing happens when I click on the buttons on the web page. The screen snapshot of the same is attached below.



Regards
Anser
Posts: 392
Joined: Tue Mar 10, 2009 11:54 AM
Re: Web based interface for FWH
Posted: Fri Jan 08, 2010 07:12 AM

Anser,

adjust the internet security option of IE and it will run :)

Firefox isn't an ActiveScript Host, so it won't run :(

Windows 11 Pro 22H2 22621.1848

Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384

Harbour 3.2.0dev (r2008190002)

FWH 23.10 x86
Posts: 1335
Joined: Fri Jun 13, 2008 11:04 AM
Re: Web based interface for FWH
Posted: Fri Jan 08, 2010 07:24 AM
Hi,

It seems that xbScript is a client side scripting tool. (Your scripting source code will be available to the users.) I am not sure, the experts here has to confirm it.

I downloaded xBscript.Dll on to my PC and registered the DLL.

After registering the DLL the Sample pages are running, but it is running only on Internet Explorer. The web page is not functioning as expected on Mozila Firefox and Chrome browsers.

Regards
Anser
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Web based interface for FWH
Posted: Fri Jan 08, 2010 09:40 AM

Anser,

The solution we are working on does not use any scripting tool except simple javascript, on the client side :-)

viewtopic.php?p=92942#p92942

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1335
Joined: Fri Jun 13, 2008 11:04 AM
Re: Web based interface for FWH
Posted: Fri Jan 08, 2010 09:47 AM

Mr.Antonio,

Thank you for the information. Definitely it is going to be a great tool and a turning point.

Regards
Anser

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Web based interface for FWH
Posted: Fri Jan 08, 2010 10:02 AM
anserkk wrote:It seems that xbScript is a client side scripting tool.


No, it is server side (too?).

EMG
Posts: 1335
Joined: Fri Jun 13, 2008 11:04 AM
Re: Web based interface for FWH
Posted: Fri Jan 08, 2010 10:06 AM
No, it is server side (too?).


Ok. That's good. Then the sample pages should have demonstrated the Server side scripting with command RunAt Server.

Regards
Anser
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Web based interface for FWH
Posted: Fri Jan 08, 2010 10:21 AM
You have to install xbScript on the server and then use it just like VBScript. A sample:

Code (fw): Select all Collapse
<%@ language = "xbScript" %>

<html>
  <body>

    <%
      SET CENTURY ON

      SET DEFAULT TO ( Server:MapPath( "./" ) )

      USE TEST

      WHILE !EOF()
          Response:Write( "<div>" + FIELD -> last + " " + FIELD -> first + " " + DTOC( FIELD -> hiredate ) + "</div>" )

          SKIP
      ENDDO

      CLOSE
    %>

  </body>
</html>


EMG
Posts: 1335
Joined: Fri Jun 13, 2008 11:04 AM
Re: Web based interface for FWH
Posted: Fri Jan 08, 2010 11:02 AM

Dear EMG,

That's a very good sample :)

Hope the web hosting company will allow to Register the DLL :)

Regards
Anser

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Web based interface for FWH
Posted: Fri Jan 08, 2010 11:23 AM

Anser,

> Hope the web hosting company will allow to Register the DLL

No, they will not allow to do it unless you use a dedicated server.

Thats why that solution is not workable for low cost hosting plans. Neither you can use it with google apps servers (low cost, but very high power).

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Web based interface for FWH
Posted: Fri Jan 08, 2010 11:25 AM
anserkk wrote:Hope the web hosting company will allow to Register the DLL :-)


And this is generally the problem of such kind of techniques.

EMG
Posts: 1335
Joined: Fri Jun 13, 2008 11:04 AM
Re: Web based interface for FWH
Posted: Fri Jan 08, 2010 11:50 AM
No, they will not allow to do it unless you use a dedicated server.

And this is generally the problem of such kind of techniques.


Dedicated Server will be a very expensive solution for the clients :-)

Regards
Anser
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: Web based interface for FWH
Posted: Fri Jan 08, 2010 03:04 PM

Hi,

This is very interesting thread. Can anyone please explain step by step what should i do to display a one dbf file.

Thanks

Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06

Continue the discussion