commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnue] r6920 - trunk/gnue-appserver/extensions/webfrontend


From: jan
Subject: [gnue] r6920 - trunk/gnue-appserver/extensions/webfrontend
Date: Mon, 24 Jan 2005 17:23:46 -0600 (CST)

Author: jan
Date: 2005-01-24 17:23:45 -0600 (Mon, 24 Jan 2005)
New Revision: 6920

Modified:
   trunk/gnue-appserver/extensions/webfrontend/classrepository.html
   trunk/gnue-appserver/extensions/webfrontend/gnue-forms.js
   trunk/gnue-appserver/extensions/webfrontend/vcXMLRPC.js
Log:
Fix classrepository.html and make switching between blocks a bit better
fix vcXMLRPC.js


Modified: trunk/gnue-appserver/extensions/webfrontend/classrepository.html
===================================================================
--- trunk/gnue-appserver/extensions/webfrontend/classrepository.html    
2005-01-24 10:48:21 UTC (rev 6919)
+++ trunk/gnue-appserver/extensions/webfrontend/classrepository.html    
2005-01-24 23:23:45 UTC (rev 6920)
@@ -292,46 +292,80 @@
 ��<img src="images/rollback-24x24.png" name="rollback" alt="Rollback" 
onclick="getForm().rollback();;">
 ��<img src="images/about-24x24.png" name="help" alt="About" 
onclick="getForm().about();;">
 ��<img src="images/exit-24x24.png" name="close" alt="" 
onclick="getForm().close();;">
-</DIV><DIV STYLE="position:absolute; top: 60px;left: 5px;
+</DIV>
+
+<DIV STYLE="position:absolute; top: 60px;left: 5px;
 width: 180px;height: 30px;border-width: 1px;border-style: 
solid;background-color:#EEEEEE;"
 align="center" onclick="getForm().gotoPage('Page1');">
-Page1</DIV><DIV STYLE="position:absolute; top: 90px;left: 5px;
-width: 1320px;height: 360px;border-width: 1px;border-style: 
solid;background-color:#EEEEEE;" align="center">
-�</DIV><DIV id="Page1_page">  <!-- Label lblGnueComment -->
-  <DIV STYLE="position:absolute; top: 150px;left: 35px;width: 45px;height: 
25px;font-size: 15px;line-height: 30px" id="lblGnueComment_label">Id:</DIV>
+Page1</DIV>
 
 
+<DIV STYLE="position:absolute; top: 90px;left: 5px;
+width: 1320px;height: 360px;border-width: 1px;
+border-style: solid;background-color:#EEEEEE;" align="center">
+ �</DIV>
+
+<DIV id="Page1_page">  <!-- Label lblGnueComment -->
+
+  <!-- Box Box14 -->
+  <div STYLE="position:absolute; top: 90px;left: 5px;width: 675px;height: 
175px;font-size: 13px;border-width: 1px; border-style: solid;" 
id="Box14_box">GNUe Modules</div>
+  <!-- Box Box17 -->
+  <div STYLE="position:absolute; top: 270px;left: 5px;width: 675px;height: 
175px;font-size: 13px;border-width: 1px; border-style: solid;" 
id="Box17_box">GNUe Classes</div>
+
+  <!-- Box Box1 -->
+  <div STYLE="position:absolute; top: 90px;left: 695px;width: 660px;height: 
265px;font-size: 13px;border-width: 1px; border-style: solid;" 
id="Box1_box">GNUe Properties</div>
+</DIV>
+
+<DIV STYLE="position:absolute; top: 150px;left: 35px;width: 45px;height: 25px;
+font-size: 15px;line-height: 30px" id="lblGnueComment_label">Id:</DIV>
+
+
   <!-- Entry entGnueId -->
