FiveWin Web Interface

Re: FiveWin Web Interface

Postby Bayron » Tue Oct 25, 2011 5:00 pm

James,
Is just not working right now... They probably changed something...
=====>

Bayron Landaverry
(215)2226600 Philadelphia,PA, USA
+(502)46727275 Guatemala
MayaBuilders@gMail.com

FWH12.04||Harbour 3.2.0 (18754)||BCC6.5||UEstudio 10.10||
Windows 7 Ultimate

FiveWin, One line of code and it's done...
User avatar
Bayron
 
Posts: 815
Joined: Thu Dec 24, 2009 12:46 am
Location: Philadelphia, PA

Re: FiveWin Web Interface

Postby Carlos Mora » Wed Oct 26, 2011 11:52 am

Hello Norberto,
norberto wrote:Antonio, but ie9 is more secure, or not? see: (one of several overview):


May be better to look into independent sites, like wikipedia. About browser security in particular:

http://en.wikipedia.org/wiki/Comparison_of_web_browsers#Vulnerabilities

IE has never been a good reference in security matters, nor it's today. There is also a lot of tables with comparison of different aspects of browsers, so you will find it very interesting.
Saludos
Carlos Mora
http://harbouradvisor.blogspot.com/
StackOverflow http://stackoverflow.com/users/549761/carlos-mora
“If you think education is expensive, try ignorance"
Carlos Mora
 
Posts: 989
Joined: Thu Nov 24, 2005 3:01 pm
Location: Madrid, España

Re: FiveWin Web Interface

Postby norberto » Wed Oct 26, 2011 12:24 pm

Carlos, thank you, really shows other data, but think about a given this source: Why put all versions of IE, and only the new than chrome? a reliable source would put all of chrome also or would make the comparison of only the latest versions, it is clear that putting only last of chrome and comparing with all IE (old) they want to do the opinion in favor of this browser.
I'm not saying that this wrong, but as you said, each search want influence one or the other ...
norberto
 
Posts: 566
Joined: Thu Aug 30, 2007 3:40 pm
Location: BR

Re: FiveWin Web Interface

Postby Antonio Linares » Wed Oct 26, 2011 3:45 pm

James Bott wrote:Antonio,

The sandbox looks great. However, maybe I don't understand it, but the Run button is not showing the code in the edit screen (the displayed text is different than what is in the edit display). This is not the case in your included screenshot, but it is the case when I run the code example. Please explain.

James


James,

There is some code to fix, as we need to wait to download from the server the updated HTML, and there is no a DoEvents for javascript, so we are looking for an alternative solution.
regards, saludos

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

Re: FiveWin Web Interface

Postby Carlos Mora » Wed Oct 26, 2011 4:20 pm

Norberto,

i don't think so :). Wikipedia is absolutely independent, there is no relation between browsers and wikipedia, and that was just an effort to use an independent reference. And its contents is absolutely public, so if it was partial in any way i'm sure it will be objected by the affected part.

The comparision is between used browsers. The version of Chrome never has been significant, but in IE the version means even different products and behavoirs. And, just in case, you can ignore the reference to the other versions and just compare IE9.
May be the fact that previous versions of IE are compared is because there are versions still in use with a strong presence. Even MS is making a campaign in favor of droping down definitively IE6 trying to convince the most resistant users to change. http://www.ie6countdown.com

In other aspects, the comparisions and test referenced in tables are conducted by internet authoritative entities, like W3C. In any case the sources of every comparision can be traced, and exceptions in the test are observed in footnotes. Interesting independent test to check web standars : http://www.acidtests.org/

I've been lucky lately, I had the chance to make some experience last years developing internet applications, and the incompatibilities between browsers are a real nightmare. And IE 6 and 7 are the worst, in terms of compatibility with internet standards. Ask to any web developer and probably he/she will confirm my opinion.

