Page 3 of 10

Re: FiveWeb Questions

PostPosted: Sat Feb 06, 2016 9:18 pm
by Jeff Barnes
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()

Re: FiveWeb Questions

PostPosted: Sun Feb 07, 2016 11:45 am
by Antonio Linares
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

Re: FiveWeb Questions

PostPosted: Sun Feb 07, 2016 11:51 am
by Antonio Linares
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(); } } } );

Re: FiveWeb Questions

PostPosted: Sun Feb 07, 2016 7:55 pm
by Jeff Barnes
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?

Re: FiveWeb Questions

PostPosted: Sun Feb 07, 2016 8:44 pm
by Antonio Linares
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

Re: FiveWeb Questions

PostPosted: Mon Feb 08, 2016 6:56 pm
by vilian
Hi Antonio,

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

Re: FiveWeb Questions

PostPosted: Mon Feb 08, 2016 11:39 pm
by Antonio Linares
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

Re: FiveWeb Questions

PostPosted: Tue Feb 09, 2016 1:08 am
by vilian
Thanks.

Re: FiveWeb Questions

PostPosted: Fri Feb 12, 2016 9:24 am
by Antonio Linares

Re: FiveWeb Questions

PostPosted: Sat Feb 13, 2016 8:29 am
by Antonio Linares
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

Re: FiveWeb Questions

PostPosted: Mon Feb 15, 2016 9:53 am
by Enrico Maria Giordano
Antonio Linares wrote:<INPUT TYPE=FILE NAME="upfile">


No, you cannot preset the file name to send.

EMG

Re: FiveWeb Questions

PostPosted: Mon Feb 15, 2016 11:30 am
by Antonio Linares
Enrico,

And using DOM ?

How do you do it ?

Re: FiveWeb Questions

PostPosted: Mon Feb 15, 2016 11:38 am
by Enrico Maria Giordano
Don't think so. It's a security measure.

EMG

Re: FiveWeb Questions

PostPosted: Tue Feb 16, 2016 4:14 pm
by Maurizio
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

Re: FiveWeb Questions

PostPosted: Tue Feb 16, 2016 7:27 pm
by Antonio Linares
Maurizio,

Yes, sure.

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