-  <input type="text" name="entGnueId" id="blkGnue_module_fldMGnueId_field" 
onfocus="getForm().gotoBlock('blkGnue_module');"
-STYLE="position:absolute; top: 150px;left: 170px;width: 480px;height: 
25px;font-size: 13px;"value="">
+  <input type="text" name="entGnueId" id="blkGnue_module_fldMGnueId_field"
+     onfocus="getForm().gotoBlock('blkGnue_module');return true;"
+     ondd="getForm().gotoBlock('blkGnue_module');return true;"
+
+STYLE="position:absolute; top: 150px;left: 170px;width: 480px;height: 25px;
+       font-size: 13px;"value="">
+
   <!-- Label lblGnueComment -->
-  <DIV STYLE="position:absolute; top: 180px;left: 35px;width: 75px;height: 
25px;font-size: 15px;line-height: 30px" id="lblGnueComment_label">Name:</DIV>
+  <DIV STYLE="position:absolute; top: 180px;left: 35px;width: 75px;height: 
25px;
+font-size: 15px;line-height: 30px" id="lblGnueComment_label">Name:</DIV>
 
 
   <!-- Entry entGnueName -->
-  <input type="text" name="entGnueName" id="blkGnue_module_fldMGnueName_field" 
onfocus="getForm().gotoBlock('blkGnue_module');"
-STYLE="position:absolute; top: 180px;left: 170px;width: 480px;height: 
25px;font-size: 13px;"value="">
+  <input type="text" name="entGnueName" id="blkGnue_module_fldMGnueName_field"
+  onfocus="getForm().gotoBlock('blkGnue_module');"
+STYLE="position:absolute; top: 180px;left: 170px;width: 480px;height: 25px;
+       font-size: 13px;background: #fBfBfB;"value="">
   <!-- Label lblGnueComment -->
-  <DIV STYLE="position:absolute; top: 210px;left: 35px;width: 120px;height: 
25px;font-size: 15px;line-height: 30px" id="lblGnueComment_label">Comment:</DIV>
+  <DIV STYLE="position:absolute; top: 210px;left: 35px;width: 120px;height: 
25px;
+font-size: 15px;line-height: 30px" id="lblGnueComment_label">Comment:</DIV>
 
 
   <!-- Entry entGnueComment -->
-  <input type="text" name="entGnueComment" 
id="blkGnue_module_fldMGnueComment_field" 
onfocus="getForm().gotoBlock('blkGnue_module');"
-STYLE="position:absolute; top: 210px;left: 170px;width: 480px;height: 
25px;font-size: 13px;"value="">
+  <input type="text" name="entGnueComment" 
id="blkGnue_module_fldMGnueComment_field"
+onfocus="getForm().gotoBlock('blkGnue_module');"
+STYLE="position:absolute; top: 210px;left: 170px;width: 480px;height: 25px;
+background: #fBfBfB;font-size: 13px;"value="">
   <!-- Label lblGnueModule3 -->
-  <DIV STYLE="position:absolute; top: 330px;left: 35px;width: 45px;height: 
25px;font-size: 15px;line-height: 30px" id="lblGnueModule3_label">Id:</DIV>
+  <DIV STYLE="position:absolute; top: 330px;left: 35px;width: 45px;height: 
25px;
+font-size: 15px;line-height: 30px" id="lblGnueModule3_label">Id:</DIV>
 
 
   <!-- Entry entGnueModule -->
-  <input type="text" name="entGnueModule" id="blkGnue_class_fldCGnueId_field" 
onfocus="getForm().gotoBlock('blkGnue_class');"
-STYLE="position:absolute; top: 330px;left: 170px;width: 480px;height: 
25px;font-size: 13px;"value="">
+  <input type="text" name="entGnueModule" id="blkGnue_class_fldCGnueId_field"
+onfocus="getForm().gotoBlock('blkGnue_class');"
+STYLE="position:absolute; top: 330px;left: 170px;width: 480px;height: 25px;
+       background: #fBfBfB;font-size: 13px;"value="">
   <!-- Label lblGnueModule1 -->
   <DIV STYLE="position:absolute; top: 360px;left: 35px;width: 75px;height: 
25px;font-size: 15px;line-height: 30px" id="lblGnueModule1_label">Name:</DIV>
 
 
   <!-- Entry entGnueName -->