Best regards
Saludos
Carlos Mora
http://harbouradvisor.blogspot.com/
StackOverflow http://stackoverflow.com/users/549761/carlos-mora
“If you think education is expensive, try ignorance"
Carlos Mora
 
Posts: 989
Joined: Thu Nov 24, 2005 3:01 pm
Location: Madrid, España

Re: FiveWin Web Interface

Postby Adolfo » Thu Oct 27, 2011 12:04 pm

Norberto

There are more problems with IE8, IE9

Plese visit this site www.haz.io with the different browsers you've got.

See how your browser supports HTML5,CSS3 and Javascript.

IE is the WORST. No matter which version.
;-) Ji,ji,ji... buena la cosa... "all you need is code"

http://www.xdata.cl - Desarrollo Inteligente
----------
Asus TUF F15, 32GB Ram, 2 * 1 TB NVME M.2, GTX 1650
User avatar
Adolfo
 
Posts: 860
Joined: Tue Oct 11, 2005 11:57 am
Location: Chile

Re: FiveWin Web Interface

Postby cdmmaui » Fri Oct 28, 2011 4:48 pm

Hi Antonio,

Great work on the Web Interface! By any chance, do you have timeline to have a commercial version ready? I have several projects and would like to know if I can wait for the Web Interface.

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: FiveWin Web Interface

Postby Antonio Linares » Fri Oct 28, 2011 8:15 pm

Darrell,

We can't say a date yet, but we plan to have it ready by end 2011, beginning 2012 :-)
regards, saludos

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

Re: FiveWin Web Interface

Postby norberto » Fri Oct 28, 2011 8:50 pm

Antonio , Great . im waiting...
norberto
 
Posts: 566
Joined: Thu Aug 30, 2007 3:40 pm
Location: BR

Re: FiveWin Web Interface

Postby Bayron » Wed Nov 16, 2011 5:17 am

Hi everyone,

Antonio,

I tested some modifications to function Dialog() on IE9, FireFox and Chrome, and it works fine centering the dialog in the screen and with the overlay...

I hope other users can test in other WebBrowsers...

Code: Select all  Expand view  RUN
function Dialog( cTitle, nWidth, nHeight )
{
      var body = document.body;
     
   this.overlay = document.createElement( "div" );
   this.dlg = document.createElement( "div" );
   this.oldDlg = oDlg;
   this.oldFrame = oFrame;
     
   this.overlay.className = "overlay";
   this.overlay.id = "overlay";
   this.overlay.style.height = window.screen.height;
   this.overlay.style.width = window.screen.width;
   body.appendChild( this.overlay );

   this.dlg.className = "dialog";
   this.dlg.id = "dialog";
   this.dlg.style.width  = nWidth;
   this.dlg.style.height = nHeight;
   this.dlg.style.top    = ( parseFloat( window.screen.height ) / 2 ) - ( parseFloat( this.dlg.style.height ) );
   this.dlg.style.left   = ( parseFloat( window.screen.width ) / 2 ) - ( parseFloat( this.dlg.style.width ) / 2 );
   this.dlg.innerHTML    = "<h2>" + cTitle + "</h2>";
   body.appendChild( this.dlg );
     
   this.End = function() { this.dlg.parentNode.removeChild( this.dlg );
                             this.overlay.parentNode.removeChild( this.overlay );
                           oDlg = this.oldDlg; oFrame = this.oldFrame; };
                           
   this.GetControl = function( cName ) { var aControls = document.getElementsByName( cName );
                                         if( aControls.length > 0 )
                                            return aControls[ aControls.length - 1 ];
                                         else
                                            return null; };                            
}
 
=====>

Bayron Landaverry
(215)2226600 Philadelphia,PA, USA
+(502)46727275 Guatemala
MayaBuilders@gMail.com

FWH12.04||Harbour 3.2.0 (18754)||BCC6.5||UEstudio 10.10||
Windows 7 Ultimate

FiveWin, One line of code and it's done...
User avatar
Bayron
 
