Web based interface for FWH

Re: Web based interface for FWH

Postby jllinas » Thu Jan 07, 2010 2: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
User avatar
jllinas
 
Posts: 189
Joined: Fri Oct 14, 2005 12:33 am
Location: Santo Domingo, Dominican Republic

Re: Web based interface for FWH

Postby Enrrique Vertiz » Thu Jan 07, 2010 4: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 24.02, MySQL 8.0.X, SQLLIB 1.9m
Enrrique Vertiz
 
Posts: 525
Joined: Fri Oct 07, 2005 2:17 pm
Location: Lima - Peru

Re: Web based interface for FWH

Postby anserkk » Fri Jan 08, 2010 6: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.

Image

Regards
Anser
User avatar
anserkk
 
Posts: 1332
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India

Re: Web based interface for FWH

Postby frose » Fri Jan 08, 2010 7: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
User avatar
frose
 
Posts: 392
Joined: Tue Mar 10, 2009 11:54 am
Location: Germany, Rietberg

Re: Web based interface for FWH

Postby anserkk » Fri Jan 08, 2010 7: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
User avatar
anserkk
 
Posts: 1332
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India

Re: Web based interface for FWH

Postby Antonio Linares » Fri Jan 08, 2010 9: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
User avatar
Antonio Linares
Site Admin
 
Posts: 41866
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Web based interface for FWH

Postby anserkk » Fri Jan 08, 2010 9:47 am

Mr.Antonio,

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

Regards
Anser
User avatar
anserkk
 
Posts: 1332
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India

Re: Web based interface for FWH

Postby Enrico Maria Giordano » 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
User avatar
Enrico Maria Giordano
 
Posts: 8541
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Web based interface for FWH

Postby anserkk » 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
User avatar
anserkk
 
Posts: 1332
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India

Re: Web based interface for FWH

Postby Enrico Maria Giordano » 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: Select all  Expand view
<%@ 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
User avatar
Enrico Maria Giordano
 
Posts: 8541
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Web based interface for FWH

Postby anserkk » 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
User avatar
anserkk
 
Posts: 1332
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India

Re: Web based interface for FWH

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 41866
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Web based interface for FWH

Postby Enrico Maria Giordano » 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
User avatar
Enrico Maria Giordano
 
Posts: 8541
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Web based interface for FWH

Postby anserkk » 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
User avatar
anserkk
 
Posts: 1332
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India

Re: Web based interface for FWH

Postby Horizon » Fri Jan 08, 2010 3: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.04
Horizon
 
Posts: 1302
Joined: Fri May 23, 2008 1:33 pm

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 74 guests