phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] phpgwapi/js/core popup.js,1.2


From: ceb
Subject: [Phpgroupware-cvs] phpgwapi/js/core popup.js,1.2
Date: Thu, 24 Feb 2005 15:54:51 -0000

Update of phpgwapi/js/core

Modified Files:
     Branch: MAIN
            popup.js lines: +32 -7

Log Message:
update

====================================================
Index: phpgwapi/js/core/popup.js
diff -u phpgwapi/js/core/popup.js:1.1 phpgwapi/js/core/popup.js:1.2
--- phpgwapi/js/core/popup.js:1.1       Thu Jan 27 01:55:09 2005
+++ phpgwapi/js/core/popup.js   Mon Feb  7 15:32:06 2005
@@ -1,13 +1,38 @@
+// $Id$

-       var width=800;
-       var height=600;
+function open_popup (url,ext_x,ext_y)
+{
+       leftpos = ((screen.width - ext_x)/2);
+       toppos = ((screen.height - ext_y - 20)/2);

-       function open_popup(link,width,height)
+       
win=window.open(url,"x","toolbar=no,location=no,explorer=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,left="+leftpos+",top="+toppos+",width="+ext_x+",height="+ext_y);
+
+       if ((navigator.appName == "Netscape" && parseInt(navigator.appVersion) 
>= 3) || (navigator.appName == "Microsoft Internet Explorer" && 
parseInt(navigator.appVersion) >= 4))
+       {
+               
//win.moveTo((screen.width/2)-(ext_x/2),(screen.height/2)-(ext_y/3));
+               win.focus();
+       }
+}
+
+function checkall(type)
+{
+       alert("halo");
+
+       for(var i=0;i<document.forms[0].length;++i)
        {
-               if(!width)
+               if(document.forms[0].elements[i].name == 'sichtbar[]')
                {
-                       width=800;
-                       height=600;
+                       alert("Elementname: " + 
document.forms[0].elements[i].name + ", Elementtyp: " + 
document.forms[0].elements[i].type);
                }
-               newWindow = window.open(link,'PopUp','width=' + width + 
',height=' + height + ',left=0,top=0,toolbar=no,scrollbar=yes,resizable=yes');
        }
+}
+
+var checkflag = "false";
+function check()
+{
+       //alert("hal");
+       //alert("hal" + document.forms[0].elements['sichtbar[]'].length);
+       for(var i=0;i<document.forms[0].elements['sichtbar[]'].length;i++)
+       alert(document.forms[0].elements['sichtbar[]',i].name);
+       // document.forms[0].elements['sichtbar[]'].checked=true;
+}






reply via email to

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