FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour FiveWeb Questions
Posts: 933
Joined: Sun Oct 09, 2005 01:05 PM
Re: FiveWeb Questions
Posted: Sat Feb 06, 2016 09:18 PM

Please try this:
'document.getElementById( "combobox" ).value.trim() + ":" + '+ ;

if it works, then we may need to make a little change in Class TComboBox, so each combobox control
uses a different Id


When you get a chance, could you adjust the combobox so multiple combos can be used ?


Also, it looks like "modal: true" is not working on MsgInfo()
Thanks,

Jeff Barnes



(FWH 16.11, xHarbour 1.2.3, Bcc730)
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: FiveWeb Questions
Posted: Sun Feb 07, 2016 11:45 AM
Jeff,

When you get a chance, could you adjust the combobox so multiple combos can be used ?


Already implemented. I have modified the previous combobox implementation and now the combobox value
is to be accessed this way:

document.getElementById( "oCbx.at" ).value.trim() // Notice .at

where oCbx is the used variable name in the PRG. Here is your example modified:
Code (fw): Select all Collapse
#include "FiveWeb.ch"

function Main()
   local oDlg, oCbx, cValue := "two"
   local oFld
   DEFINE DIALOG oDlg TITLE "Using a combobox"
    @ 0, 0 FOLDER oFld PROMPTS "One","Two" SIZE 500, 560 OF oDlg
    @ 300, 300 COMBOBOX oCbx VAR cValue ITEMS "one", "two", "three" OF oFld:aDialogs[1]
    @ 200, 120 BUTTON "Ok" OF oFld:aDialogs[1] ACTION alert( document.getElementById( "oCbx.at" ).value.trim() )
   ACTIVATE DIALOG oDlg NOWAIT
return nil


Please download FiveWeb again from here:
https://bitbucket.org/fivetech/fiveweb/downloads
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: FiveWeb Questions
Posted: Sun Feb 07, 2016 11:51 AM
Jeff,

Also, it looks like "modal: true" is not working on MsgInfo()


Have you modified MsgInfo() source code in c:\fiveweb\source\js\fiveweb.js ?

Actually it is declared as non modal:

Code (fw): Select all Collapse
   $( "#msginfo" ).dialog( { width: 400, height: 250, modal: false, 
   buttons: { 'Ok': function() { $( "#msginfo" ).dialog( "close" ).remove(); } } } );
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 933
Joined: Sun Oct 09, 2005 01:05 PM
Re: FiveWeb Questions
Posted: Sun Feb 07, 2016 07:55 PM

Thanks Antonio, I will have a look at the js file.

One more thing and I think I have everything I need to get my webapp going....

How would I go about allowing a user to select a local file (client side) and upload it to the server?

Thanks,

Jeff Barnes



(FWH 16.11, xHarbour 1.2.3, Bcc730)
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: FiveWeb Questions
Posted: Sun Feb 07, 2016 08:44 PM
Jeff,

It seems as JQuery UI (the GUI that FiveWeb uses) provides a control to upload files:

https://blueimp.github.io/jQuery-File-Upload/jquery-ui.html

Now we just need to implement it from FiveWeb. I am reviewing it
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM
Re: FiveWeb Questions
Posted: Mon Feb 08, 2016 06:56 PM

Hi Antonio,

Is It possible to use with MySql ?
There is a "First Steps" Doc ?

Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: FiveWeb Questions
Posted: Mon Feb 08, 2016 11:39 PM
Vilian,

Yes, you can use MySQL. Here you have an example:
https://code.google.com/archive/p/fiveweb/wikis/testbrow_prg.wiki

The FiveWeb wiki is at google code but now it looks a little messy cause Google modifications to google code sites:
https://code.google.com/archive/p/fiveweb/wikis

FiveWeb is kept now at bitbucket:
https://bitbucket.org/fivetech/fiveweb

I have started migrating the wiki from google code site to bitbucket FiveWeb wiki:
https://bitbucket.org/fivetech/fiveweb/wiki/Home
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM
Re: FiveWeb Questions
Posted: Tue Feb 09, 2016 01:08 AM

Thanks.

Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: FiveWeb Questions
Posted: Fri Feb 12, 2016 09:24 AM
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: FiveWeb Questions
Posted: Sat Feb 13, 2016 08:29 AM
Jeff,

This simple line shows a button to select a file to send:

<INPUT TYPE=FILE NAME="upfile">

You can test it from here:

http://www.w3schools.com/html/tryit.asp?filename=tryhtml_intro
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: FiveWeb Questions
Posted: Mon Feb 15, 2016 09:53 AM
Antonio Linares wrote:<INPUT TYPE=FILE NAME="upfile">


No, you cannot preset the file name to send.

EMG
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: FiveWeb Questions
Posted: Mon Feb 15, 2016 11:30 AM

Enrico,

And using DOM ?

How do you do it ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: FiveWeb Questions
Posted: Mon Feb 15, 2016 11:38 AM

Don't think so. It's a security measure.

EMG

Posts: 842
Joined: Mon Oct 10, 2005 01:29 PM
Re: FiveWeb Questions
Posted: Tue Feb 16, 2016 04:14 PM

Hello Antonio ,
I have a hosting on DreamHost ,can you help me to set the host and publish a demo of Five Web ?
Regards Maurizio

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: FiveWeb Questions
Posted: Tue Feb 16, 2016 07:27 PM

Maurizio,

Yes, sure.

Please email me the login and password for your DreamHost account and I will set everything there for you :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com