FiveWeb Questions

Re: FiveWeb Questions

Postby Jeff Barnes » Sat Feb 06, 2016 9: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)
User avatar
Jeff Barnes
 
Posts: 929
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada

Re: FiveWeb Questions

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

Re: FiveWeb Questions

Postby Antonio Linares » 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: Select all  Expand view
  $( "#msginfo" ).dialog( { width: 400, height: 250, modal: false,
   buttons: { 'Ok': function() { $( "#msginfo" ).dialog( "close" ).remove(); } } } );
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41314
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: FiveWeb Questions

Postby Jeff Barnes » Sun Feb 07, 2016 7: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)
User avatar
Jeff Barnes
 
Posts: 929
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada

Re: FiveWeb Questions

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

Re: FiveWeb Questions

Postby vilian » Mon Feb 08, 2016 6: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
User avatar
vilian
 
Posts: 920
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

Re: FiveWeb Questions

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

Re: FiveWeb Questions

Postby vilian » Tue Feb 09, 2016 1:08 am

Thanks.
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
User avatar
vilian
 
Posts: 920
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

Re: FiveWeb Questions

Postby Antonio Linares » Fri Feb 12, 2016 9:24 am

regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41314
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: FiveWeb Questions

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

Re: FiveWeb Questions

Postby Enrico Maria Giordano » Mon Feb 15, 2016 9:53 am

Antonio Linares wrote:<INPUT TYPE=FILE NAME="upfile">


No, you cannot preset the file name to send.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8315
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: FiveWeb Questions

Postby Antonio Linares » Mon Feb 15, 2016 11:30 am

Enrico,

And using DOM ?

How do you do it ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41314
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: FiveWeb Questions

Postby Enrico Maria Giordano » Mon Feb 15, 2016 11:38 am

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

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8315
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: FiveWeb Questions

Postby Maurizio » Tue Feb 16, 2016 4: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
User avatar
Maurizio
 
Posts: 796
Joined: Mon Oct 10, 2005 1:29 pm

Re: FiveWeb Questions

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

PreviousNext

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 65 guests