-  <input type="text" name="entGnueName" id="blkGnue_class_fldCGnueName_field" 
onfocus="getForm().gotoBlock('blkGnue_class');"
-STYLE="position:absolute; top: 360px;left: 170px;width: 480px;height: 
25px;font-size: 13px;"value="">
+  <input type="text" name="entGnueName" id="blkGnue_class_fldCGnueName_field"
+         onfocus="getForm().gotoBlock('blkGnue_class');"
+STYLE="position:absolute; top: 360px;left: 170px;width: 480px;height: 
25px;font-size: 13px;background: #fBfBfB;"value="">
   <!-- Label lblGnueModule2 -->
   <DIV STYLE="position:absolute; top: 390px;left: 35px;width: 120px;height: 
25px;font-size: 15px;line-height: 30px" id="lblGnueModule2_label">Comment:</DIV>
 
@@ -350,25 +384,21 @@
 
   <!-- Entry entGnueComment -->
   <input type="text" name="entGnueComment" 
id="blkGnue_class_fldCGnueComment_field" 
onfocus="getForm().gotoBlock('blkGnue_class');"
-STYLE="position:absolute; top: 390px;left: 170px;width: 480px;height: 
25px;font-size: 13px;"value="">
-  <!-- Box Box14 -->
-  <div STYLE="position:absolute; top: 90px;left: 5px;width: 675px;height: 
175px;font-size: 13px;border-width: 1px; border-style: solid;" 
id="Box14_box">GNUe Modules</div>
-  <!-- Box Box17 -->
-  <div STYLE="position:absolute; top: 270px;left: 5px;width: 675px;height: 
175px;font-size: 13px;border-width: 1px; border-style: solid;" 
id="Box17_box">GNUe Classes</div>
+STYLE="position:absolute; top: 390px;left: 170px;width: 480px;height: 
25px;font-size: 13px;background: #fBfBfB;"value="">
   <!-- Label lblGnue_id -->
   <DIV STYLE="position:absolute; top: 150px;left: 710px;width: 45px;height: 
25px;font-size: 15px;line-height: 30px" id="lblGnue_id_label">Id:</DIV>
 
 
   <!-- Entry ntryGnue_id -->
   <input type="text" name="ntryGnue_id" id="blkGnue_property_fldGnue_id_field" 
onfocus="getForm().gotoBlock('blkGnue_property');"
-STYLE="position:absolute; top: 150px;left: 860px;width: 450px;height: 
25px;font-size: 13px;"value="">
+STYLE="position:absolute; top: 150px;left: 860px;width: 450px;height: 
25px;font-size: 13px;background: #fBfBfB;"value="">
   <!-- Label lblGnue_name -->
   <DIV STYLE="position:absolute; top: 180px;left: 710px;width: 75px;height: 
25px;font-size: 15px;line-height: 30px" id="lblGnue_name_label">Name:</DIV>
 
 
   <!-- Entry ntryGnue_name -->
   <input type="text" name="ntryGnue_name" 
id="blkGnue_property_fldGnue_name_field" 
onfocus="getForm().gotoBlock('blkGnue_property');"
-STYLE="position:absolute; top: 180px;left: 860px;width: 450px;height: 
25px;font-size: 13px;"value="">
+STYLE="position:absolute; top: 180px;left: 860px;width: 450px;height: 
25px;font-size: 13px;background: #fBfBfB;"value="">
   <!-- Label lblGnue_type -->
   <DIV STYLE="position:absolute; top: 210px;left: 710px;width: 75px;height: 
25px;font-size: 15px;line-height: 30px" id="lblGnue_type_label">Type:</DIV>
 
@@ -397,9 +427,8 @@
   <!-- Entry ntryGnue_comment -->
   <input type="text" name="ntryGnue_comment" 
id="blkGnue_property_fldGnue_comment_field" 
onfocus="getForm().gotoBlock('blkGnue_property');"
 STYLE="position:absolute; top: 300px;left: 860px;width: 450px;height: 
