Page 9 of 19

Re: FiveWeb de FiveTech (gratis hasta la versión 1.0)

PostPosted: Sat Nov 17, 2012 9:39 am
by Frafive
Antonio, las pruebas las estoy haciendo con hostspain y con los servidores de dinahosting, servidores linux, en dinahosting tengo en la carpeta cgi-bin un binario de ceca compilando en linux y funciona perfectamente.


Un saludo

Re: FiveWeb de FiveTech (gratis hasta la versión 1.0)

PostPosted: Sat Nov 17, 2012 2:32 pm
by Antonio Linares
Javier,

Prueba a copiar y ejecutar harbour (el compilador) en el servidor

Re: FiveWeb de FiveTech (gratis hasta la versión 1.0)

PostPosted: Mon Nov 19, 2012 9:42 am
by Frafive
Antonio, he copiado harbour y lo he ejecutado y me da este error: Segmentation fault

Un saludo

Re: FiveWeb de FiveTech (gratis hasta la versión 1.0)

PostPosted: Mon Nov 19, 2012 11:12 am
by Antonio Linares
Javier,

Se me ocurren dos opciones:

1. Que construyas Harbour en el Linux del propio hosting. Asi tendrás un Harbour compatible con él. Es muy sencillo, aqui tienes las instrucciones:
a) comprueba que svn esté instalado en el servidor. Escribe svn desde una ventana terminal por SSH.
b) En caso de no tenerlo, puedes instalarlo: sudo apt-get install subversion
c) Descarga Harbour: svn checkout https://harbour-project.svn.sourceforge ... ject/trunk harbour
d) ve a la carpeta de Harbour y haz "make" (escribelo y lo ejecutas)

2. Que me envies por email el acceso a tu servidor y yo lo reviso desde aqui :-) luego cambias tu contraseña cuando yo termine.

Re: FiveWeb de FiveTech (gratis hasta la versión 1.0)

PostPosted: Wed Nov 21, 2012 10:11 am
by Antonio Linares
+ Añadida la Clase TWindow para usar la ventana principal (por defecto)
+ Añadido el ejemplo samples/demo.prg

http://www.fivetechsoft.net/cgi-bin/demo

demo.prg
Code: Select all  Expand view
#include "FiveWeb.ch"

//----------------------------------------------------------------------------//

function Main( cParam )

   SET BACKIMAGE TO "http://fiveweb.googlecode.com/svn/trunk/images/beach.jpg"
   
   @  80, 80 SAY "Pulldown Menu" URL hb_argv( 0 ) + "?pdmenu"

   @ 140, 80 SAY "Dialog" URL hb_argv( 0 ) + "?dialog"

   do case
      case cParam == "pdmenu"
           BuildMenu()
           
      case cParam == "dialog"
           BuildDialog()
   endcase        

return nil

//----------------------------------------------------------------------------//

function BuildMenu()

   local oMenu
   
   MENU oMenu
      MENUITEM "Info"
      MENU
         MENUITEM "About..." ACTION MsgInfo( "FiveWeb power" )
      ENDMENU
     
      MENUITEM "Files"
      MENU
         MENUITEM "Clients"
         MENUITEM "Stock"
      ENDMENU
     
      MENUITEM "Reports"
     
      MENUITEM "Help"
   ENDMENU
   
return nil

//----------------------------------------------------------------------------//

function BuildDialog()

   local oDlg
   
   DEFINE DIALOG oDlg TITLE "Hello FiveWeb"
   
   ACTIVATE DIALOG oDlg NOWAIT
   
return nil      

//----------------------------------------------------------------------------//

Re: FiveWeb de FiveTech (gratis hasta la versión 1.0)

PostPosted: Wed Nov 21, 2012 2:17 pm
by mastintin
Antonio Linares wrote:+ Añadida la Clase TWindow para usar la ventana principal (por defecto)
+ Añadido el ejemplo samples/demo.prg

http://www.fivetechsoft.net/cgi-bin/demo

demo.prg
Code: Select all  Expand view
#include "FiveWeb.ch"

//----------------------------------------------------------------------------//

function Main( cParam )

   SET BACKIMAGE TO "http://fiveweb.googlecode.com/svn/trunk/images/beach.jpg"
   
   @  80, 80 SAY "Pulldown Menu" URL hb_argv( 0 ) + "?pdmenu"

   @ 140, 80 SAY "Dialog" URL hb_argv( 0 ) + "?dialog"

   do case
      case cParam == "pdmenu"
           BuildMenu()
           
      case cParam == "dialog"
           BuildDialog()
   endcase        

return nil

//----------------------------------------------------------------------------//

