FWeb -> Road to the Web...

FWeb -> Road to the Web...

Postby Carles » Thu Jun 11, 2015 3:04 pm

Hi,

I’d like to introduce you a library to create your own modules on the web,FWeb (Framework Web). It all came about last year and after taking several courses (symphony, html, javascript, css, php, bootstrap, jquery,...) that I ended crazy and I was seeing that any of them had a similar approach to my own present way of working, most of them with FWH (for me the best language in the last years for windows environments :D ). One has his own logics, ways of thinking and codifying. Any change of system can be very hard and can even cause a rebound effect and feeling hatred for that system…

In order to create a web module one had to conjugate several languages and in the end all was reduced to html, css, javasript, php and as database oracle or mysql. I found these different frameworks very tiresome and I realised they were too much for my present management. We are a kind of programmers that “scratch” codes and after some years we got many skills and techniques with our Harbour and FWH.

How could we make a system that allow us to work in a comfortable, friendly, simple, productive and above all understandable way when one sees the code? Here it came up the idea to create this framework that would help us to create management modules which is what we are good at and what is designed for.

I introduce you FWeb, a framework that may help us to initiate yourselves in an easy way to the web, using our virtues and our vices. We’ll use php and javascript but don’t be afraid as it may be useful to go in depth in this word in a fast and friendly way for those who have never done it or to help even more the ones who are already familiarised with it. In reality, lots of them are codified as our beloved FWH. This will help us with the way we program that we have learnt during these years, in the same conceptual manner. We can also design the screens if we want with our appreciated workshop, pellesc or resedit and our rc will be read by our FWeb, so it’s less of a headache for us when designing the screen.

Anything else so far!!

I am leaving a link of a little module made with FWeb maintenance . You can see differents controls and models common used for us.

http://itarraco.com/fweb/winweb.php?lang=EN User: USER / Password: 1234

Three months ago started a new forum in http://itarraco.com/forum to answer questions about FWEB. I'll be happy to help you solve them.

If u want to see english manual you can download from here https://www.dropbox.com/s/0zsluyqt8do4t7o/FWeb_EN.pdf?dl=0

I want to see if it raises enough interest this project may start and continue :D .

Finally i also thanks Mr. Antonio Linares, ( the boss ;) ), for his opinion and help in this new channel based on our beloved FWH.

Thanks a lot and greetings to all !!!

Road to the Web...


Carles.
Salutacions, saludos, regards

"...programar es fácil, hacer programas es difícil..."

UT Page -> https://carles9000.github.io/
Forum UT -> https://discord.gg/bq8a9yGMWh
Skype -> https://join.skype.com/cnzQg3Kr1dnk
User avatar
Carles
 
Posts: 1137
Joined: Fri Feb 10, 2006 2:34 pm
Location: Barcelona

Re: FWeb -> Road to the Web...

Postby Rick Lipkin » Thu Jun 11, 2015 6:54 pm

Carles

I like your prototype .. how did your incorporate FWH and Resource (.rc) into PHP, Java script without doing some sort of CGI ?

Thanks
Rick Lipkin
User avatar
Rick Lipkin
 
Posts: 2666
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: FWeb -> Road to the Web...

Postby Carles » Thu Jun 11, 2015 7:13 pm

Rick,

Rick Lipkin wrote:I like your prototype .. how did your incorporate FWH and Resource (.rc) into PHP, Java script without doing some sort of CGI ?


If you donwload the manual, maybe you can understand this concept in page 34/35 :)

A new scenery and a lot of questions, I know... Feel free to ask me, please.

Thanks for your comment.
Salutacions, saludos, regards

"...programar es fácil, hacer programas es difícil..."

UT Page -> https://carles9000.github.io/
Forum UT -> https://discord.gg/bq8a9yGMWh
Skype -> https://join.skype.com/cnzQg3Kr1dnk
User avatar
Carles
 
Posts: 1137
Joined: Fri Feb 10, 2006 2:34 pm
Location: Barcelona

Re: FWeb -> Road to the Web...

Postby Rick Lipkin » Thu Jun 11, 2015 7:55 pm

Carles

I am impressed .. my Achilles heal doing any type of web application is fetching data to populate fields, listboxes (json is not my friend nor is TSql ) and to be able to save data back to the data source specifically to a Sql database.

Did not see much in your ( nicely done ) .pdf instructions on how you are handling data manipulation ?

Thanks
Rick Lipkin
User avatar
Rick Lipkin
 
Posts: 2666
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: FWeb -> Road to the Web...

Postby Carles » Fri Jun 12, 2015 6:09 am

Hi Rick,

In manual explain very well how to manipulate data. Start page 13-17 chapter client to server connection and for example in the 21 to 22 you can see how to load data from the server via json. JSON soon will be your friend :wink: , it is very easy. Why JSON ? FWeb want to group all the techniques that will give better performance to the system, such as the intensive use of AJAX, maintenance screens design using rc editors (this is already a scandal for performance that gives us), using the controls our dear methods (Disable(), Enable(), SetFocus(), Hide(), Show(), ... ). Summary, take advantage our experience and put it together with other benefits of the new languages ​​to create our system.

Once we have our loaded module, only we make requests for the information we need (Ajax) without reloading the page again, and data transmission is via json (the fastest and most compact system that exists). Actually the system is very fast.

FWeb has been designed so that users don't worry about knowing about Ajax, json, html, css ... I can assure you that in a few days you able to create data maintenance modules of thousand different ways.

We are used to harbour and C, and as everyone any change is always hard, but with just a bit of php and javascript this new world will be very easy for you.