Posts: 815
Joined: Thu Dec 24, 2009 12:46 am
Location: Philadelphia, PA

Re: FiveWin Web Interface

Postby Antonio Linares » Wed Nov 16, 2011 10:38 am

Bayron,

Thanks! :-)
regards, saludos

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

Re: FiveWin Web Interface

Postby Bayron » Thu Nov 17, 2011 4:49 am

Aparently, centering was not working propertly cross browsers and with different dialog sizes...

Now, when the browser is very smal, the dialog will not be centered, but instead will be right after the menu in height and at 1 at widht...

Also overlay was oversized and poping scroll bars horizontal and vertical... (now fixed) and working fine in my computer...

Code: Select all  Expand view  RUN
function Dialog( cTitle, nWidth, nHeight )
{
   var body = document.body;

   this.overlay = document.createElement( "div" );
   this.dlg = document.createElement( "div" );
   this.oldDlg = oDlg;
   this.oldFrame = oFrame;
     
   this.overlay.className = "overlay";
   this.overlay.id = "overlay";

   if (/Firefox/.test(navigator.userAgent))
      this.overlay.style.height = window.screen.height - 106;
   else if (/MSIE/.test(navigator.userAgent))
      this.overlay.style.height = window.screen.height - 131;
   else
      this.overlay.style.height = window.screen.height - 101;

   if (/MSIE/.test(navigator.userAgent))
      this.overlay.style.width =  window.screen.width - 23 ;
   else
      this.overlay.style.width =  window.screen.width ;

   body.appendChild( this.overlay );

   this.dlg.className = "dialog";
   this.dlg.id = "dialog";
   this.dlg.style.width  = nWidth;
   this.dlg.style.height = nHeight;

   if (/MSIE/.test(navigator.userAgent))
   {
      var oDlgHeight = ( parseFloat( body.parentNode.clientHeight ) / 2 ) - ( parseFloat( this.dlg.style.height ) / 2);
      var oDlgWidth = ( parseFloat( body.parentNode.clientWidth ) / 2 ) - ( parseFloat( this.dlg.style.width ) / 2 );
     
      if ( oDlgHeight >= 40 )
         oDlgHeight = oDlgHeight;
      else
         oDlgHeight = 48;
         
      if ( oDlgWidth >= 0 )
         oDlgWidth = oDlgWidth;
      else
         oDlgWidth = 1;
         
      this.dlg.style.top    = oDlgHeight;
      this.dlg.style.left   = oDlgWidth;
   }
   else
   {
      var oDlgHeight = ( parseFloat( body.clientHeight ) / 2 ) - ( parseFloat( this.dlg.style.height ) / 2 );
      var oDlgWidth = ( parseFloat( body.clientWidth ) / 2 ) - ( parseFloat( this.dlg.style.width ) / 2 );
     
      if ( oDlgHeight >= 40 )
         oDlgHeight = oDlgHeight;
      else
         var oDlgHeight = 42;

      if ( oDlgWidth >= 0 )
         oDlgWidth = oDlgWidth;
      else
         oDlgWidth = 1;
         
      this.dlg.style.top    = oDlgHeight;
      this.dlg.style.left   = oDlgWidth;
   }

   this.dlg.innerHTML    = "<h2>" + cTitle + "</h2>";
   body.appendChild( this.dlg );
     
   this.End = function() { this.dlg.parentNode.removeChild( this.dlg );
                             this.overlay.parentNode.removeChild( this.overlay );
                           oDlg = this.oldDlg; oFrame = this.oldFrame; };
                           
   this.GetControl = function( cName ) { var aControls = document.getElementsByName( cName );
                                         if( aControls.length > 0 )
                                            return aControls[ aControls.length - 1 ];
                                         else
                                            return null; };                            
}
 


Please test in your computer and let me know if it is working propertly in other computers...
=====>

Bayron Landaverry
(215)2226600 Philadelphia,PA, USA
+(502)46727275 Guatemala
MayaBuilders@gMail.com