25px;font-size: 13px;"value="">
-  <!-- Box Box1 -->
-  <div STYLE="position:absolute; top: 90px;left: 695px;width: 660px;height: 
265px;font-size: 13px;border-width: 1px; border-style: solid;" 
id="Box1_box">GNUe Properties</div>
-</DIV>
+
+
 <DIV STYLE="position:absolute; top: 530px;left: 395px;width: 
540px;border-width: 1px; border-style: solid;background-color:#EEEEEE;" 
align="right">
      <div id="status" style="display:inline"></div>�|�
      <div id="pos" style="display:inline"></div>�|�

Modified: trunk/gnue-appserver/extensions/webfrontend/gnue-forms.js
===================================================================
--- trunk/gnue-appserver/extensions/webfrontend/gnue-forms.js   2005-01-24 
10:48:21 UTC (rev 6919)
+++ trunk/gnue-appserver/extensions/webfrontend/gnue-forms.js   2005-01-24 
23:23:45 UTC (rev 6920)
@@ -839,18 +839,22 @@
     };
     setStatus("Active Block: "+blockname+" (Last Block: "+ 
this.cur_block.name+ ")");
     this.cur_block.getState();
+    this.cur_block.deactivateFields();
     for (ik in this.blocks) {
       if (this.blocks[ik].name==blockname) {
        this.cur_block=this.blocks[ik];
        break;
       }
     }
+    this.cur_block.activateFields();
     this.cur_block.showState();
     return true;
   }
   this.gotoPage = function (pgname) {
     //    this.cur_block.update();
     //    this.cur_page.update();    
+    // TODO: activate Block
+    this.cur_block.deactivateFields();
     pgno=-1;
     for (pi in this._pages) {
       if (pi!="toXMLRPC") {
@@ -864,6 +868,7 @@
       this._pages[pgno].setVisible('visible'); 
       this.cur_page=this._pages[pgno];
     }
+    this.cur_block.activateFields();
   }
   this.newrec = function () {
     this.cur_block.newrec();
@@ -1185,8 +1190,28 @@
        getObjById("status").innerHTML="&nbsp;&nbsp;&nbsp;";
       }
     }
-  }
+  };
 
+  // grey out fields to make it obvious the block is disabled
+  this.deactivateFields=function() {
+    for (fname in this.fields) {
+      if (fname!="toXMLRPC") {      
+       getObjById(this.name+"_"+this.fields[fname]
+                  +"_field").style.background="#fbfbfb";
+      }
+    }
+  };
+
+  // grey out fields to make it obvious the block is disabled
+  this.activateFields=function() {
+    for (fname in this.fields) {
+      if (fname!="toXMLRPC") {      
+       getObjById(this.name+"_"+this.fields[fname]
+                  +"_field").style.background="#ffffff";
+      }
+    }
+  };
+
   // MASTER DETAIL STUFF
   this.updateDetailDts = function() {
     if (this.detailB.length==0) return;

Modified: trunk/gnue-appserver/extensions/webfrontend/vcXMLRPC.js
===================================================================
--- trunk/gnue-appserver/extensions/webfrontend/vcXMLRPC.js     2005-01-24 
10:48:21 UTC (rev 6919)
+++ trunk/gnue-appserver/extensions/webfrontend/vcXMLRPC.js     2005-01-24 
23:23:45 UTC (rev 6920)
@@ -627,7 +627,12 @@
 
 isIE = (ver.indexOf("MSIE 5") != -1 || ver.indexOf("MSIE 6") != -1) ? 1 : 0;
 isIE55 = (ver.indexOf("MSIE 5.5") != -1) ? 1 : 0;
-isKonqueror
 isOTHER = (!isNS && !isIE) ? 1 : 0;
 
-if(isOTHER) alert("Sorry your browser doesn't support the features of 
vcXMLRPC");
+// if isKonqueror and version> 3.2 then OK
+try{ x = new XMLHttpRequest()
+       isNS=true;
+}
+catch(e){
+ alert("Sorry your browser doesn't support the features of vcXMLRPC");
+               }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]