Don't want to bore you now with all the benefits of the new scenario, but if you want you can even open your eyes a lot more, for example the potential to join together your management in the cloud with applications FWeb and FWH with a fantastic performance, and for example you can enter data via Windows FWH and you can see it in the same second with your smartphone, i've a lot of examples for u if you want ... :D

Feel free to ask me, please...


Regards.
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
Skype -> https://join.skype.com/cnzQg3Kr1dnk
User avatar
Carles
 
Posts: 1137
Joined: Fri Feb 10, 2006 2:34 pm
Location: Barcelona

Re: FWeb -> Road to the Web...

Postby cdmmaui » Thu Aug 06, 2015 2:33 am

Dear Carles,

This is very interesting, is it possible to create user interface similar to the link below:

http://199.188.244.227/aimmgr/dashboard.html

I will download your user manual and will review.

Is FWeb ready for business use? If so, I have a MS SQL project that I can try FWeb.

Thank you,
*~*~*~*~*~*~*~*~*~*
Darrell Ortiz
CDM Software Solutions, Inc.
https://www.cdmsoft.com
User avatar
cdmmaui
 
Posts: 689
Joined: Fri Oct 28, 2005 9:53 am
Location: Houston ∙ Chicago ∙ Los Angeles ∙ Miami ∙ London ∙ Hong Kong

Re: FWeb -> Road to the Web...

Postby Carles » Thu Aug 06, 2015 9:25 am

Dear Darrell,

This is very interesting, is it possible to create user interface similar to the link below:

http://199.188.244.227/aimmgr/dashboard.html


Maybe I can answer you with another question. Can you create with Fivewin this dashboard? For me the answer is yes, but creating you a specific control for this purpose. Fivewin classes has its own style and visual design, but leaves the door open to other designs.

I would say that you can change the appearance of a control by simply changing the CSS that defines it without changing any code. Your analogy perhaps in FiveWin to use a skin.

A practical example. You can try this example

http://itarraco.com/fweb/test6.php and after http://itarraco.com/fweb/test6b.php

The only difference between the two codes is a line in which we specify that we will use our style

Code: Select all  Expand view  RUN
<?php
include ('./fweb/fweb.php' );

$oWeb   = new TWeb( 'Test Clase Control' )
$oWeb->AddCss( 'mi_estilo.css' );
$oWeb->Activate();
?>

<script type="text/javascript">

    function MiAccion() {
   
        var o   = new Control();   
   
        MsgInfo( o.Get( 'name' )  );
       
        o.Set( 'name', 'Maria de la O' );
        o.Set( 'age' , 26 );

        o.SetFocus( 'name' );
       
    }

</script>

<?php
    $oWnd   = new TDialog( 'my_dialog', 350, 200 , 'Mi Diálogo' )
       
        $oGet = new TGet( $oWnd , 'name', 50, 150, 'James Bond...'  );
        $oGet = new TGet( $oWnd , 'age' , 80, 150, '42'             )

        $oBtn = new TButton( $oWnd , 'obtn1', 130, 130, 'Mi Button' );                 
        $oBtn->SetAction( 'MiAccion()' );          
   
    $oWnd->Activate();
   
$oWeb->End();
?>


Only changes the line 4 -> $oWeb->AddCss( 'mi_estilo.css' );

Summary, I would say that we have a working model, and that the system is open to be able to create new "classes" with different appearances and behaviors.

Is FWeb ready for business use? If so, I have a MS SQL project that I can try FWeb.


Yes, it's all ready and the purpose of FWeb, to create business applications.

Finally say to u FWeb is based on php + mysql because it's the most popular and the net you can find all kinds of solutions, but PHP can also use also MS SQL. I haven't tried but also php it's ready to use ms sql http://php.net/manual/en/book.mssql.php and it's very similar to mysql.

Now I'm finishing a management application for a medical environment. When i finish it (hopefully the end of August) i will be able to teach the real power of the system. Of course, a change of chip, a change of style ... but our filosify ! ;-)
Salutacions, saludos, regards

"...programar es fácil, hacer programas es difícil..."

UT Page -> https://carles9000.github.io/
Forum UT -> https://discord.gg/bq8a9yGMWh
Skype -> https://join.skype.com/cnzQg3Kr1dnk
User avatar
Carles
 
Posts: 1137
Joined: Fri Feb 10, 2006 2:34 pm
Location: Barcelona

Re: FWeb -> Road to the Web...

Postby Richard Chidiak » Fri Aug 07, 2015 10:56 am

Carles

Very interesting

I like the idea, i personnaly have never been able to use ADO and access to our mysql tables while we do that on a daily bases with PHP

I need an interface between fw and php , your solution look promising

I am going to review the manual in a couple of weeks , i am on vacation now.

Richard
http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
User avatar
Richard Chidiak
 
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France

Re: FWeb -> Road to the Web...

Postby cdmmaui » Mon Aug 10, 2015 12:16 am

Dear Carles,

Where can I get FWeb framework? I would like to try and use framework for a new project.

Sincerely,
*~*~*~*~*~*~*~*~*~*
Darrell Ortiz
CDM Software Solutions, Inc.
https://www.cdmsoft.com
User avatar
cdmmaui
 
Posts: 689
Joined: Fri Oct 28, 2005 9:53 am
Location: Houston ∙ Chicago ∙ Los Angeles ∙ Miami ∙ London ∙ Hong Kong

Re: FWeb -> Road to the Web...

Postby Carles » Mon Aug 10, 2015 10:32 am

Darrell,

You can download demo and docs --> http://itarraco.com/forum/viewtopic.php?f=9&t=130

Thanks !
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
Skype -> https://join.skype.com/cnzQg3Kr1dnk
User avatar
Carles
 
Posts: 1137
Joined: Fri Feb 10, 2006 2:34 pm
Location: Barcelona


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 32 guests