FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index mod_harbour TWeb - Sesiones
Posts: 1283
Joined: Fri Feb 10, 2006 02:34 PM
TWeb - Sesiones
Posted: Wed Oct 28, 2020 06:55 PM

Hola,

He integrado el modulo de sesiones en TWeb

https://m.facebook.com/story.php?story_ ... 3474978505

C.

Salutacions, saludos, regards

"...programar es f谩cil, hacer programas es dif铆cil..."

UT Page -> https://carles9000.github.io/
Forum UT -> https://discord.gg/bq8a9yGMWh
HIX -> https://github.com/carles9000/hix
Posts: 1445
Joined: Mon Oct 10, 2005 02:38 PM
Re: TWeb - Sesiones
Posted: Wed Oct 28, 2020 10:23 PM
Carles wrote:Hola,

He integrado el modulo de sesiones en TWeb

https://m.facebook.com/story.php?story_ ... 3474978505

C.


Hay nueva versi贸n de TWeb con ello?

Por cierto, esta informaci贸n est谩 disponible en otro link/lugar?
I hate Facebook. Pero mucho, mucho.
:-)

Un Saludo

Carlos G.



FiveWin 25.12 + Harbour 3.2.0dev (r2502110321), BCC 7.7 Windows 11 Home

Posts: 607
Joined: Mon Mar 04, 2013 04:32 PM
Re: TWeb - Sesiones
Posted: Sat Oct 31, 2020 05:25 PM

Hola Charly

Tweb no me funciona en Ubuntu 20.04 en Windows me va bien.

Mercury y mod_harbour me funcionan bien

Que puede pasar?

Saludos.

Fwh 24.07 64 bits + Harbour 64 bits 3.2dev(r2407221137) + MSVC64
Posts: 1283
Joined: Fri Feb 10, 2006 02:34 PM
Re: TWeb - Sesiones
Posted: Mon Nov 02, 2020 03:33 PM

Hola,

Necesitaria saber que error te sale o que te ocurre. Yo lo tengo en linux y funciona bien.

C.

Salutacions, saludos, regards

"...programar es f谩cil, hacer programas es dif铆cil..."

UT Page -> https://carles9000.github.io/
Forum UT -> https://discord.gg/bq8a9yGMWh
HIX -> https://github.com/carles9000/hix
Posts: 1074
Joined: Fri Oct 07, 2005 01:56 PM
Re: TWeb - Sesiones
Posted: Tue Nov 03, 2020 08:49 PM
Hola Carles

esto antes me funcionaba y ahora cuando actualice tweb por git ahora no me funciona :-)
no se porque dice que no existe las funciones, pero cuando reviso el c贸digo fuente si menciona la lib tweb.js

pd: la libreria es la ultima que baje por git que esta lib/tweb/tweb.hrb

gracias por la ayuda

Code (fw): Select all Collapse
//聽 {% LoadHrb( 'lib/tweb/tweb.hrb' ) %}

#include {% TWebInclude('lib/tweb/') %}


function Main()
聽 聽 local oWeb, o, oBrw

聽 聽 if 聽! Is_Session()
聽 聽 聽 聽 Redirect( "login2.prg" )
聽 聽 聽 聽 retu nil
聽 聽 endif

聽 聽 DEFINE WEB oWeb TITLE 'Listado de c贸digos' TABLES INIT
聽 聽 DEFINE FORM o ID 'demo'
聽 聽 INIT FORM o
聽 聽 聽 聽 HTML o INLINE '<h5>LISTADOS DE PRECIOS</h5><hr>'

聽 聽 聽 聽 ROWGROUP o
聽 聽 聽 聽 聽 聽 SEPARATOR o LABEL 'Listados de productos'
聽 聽 聽 聽 聽 聽 GET ID 'buscar' VALUE '' GRID 10 LABEL 'Buscar' PLACEHOLDER 'ingrese palabra a buscar' BUTTON ' Buscar' ACTION 'LoadState()' OF o
聽 聽 聽 聽 聽 聽 BUTTON ID 'btn' LABEL ' Volver' ACTION 'volver()' GRID 2 ICON '<i class="fas fa-home"></i>' CLASS 'btn-primary btnticket' OF o
聽 聽 聽 聽 END o

聽 聽 聽 聽 ROWGROUP o
聽 聽 聽 聽 聽 聽 DEFINE BROWSE oBrw ID 'ringo' HEIGHT 600 OF o
聽 聽 聽 聽 聽 聽 聽 聽 ADD oCol TO oBrw ID 'descr' 聽 聽 HEADER 'Descripci贸n'
聽 聽 聽 聽 聽 聽 聽 聽 ADD oCol TO oBrw ID 'precio' 聽 聽HEADER 'precio'
聽 聽 聽 聽 聽 聽 聽 聽 ADD oCol TO oBrw ID 'stock'聽HEADER 'Stock'
聽 聽 聽 聽 END o

聽 聽 聽 聽 HTML o

聽 聽 聽 聽 聽 聽 <script>
聽 聽 聽 聽 聽 聽 聽 聽 function volver() {
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 window.history.back();
聽 聽 聽 聽 聽 聽 聽 聽 }

聽 聽 聽 聽 聽 聽 聽 聽 var oWnd
聽 聽 聽 聽 聽 聽 聽 聽 var oBrw = new TWebBrowse( 'ringo' )

聽 聽 聽 聽 聽 聽 聽 聽 function LoadState() {
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 oWnd = MsgLoading("Espere....")
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 var cBuscar = $('#buscar').val()
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 console.log( cBuscar )
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 MsgServer( 'listaprecioserver.prg', cBuscar, Post_LoadState )
聽 聽 聽 聽 聽 聽 聽 聽 }

聽 聽 聽 聽 聽 聽 聽 聽 function Post_LoadState( dat ){

聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 oWnd.modal('hide');
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 oBrw.SetData( dat.rows )
聽 聽 聽 聽 聽 聽 聽 聽 }

聽 聽 聽 聽 聽 聽 聽 聽 $(document).ready(function () {
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 oBrw.Init()
聽 聽 聽 聽 聽 聽 聽 聽 })

聽 聽 聽 聽 聽 聽 </script>
聽 聽 聽 聽 ENDTEXT

聽 聽 END FORM o



Saludos
Patricio

__________________________________________________________________
Version: Harbour 3.2.0dev (r1307082134),Compiler: Borland C++ 5.8.2 (32-bit)
PCode version: 0.3, FWH 13.2
http://www.sialm.cl
Posts: 1074
Joined: Fri Oct 07, 2005 01:56 PM
Re: TWeb - Sesiones
Posted: Tue Nov 03, 2020 11:53 PM

Solucionado, el problema era el navegador por algun motivo no me mostraba algunas funciones del tweb.js, borre los datos de navegaci贸n y listo
todo ok :-)

Saludos
Patricio

__________________________________________________________________
Version: Harbour 3.2.0dev (r1307082134),Compiler: Borland C++ 5.8.2 (32-bit)
PCode version: 0.3, FWH 13.2
http://www.sialm.cl
Posts: 1283
Joined: Fri Feb 10, 2006 02:34 PM
Re: TWeb - Sesiones
Posted: Wed Nov 04, 2020 07:10 AM
Patricio,

Justo lo estaba probando :-)

Salutacions, saludos, regards

"...programar es f谩cil, hacer programas es dif铆cil..."

UT Page -> https://carles9000.github.io/
Forum UT -> https://discord.gg/bq8a9yGMWh
HIX -> https://github.com/carles9000/hix

Continue the discussion