FWH12.04||Harbour 3.2.0 (18754)||BCC6.5||UEstudio 10.10||
Windows 7 Ultimate

FiveWin, One line of code and it's done...
User avatar
Bayron
 
Posts: 815
Joined: Thu Dec 24, 2009 12:46 am
Location: Philadelphia, PA

Re: FiveWin Web Interface

Postby Bayron » Fri Dec 02, 2011 2:52 am

Get's where not working on IE,
With this code, now it works fine for me on Win7 and IE9, Chrome and FireFox
Code: Select all  Expand view  RUN
function Get( nTop, nLeft, cText, oDlg, nWidth, nHeight, cId )
{
    document.getElementsByClassName = function(class_name) {
       var docList = this.all || this.getElementsByTagName('*');
       var matchArray = new Array();

       /*Create a regular expression object for class*/
       var re = new RegExp("(?:^|\\s)"+class_name+"(?:\\s|$)");
       for (var i = 0; i < docList.length; i++) {
           if (re.test(docList[i].className) ) {
               matchArray[matchArray.length] = docList[i];
           }
       }

        return matchArray;
    }//eof annonymous function
   

   var get = document.createElement( "input" );
   var aGets = document.getElementsByClassName( "get" );

   get.type           = "text";
   get.className      = "get";

   if( typeof cId != "undefined" )
      get.id             = cId;
   else
      get.id             = "get";

   get.style.position = "absolute";
   get.style.top      = nTop;
   get.style.left     = nLeft;
   get.style.width    = nWidth;
   get.style.height   = nHeight;
   get.value          = cText;
   get.name           = "get" + ( aGets.length + 1 ).toString();
     
   if( typeof oDlg != "undefined" )
      oDlg.dlg.appendChild( get );
   else
      document.body.appendChild( get );
 
}  

function ChangeGet( cId, cText )  
{  
    var change = document.getElementById(cId);
    change.value = cText;

}

 


Including an Id, now get's can be changed dinamically...

Example

Code: Select all  Expand view  RUN
  Get( 220 -8,180, "Sin Cambiar", undefined, 200, 30, 'g1' );
   
   ChangeGet( "g1", "Get Cambiado...!!!!" );
 


Supplying 'undefined', instead of oDlg, get's can be used in main window also....
=====>

Bayron Landaverry
(215)2226600 Philadelphia,PA, USA
+(502)46727275 Guatemala
MayaBuilders@gMail.com

FWH12.04||Harbour 3.2.0 (18754)||BCC6.5||UEstudio 10.10||
Windows 7 Ultimate

FiveWin, One line of code and it's done...
User avatar
Bayron
 
Posts: 815
Joined: Thu Dec 24, 2009 12:46 am
Location: Philadelphia, PA

Re: FiveWin Web Interface

Postby Bayron » Sun Dec 04, 2011 2:38 pm

Images are shown in IE and Chrome but not in FireFox....
Code: Select all  Expand view  RUN
  var image = document.createElement( "image" );
 

must be changed to:
Code: Select all  Expand view  RUN
  var image = document.createElement( "img" );
 
=====>

Bayron Landaverry
(215)2226600 Philadelphia,PA, USA
+(502)46727275 Guatemala
MayaBuilders@gMail.com

FWH12.04||Harbour 3.2.0 (18754)||BCC6.5||UEstudio 10.10||
Windows 7 Ultimate

FiveWin, One line of code and it's done...
User avatar
Bayron
 
Posts: 815
Joined: Thu Dec 24, 2009 12:46 am
Location: Philadelphia, PA

Re: FiveWin Web Interface

Postby cdmmaui » Sun Dec 04, 2011 2:53 pm

Hello Antonio,

I thought I'd check in to see if the FiveWin Web interface is on target for end of December. I have pending web projects and I would like to use the FiveWin Web interface.

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

PreviousNext

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot], MaxP, Natter and 77 guests