[pal-cvs 1967] CVS-Update: jstock/src/main/webapp/js committed by karma

Back to archive index

KATOH Yasufumi karma****@users*****
2007年 1月 10日 (水) 20:42:44 JST


Update of /cvsroot/pal/jstock/src/main/webapp/js
In directory sf-cvs:/tmp/cvs-serv12882/src/main/webapp/js

Modified Files:
	disabled.js ajax.js kumu.js 
Added Files:
	effect.js dhtml.js 
Log Message:
JStockAjax Portlet の株価情報表示を動的に行うようにした.

jstock/src/main/webapp/js/effect.js NONE -> 1.1 (added)
http://cvs.sourceforge.jp/cgi-bin/viewcvs.cgi/pal/jstock/src/main/webapp/js/effect.js?rev=1.1&content-type=text/vnd.viewcvs-markup
jstock/src/main/webapp/js/disabled.js 1.1 -> 1.2 (modified)
http://cvs.sourceforge.jp/cgi-bin/viewcvs.cgi/pal/jstock/src/main/webapp/js/disabled.js.diff?r1=1.1&r2=1.2
jstock/src/main/webapp/js/ajax.js 1.1 -> 1.2 (modified)
http://cvs.sourceforge.jp/cgi-bin/viewcvs.cgi/pal/jstock/src/main/webapp/js/ajax.js.diff?r1=1.1&r2=1.2
jstock/src/main/webapp/js/dhtml.js NONE -> 1.1 (added)
http://cvs.sourceforge.jp/cgi-bin/viewcvs.cgi/pal/jstock/src/main/webapp/js/dhtml.js?rev=1.1&content-type=text/vnd.viewcvs-markup
jstock/src/main/webapp/js/kumu.js 1.1 -> 1.2 (modified)
http://cvs.sourceforge.jp/cgi-bin/viewcvs.cgi/pal/jstock/src/main/webapp/js/kumu.js.diff?r1=1.1&r2=1.2

===================================================================
RCS file: jstock/src/main/webapp/js/disabled.js,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- disabled.js	2006/11/01 12:26:26	1.1
+++ disabled.js	2007/01/10 11:42:44	1.2
@@ -103,8 +103,8 @@
       if(DisabledConf.time){
         this.time = DisabledConf.time;
       }
-      if(DisabledConf.expectAnchor){
-        this.anchor = DisabledConf.expectAnchor;       
+      if(DisabledConf.excludeAnchor){
+        this.anchor = DisabledConf.excludeAnchor;       
       }
       if(DisabledConf.submitMessage){
         this.submitMessage = DisabledConf.submitMessage;       
@@ -112,8 +112,8 @@
       if(DisabledConf.anchorMessage){
         this.anchorMessage = DisabledConf.anchorMessage;       
       }
-      if(DisabledConf.expectForm){
-        var ids  = DisabledConf.expectForm;
+      if(DisabledConf.excludeForm){
+        var ids  = DisabledConf.excludeForm;
         forms = Kumu.filter(function(f){
           if(f.id){
             for(var i = 0; i < ids.length; i++){

===================================================================
RCS file: jstock/src/main/webapp/js/ajax.js,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ajax.js	2006/11/01 12:26:26	1.1
+++ ajax.js	2007/01/10 11:42:44	1.2
@@ -45,6 +45,8 @@
   ),
   
   URL : 'teeda.ajax',
+  
+  ASYNC : true,
 
   DEBUG : false,
 
@@ -57,6 +59,7 @@
     this.name = self.AJAX_COMPONENT_NAME;
     this.responseType = null;
     this.url = self.URL;
+    this.async = self.ASYNC;
     this.params = null;
     this.doAction = function(ajaxResponse){}
   },
@@ -135,6 +138,7 @@
     }
     var sysdate = new String(new Date());
     var url = ajaxComponent.url;
+    var async = ajaxComponent.async;
     var parameters = "";
     var params = ajaxComponent.params;
     if(!params){
@@ -158,7 +162,7 @@
       url += parameters;
       if(xmlHttp){
         self._registAjaxListener(xmlHttp, ajaxComponent);
-        xmlHttp.open("GET", url, true);
+        xmlHttp.open("GET", url, async);
         xmlHttp.setRequestHeader("If-Modified-Since", sysdate);
         xmlHttp.send(null);
       }
@@ -173,7 +177,7 @@
       }
       if(xmlHttp){
         self._registAjaxListener(xmlHttp, ajaxComponent);
-        xmlHttp.open("POST", url, true);
+        xmlHttp.open("POST", url, async);
         xmlHttp.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
         xmlHttp.setRequestHeader("If-Modified-Since", sysdate);
         xmlHttp.send(parameters);

===================================================================
RCS file: jstock/src/main/webapp/js/kumu.js,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- kumu.js	2006/11/01 12:26:26	1.1
+++ kumu.js	2007/01/10 11:42:44	1.2
@@ -138,12 +138,35 @@
             arr.push(arg[j]);
           }
         }else{
-          arr.push[arg];
+          arr.push(arg);
         }
       }
     }
     return arr;
   },
+  
+  keys : function(obj){
+    var result = [];
+    for(var v in obj){
+      result.push(v);
+    }
+    return result;
+  },
+
+  items : function(obj){
+    var result = [];
+    var e;
+    for(var k in obj){
+      var v;
+      try{
+        v = obj[k];
+      } catch(e){
+        continue;
+      }
+      result.push([k, v]);
+    }
+    return result;
+  },
 
   shift : function(list) {
     if(!list){
@@ -213,7 +236,18 @@
     var tmp = Kumu.ltrim(str);
     return Kumu.rtrim(tmp);
   },
-  
+ 
+  camelize : function(str){
+    if(!str){
+      str = this;
+    }
+    return str.replace(/-([a-z])/g,
+      function($0,$1){
+        return $1.toUpperCase()
+      }
+    );
+  },
+
   create: function() {
     return function() {
       if(this.initialize){ 
@@ -414,7 +448,8 @@
 String.prototype = Kumu.extend(String.prototype,{
   ltrim : Kumu.ltrim,
   rtrim : Kumu.rtrim,
-  trim : Kumu.trim
+  trim : Kumu.trim,
+  camelize : Kumu.camelize
 });
 
 Function.prototype.getName = function() {



pal-cvs メーリングリストの案内
Back to archive index