function BuildMenu()

   local oMenu
   
   MENU oMenu
      MENUITEM "Info"
      MENU
         MENUITEM "About..." ACTION MsgInfo( "FiveWeb power" )
      ENDMENU
     
      MENUITEM "Files"
      MENU
         MENUITEM "Clients"
         MENUITEM "Stock"
      ENDMENU
     
      MENUITEM "Reports"
     
      MENUITEM "Help"
   ENDMENU
   
return nil

//----------------------------------------------------------------------------//

function BuildDialog()

   local oDlg
   
   DEFINE DIALOG oDlg TITLE "Hello FiveWeb"
   
   ACTIVATE DIALOG oDlg NOWAIT
   
return nil      

//----------------------------------------------------------------------------//


Antonio la solución de usar hb_argv( 0 ) para mi no es buena ya que en vez devolver la ruta url ,devuelve la ruta "física" del archivo .
En mi caso en vez "/localhost/cgi_bin/demo ? loquesca" me devuelve "localhost//Library/WebServer/CGI-Executables/demo?loquesea"
una solucion seria usar cFileNoPath() y usar una posiccion absoluta ,pero cFileNoPath() no está implementada aún.
Saludos.

Re: FiveWeb de FiveTech (gratis hasta la versión 1.0)

PostPosted: Wed Nov 21, 2012 3:36 pm
by Antonio Linares
Manuel,

A ver si nos sirve esta:

Code: Select all  Expand view
function cFileNoPath( cPathMask )  // returns just the filename no path

    local n

    cPathMask = StrTran( cPathMask, "/", "\" )
    n = RAt( "
\", cPathMask )

return If( n > 0 .and. n < Len( cPathMask ),;
           Right( cPathMask, Len( cPathMask ) - n ),;
           If( ( n := At( "
:", cPathMask ) ) > 0,;
           Right( cPathMask, Len( cPathMask ) - n ),;
           cPathMask ) )


Code: Select all  Expand view
function AppName()

return cFileNoPath( hb_argv( 0 ) )

Re: FiveWeb de FiveTech (gratis hasta la versión 1.0)

PostPosted: Wed Nov 21, 2012 3:44 pm
by Antonio Linares
Añadido efecto de transparencia al menu:

http://www.fivetechsoft.net/cgi-bin/demo

Re: FiveWeb de FiveTech (gratis hasta la versión 1.0)

PostPosted: Thu Nov 22, 2012 3:43 am
by Antonio Linares
Solucionado el bug del diseñador de ventanas!

Finalmente hemos podido solucionar el problema de jquery ui que nos estaba parando el desarrollo del diseñador de ventanas:
la solución ha sido no modificar la propiedad innerHTML sino usar el objecto DOM y añadirle los controles.

http://www.fivetechsoft.net/cgi-bin/fiveform

Re: FiveWeb de FiveTech (gratis hasta la versión 1.0)

PostPosted: Thu Nov 22, 2012 11:17 am
by mastintin
He añadido la edicion al ejemplo "otto" en el repositorio. Ya podemos clickar en el browse y editar el registro selecionado . :D

Re: FiveWeb de FiveTech (gratis hasta la versión 1.0)

PostPosted: Fri Nov 23, 2012 9:25 am
by Antonio Linares
Continua el desarrollo del diseñador de formularios:

http://www.fivetechsoft.net/cgi-bin/fiveform

Image

Re: FiveWeb de FiveTech (gratis hasta la versión 1.0)

PostPosted: Thu Nov 29, 2012 11:47 am
by Antonio Linares
Añadido soporte de barras de progreso en el diseñador de ventanas:

http://www.fivetechsoft.net/cgi-bin/fiveform

Re: FiveWeb de FiveTech (gratis hasta la versión 1.0)

PostPosted: Mon Dec 03, 2012 1:54 pm
by Antonio Linares
Soporte para browses en el diseñador de ventanas:

http://www.fivetechsoft.net/cgi-bin/fiveform

Image

Re: FiveWeb de FiveTech (gratis hasta la versión 1.0)

PostPosted: Tue Dec 04, 2012 8:58 am
by juan carlos bellucci
Antonio querido: no se detenga con el proyecto fiveweb es el futuro de los sistemas vía intranet... éxitos yo sigo esperando el producto terminado. juan carlos.

Re: FiveWeb de FiveTech (gratis hasta la versión 1.0)

PostPosted: Wed Dec 05, 2012 10:09 am
by Antonio Linares
Soporte de folders para el diseñador de ventanas de FiveWeb:

http://www.fivetechsoft.net/cgi-bin/fiveform

Image