Changeset 17019 for lang/actionscript
- Timestamp:
- 08/03/08 15:53:48 (4 months ago)
- Location:
- lang/actionscript/todoshare
- Files:
-
- 2 added
- 5 modified
-
ajaxButtonTest.html (added)
-
index.cgi (modified) (1 diff)
-
js/common.js (modified) (1 diff)
-
js/gui.js (added)
-
js/jsonScr.js (modified) (2 diffs)
-
js/tag.js (modified) (1 diff)
-
netacho.html (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/actionscript/todoshare/index.cgi
r16713 r17019 24 24 link("todoJS.cgi","Todo(JS)"), 25 25 link("nohada.cgi","のはだ"), 26 link("netacho.html","ネタ帳"), 26 27 link("swkText.cgi","SWK(Text Mode)"), 27 28 link("DBConsoleFlash.html","SWK(Flash Mode)"), -
lang/actionscript/todoshare/js/common.js
r17005 r17019 15 15 } 16 16 }); 17 } 18 function isArray(o) { 19 return o instanceof Array; 20 } 21 function isFunc(o) { 22 return o instanceof Function; 23 } 24 function isHash(e) { 25 return typeof(e)=="object" && !isFunc(e) && !isArray(e); 17 26 } 18 27 function dbPut(query,after) { -
lang/actionscript/todoshare/js/jsonScr.js
r17006 r17019 54 54 return isFunc(o) && o.async; 55 55 } 56 function isArray(o) { 57 return o instanceof Array; 58 } 59 function isFunc(o) { 60 return o instanceof Function; 61 } 56 62 57 function isObj(o) { 63 58 return typeof(o)=="object"; 64 59 } 65 function isHash(e) { 66 return isObj(e) && !isFunc(e) && !isArray(e); 67 } 60 68 61 // compilePrimitive :: value -> (this->void) -> (this->void) 69 62 function compilePrimitive(value,next) { … … 146 139 } 147 140 function gv(name) { 148 return function () {return this[name];}; 149 print ("gv ",name," ",this[name]," ",this.flag); 150 this._=this[name]; 151 print ("gvres ",this._); 152 return this._; 141 return [ 142 function () {return this[name];} 143 ]; 153 144 } 154 145 function traceCall(t,args) { -
lang/actionscript/todoshare/js/tag.js
r17005 r17019 44 44 target.addEventListener(i.substring(2).toLowerCase(),o[i],false); 45 45 } else { 46 target.attachEvent(i ,o[i]);46 target.attachEvent(i.toLowerCase(),o[i]); 47 47 } 48 48 } else { -
lang/actionscript/todoshare/netacho.html
r17007 r17019 7 7 <script src="js/jsonScr.js"></script> 8 8 <script src="js/tag.js"></script> 9 <script src="js/gui.js"></script> 9 10 <script> 10 11 except=function(e) { print("Error - ",e); }; … … 12 13 function addn() { 13 14 print ("Addn neta"); 14 var qo={"class":"Neta", content:$("neta").value}; 15 // class: IE regards as reserved word 16 var qo={category:"Neta", content:$("neta").value}; 15 17 var holder=printNeta(qo.content); 16 18 progn([dbPut,qo], … … 26 28 //print ("Add neta ",qo,qo.content); 27 29 holder.innerHTML=""; 28 var del= compile(30 var del=[ 29 31 [dbDel, qo.id], 30 32 [rmHolder,holder] 31 );33 ]; 32 34 elem(holder,[ 33 35 "span", 34 36 " id= ", qo.id , 35 37 " content= ", qo.content , 36 [ "button",{onClick: del},"削除"],["br"]38 [abutton,{onClick: del},"削除"],["br"] 37 39 ]); 38 40 } … … 43 45 } 44 46 function listAll() { 45 var qo={ "class":"Neta", content:["*"]};47 var qo={category:"Neta", content:["*"]}; 46 48 var c=compile( 47 49 [dbGet,qo], 48 50 [each,function (neta) { 49 print (neta);50 //var holder=printNeta("");51 //neta1(holder,neta);51 // print (neta); 52 var holder=printNeta(""); 53 neta1(holder,neta); 52 54 }] 53 55 ); … … 60 62 </head> 61 63 <body onload="listAll()"> 62 <input type=text id=neta length=50>64 <input type=text id=neta size=50> 63 65 <button onClick="addn()">Add</Button><HR> 64 <span id="list"></span><BR> 66 <span id="list"></span> 67 <HR> 68 <a href="./">Home</a><BR> 65 69 <span id="console"></span> 66 70 </body>
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)