FWH for Web - For Antonio

FWH for Web - For Antonio

Postby cdmmaui » Wed Oct 12, 2011 5:28 pm

Dear Antonio,

What is the outlook with FWH and providing a web enabled application development environment? If you have any timelines, I would really appreciate it. I have several projects that require web enabled applications and I would like to continue with FWH. I purchased FiveWeb but there are so many limitations and updates are slow. I need a reliable commercial development environment and I am really hoping FWH has something in the works.

I look forward to hearing back from you.

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: FWH for Web - For Antonio

Postby Antonio Linares » Wed Oct 12, 2011 6:31 pm

Darrell,

We are currently doing R+D on HTML5 WebSockets technology as we believe this is the right way to go:

https://groups.google.com/group/harbour-devel/browse_frm/thread/9f421006cf80e1b9?hl=es#

viewtopic.php?f=3&t=22609&start=0&hilit=TWebServer

We can't exactly say how long it will take, but we really want to deliver an easy and powerfull Harbour + FWH development for the web :-)
regards, saludos

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

Re: FWH for Web - For Antonio

Postby ukservice » Thu Oct 13, 2011 8:43 am

Antonio,

So you are NOT going to develop something such as Fiveweb, that allows using the same FWH sintax but provides a web output?.

Thanks.
FWH 11.11, Harbour 3.1 and Borland C++ 5.82
User avatar
ukservice
 
Posts: 417
Joined: Tue Feb 23, 2010 3:09 pm
Location: John

Re: FWH for Web - For Antonio

Postby Antonio Linares » Thu Oct 13, 2011 10:24 am

John,

We are working on its development :-)
regards, saludos

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

Re: FWH for Web - For Antonio

Postby ukservice » Thu Oct 13, 2011 12:17 pm

Antonio,

Thank you.

viewtopic.php?f=3&t=22609&start=0&hilit=TWebServer is a Web server such as IIS, Apache, etc, but does not allow to use FWH code as Fivewweb does:

Code: Select all  Expand view
#include "fiveweb.ch"

  Function Main()
  Local oWnd,oBmp
  Define Window oWnd Title "Bitmap in Web"
     @0,0 Bitmap oBmp File "c:\paysoft\webpay\www\fiveweb\imagens\spash.jpg"
     oWnd:oClient := oBmp
 
  Activate Window oWnd Maximized
  Return Nil

 
FWH 11.11, Harbour 3.1 and Borland C++ 5.82
User avatar
ukservice
 
Posts: 417
Joined: Tue Feb 23, 2010 3:09 pm
Location: John

Re: FWH for Web - For Antonio

Postby norberto » Thu Oct 13, 2011 1:54 pm

I have much interest in this topic, I have a few projects to be done, but must have access to webservices and run in browser mode.
norberto
 
Posts: 566
Joined: Thu Aug 30, 2007 3:40 pm
Location: BR

Re: FWH for Web - For Antonio

Postby Enrico Maria Giordano » Thu Oct 13, 2011 6:04 pm

ukservice wrote:TWebServer is a Web server such as IIS, Apache, etc, but does not allow to use FWH code as Fivewweb does:


When we'll have a full working FWH webserver we can implement a FWH script interpreter into it.

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

Re: FWH for Web - For Antonio

Postby Antonio Linares » Thu Oct 13, 2011 6:35 pm

FWH Class TWebServer already allows to place Harbour code into HTML pages! :-)

Please review Class TWebServer Method HtmlMerge(), whatever is placed in between <<...>> gets macro expanded:

Code: Select all  Expand view
METHOD HtmlMerge( cHtml, cParams, mSocket, cQuery ) CLASS TWebServer

   local nStart, nEnd, cBlock, bOldError

   private parameters := cParams

   private nSocket    := mSocket
   private Query      := cQuery
   private Cookie     := ::cCookie

   BEGIN SEQUENCE
      bOldError = ErrorBlock( { || DoBreak() } )
      while ( nStart := At( "<<", cHtml ) ) != 0
         nEnd = At( ">>", SubStr( cHtml, nStart + 2 ) )
         cBlock = SubStr( cHtml, nStart + 2, nEnd - 1 )
         cHtml = SubStr( cHtml, 1, nStart - 1 ) + ;
            If( ! Type( cBlock ) == "U", cValToChar( &( cBlock ) ), "( expression error )" ) + ;
                SubStr( cHtml, nStart + nEnd + 3 )
      end
   END SEQUENCE
   ErrorBlock( bOldError )
   nSocket = 0

return cHtml
 
regards, saludos

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


Re: FWH for Web - For Antonio

Postby norberto » Thu Oct 13, 2011 8:42 pm

antonio, have a litle sample?
norberto
 
Posts: 566
Joined: Thu Aug 30, 2007 3:40 pm
Location: BR

Re: FWH for Web - For Antonio

Postby Antonio Linares » Thu Oct 13, 2011 9:45 pm

Norberto,

Example:

...
<h1><<Date()>></h1>

</body>
</html>
regards, saludos

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 51 guests