You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(17) |
Nov
(47) |
Dec
(1) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(44) |
Feb
(8) |
Mar
|
Apr
(26) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2003 |
Jan
|
Feb
(1) |
Mar
(44) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(13) |
Sep
(2) |
Oct
|
Nov
|
Dec
|
From: Raymond I. <xw...@us...> - 2003-03-05 04:40:04
|
Update of /cvsroot/dynapi/dynapi3x/src/api/ext In directory sc8-pr-cvs1:/tmp/cvs-serv31226 Removed Files: dynlayer_inline.js Log Message: removed by raymond --- dynlayer_inline.js DELETED --- |
From: Raymond I. <xw...@us...> - 2003-03-05 04:37:27
|
Update of /cvsroot/dynapi/dynapi3x/src/api/ext In directory sc8-pr-cvs1:/tmp/cvs-serv30596/src/api/ext Modified Files: dragevent.js Added Files: dynlayer.inline.js Log Message: Fixed for ns4 and dynlayer_inline by Benoit --- NEW FILE --- var DynLayerInline = {}; DynLayer.getInline = function (id, p) { var elm; var pobj; if (!p) pobj = dynapi.document; else if (p.isClass && p.isClass('DynElement')) pobj = p; if (pobj) { if (dynapi.ua.ns4) elm = pobj.doc.layers[id]; else if (dynapi.ua.ns6) elm = pobj.doc.getElementsByID(id); else if (dynapi.ua.ie) elm = pobj.doc.all[id]; } if (!elm) return alert("DynLayer_inline Error: did not find element "+id); var dlyr = new DynLayer(); dlyr.setID(id); dlyr.parent = pobj; dlyr.elm = elm; if (dynapi.ua.ns4) dlyr.doc = elm.document; DynLayer._updateValues(dlyr); DynLayer._assignElement(dlyr,elm); DynElement._flagEvent(dlyr,'create'); return dlyr; }; DynLayer.prototype._createInline = function () { if (this.parent && !this.elm) { var ch=this.children; DynLayer._assignElement(this); DynLayer._updateValues(this); for (var i=0;i<ch.length;i++) DynLayer._updateValues(ch[i]); DynElement._flagEvent(this,'create'); } }; DynLayer._updateValues = function(dlyr) { if (dynapi.ua.def) { if (dynapi.ua.ie) { var css = dlyr.elm.currentStyle; dlyr.x = parseInt(css.left); dlyr.y = parseInt(css.top); dlyr.w = dynapi.ua.ie4? css.pixelWidth : dlyr.elm.offsetWidth; dlyr.h = dynapi.ua.ie4? css.pixelHeight : dlyr.elm.offsetHeight; dlyr.bgImage = css.backgroundImage; dlyr.bgColor = css.backgroundColor; dlyr.html = dlyr.elm.innerHTML; } else if (dynapi.ua.dom) { var css = dlyr.elm.currentStyle; dlyr.x = parseInt(dlyr.elm.offsetLeft); dlyr.y = parseInt(dlyr.elm.offsetTop); dlyr.w= dlyr.elm.offsetWidth; dlyr.h= dlyr.elm.offsetHeight; dlyr.bgImage = css.backgroundImage; dlyr.bgColor = css.backgroundColor; dlyr.html = dlyr.elm.innerHTML; } } else if (dynapi.ua.ns4) { var css = dlyr.elm; dlyr.x = parseInt(css.left); dlyr.y = parseInt(css.top); dlyr.w = css.clip.width; dlyr.h = css.clip.height; dlyr.clip = [css.clip.top,css.clip.right,css.clip.bottom,css.clip.left]; dlyr.bgColor = dlyr.doc.bgColor!=''? dlyr.doc.bgColor : null; dlyr.bgImage = css.background.src!=''? css.background.src : null; dlyr.html = ''; } dlyr.z = css.zIndex; var b = css.visibility; dlyr.visible = (b=="inherit" || b=="show" || b=="visible" || b==""); }; Index: dragevent.js =================================================================== RCS file: /cvsroot/dynapi/dynapi3x/src/api/ext/dragevent.js,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** dragevent.js 25 Feb 2003 21:38:12 -0000 1.2 --- dragevent.js 5 Mar 2003 04:37:24 -0000 1.3 *************** *** 54,57 **** --- 54,60 ---- de.isDragging = true; + e.preventDefault(); + e.preventBubble(); + //dlyr._dyndoc.addEventListener(DragEvent.docListener); |
From: Raymond I. <xw...@us...> - 2003-03-05 04:36:26
|
Update of /cvsroot/dynapi/dynapi3x/docs In directory sc8-pr-cvs1:/tmp/cvs-serv30194/docs Modified Files: index.html Log Message: uploaded by raymond (with changes made by Benoit) Index: index.html =================================================================== RCS file: /cvsroot/dynapi/dynapi3x/docs/index.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** index.html 16 Feb 2003 04:17:42 -0000 1.2 --- index.html 5 Mar 2003 04:36:17 -0000 1.3 *************** *** 19,22 **** --- 19,24 ---- <td valign="middle"><a href="docs/requirements.html"><img border="0" src="images/ie.gif" width="32" height="32" alt="IE4+"></a></td> <td><a href="docs/requirements.html"><img border="0" src="images/opera.gif" alt="Opera 7+" width="33" height="33"></a></td> + <td><a href="docs/requirements.html"><img border="0" src="images/safari.gif" alt="Safari" width="32" height="32"></a></td> + <td><a href="docs/requirements.html"><img border="0" src="images/konqueror.gif" alt="Konqueror 3.0" width="32" height="32"></a></td> <td><a href="docs/requirements.html"><img border="0" src="images/moz.gif" alt="Mozilla" width="32" height="32"></a></td> <td><a href="docs/requirements.html"><img border="0" src="images/phoenix.gif" alt="Phoenix" width="32" height="32"></a></td> |
From: Raymond I. <xw...@us...> - 2003-03-05 04:36:25
|
Update of /cvsroot/dynapi/dynapi3x/src/fx In directory sc8-pr-cvs1:/tmp/cvs-serv30194/src/fx Modified Files: bezier.js circleanim.js hoveranim.js slideanim.js Added Files: fader.js Log Message: uploaded by raymond (with changes made by Benoit) --- NEW FILE --- /* DynAPI Distribution Fader Class The DynAPI Distribution is distributed under the terms of the GNU LGPL license. requires: DynLayer */ DynLayer.prototype._fadeMode = ''; DynLayer.prototype.fadeIn = function(){ this._opacity=0; this.setVisible(false); this._fadeMode='in'; this.fadeTo(100,4); }; DynLayer.prototype.fadeOut = function(){ this._opacity=100; this._fadeMode='out'; this.fadeTo(0,4); }; // Fades an object to "opacity" by "inc" increments in every "ms" millisenconds DynLayer.prototype.fadeTo = function(opacity,inc,ms){ if(this._opacity==null) this._opacity=100; inc=(inc)? Math.abs(inc):5; this._fadeMs=(ms)? ms:50; if (this._opacity>opacity) inc*=-1; this._fadeInc=inc; this._fadeToOpacity = opacity; this._fadeTimeout=window.setTimeout(this+'._fade()',this._fadeMs); }; DynLayer.prototype._fade = function(){ var ua=dynapi.ua; var fm=this._fadeMode; var inc = this._fadeInc; var opac = this._opacity; var fopac = this._fadeToOpacity; opac+=inc; if ((inc<0 && opac<=fopac)|| (inc>0 && opac>=fopac)) opac=fopac; this._opacity=opac; if(!ua.def) this.setVisible((opac>0)? true:false); else if(ua.dom && this.css){ if(ua.ie) this.css.filter='alpha(opacity=' + opac + ')'; else this.css.MozOpacity = parseInt(opac) +'%'; } if(!ua.ns4 && opac>1 && this.visible==false) this.setVisible(true); if(opac!=fopac) this._fadeTimeout=window.setTimeout(this+'._fade()',this._fadeMs); else { this._fadeMode=''; window.clearTimeout(this._fadeTimeout); this.invokeEvent('fade'+fm); } }; Index: bezier.js =================================================================== RCS file: /cvsroot/dynapi/dynapi3x/src/fx/bezier.js,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -r1.1.1.1 -r1.2 *** bezier.js 10 Feb 2003 22:35:57 -0000 1.1.1.1 --- bezier.js 5 Mar 2003 04:36:15 -0000 1.2 *************** *** 1,3 **** ! // Bezier Algorithm Reference: http://astronomy.swin.edu.au/~pbourke/curves/bezier/ function Bezier(cp, n) { --- 1,13 ---- ! /* ! DynAPI Distribution ! Bezier Class ! ! Bezier Algorithm Reference: http://astronomy.swin.edu.au/~pbourke/curves/bezier/ ! ! The DynAPI Distribution is distributed under the terms of the GNU LGPL license. ! ! requires: dynapi.fx.Thread ! */ ! function Bezier(cp, n) { Index: circleanim.js =================================================================== RCS file: /cvsroot/dynapi/dynapi3x/src/fx/circleanim.js,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** circleanim.js 19 Feb 2003 03:44:31 -0000 1.2 --- circleanim.js 5 Mar 2003 04:36:16 -0000 1.3 *************** *** 5,9 **** The DynAPI Distribution is distributed under the terms of the GNU LGPL license. ! requires: PathAnimation */ --- 5,9 ---- The DynAPI Distribution is distributed under the terms of the GNU LGPL license. ! requires: dynapi.functions.Math,dynapi.fx.Thread */ *************** *** 21,25 **** this.angle = 0; this.setAngleIncrement(10); ! } var p = dynapi.setPrototype('CircleAnimation','Thread'); p.setRadius = function (r) { --- 21,25 ---- this.angle = 0; this.setAngleIncrement(10); ! }; var p = dynapi.setPrototype('CircleAnimation','Thread'); p.setRadius = function (r) { Index: hoveranim.js =================================================================== RCS file: /cvsroot/dynapi/dynapi3x/src/fx/hoveranim.js,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** hoveranim.js 19 Feb 2003 03:44:31 -0000 1.2 --- hoveranim.js 5 Mar 2003 04:36:16 -0000 1.3 *************** *** 5,9 **** The DynAPI Distribution is distributed under the terms of the GNU LGPL license. ! requires: PathAnimation */ --- 5,9 ---- The DynAPI Distribution is distributed under the terms of the GNU LGPL license. ! requires: dynapi.functions.Math, dynapi.fx.Thread */ *************** *** 21,25 **** this.angle = 0; this.setAngleIncrement(10); ! } var p = dynapi.setPrototype('HoverAnimation','Thread'); p.setAmplitude = function (amp) { --- 21,25 ---- this.angle = 0; this.setAngleIncrement(10); ! }; var p = dynapi.setPrototype('HoverAnimation','Thread'); p.setAmplitude = function (amp) { Index: slideanim.js =================================================================== RCS file: /cvsroot/dynapi/dynapi3x/src/fx/slideanim.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** slideanim.js 21 Feb 2003 12:22:38 -0000 1.1 --- slideanim.js 5 Mar 2003 04:36:16 -0000 1.2 *************** *** 5,9 **** The DynAPI Distribution is distributed under the terms of the GNU LGPL license. ! requires: dynapi.functions.Thread */ --- 5,9 ---- The DynAPI Distribution is distributed under the terms of the GNU LGPL license. ! requires: dynapi.fx.Thread */ |
From: Raymond I. <xw...@us...> - 2003-03-05 04:36:24
|
Update of /cvsroot/dynapi/dynapi3x/src/api In directory sc8-pr-cvs1:/tmp/cvs-serv30194/src/api Modified Files: dyndocument.js dynlayer_dom.js dynlayer_ie.js dynlayer_ns4.js dynlayer_opera.js event.js Log Message: uploaded by raymond (with changes made by Benoit) Index: dyndocument.js =================================================================== RCS file: /cvsroot/dynapi/dynapi3x/src/api/dyndocument.js,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** dyndocument.js 25 Feb 2003 21:45:16 -0000 1.3 --- dyndocument.js 5 Mar 2003 04:36:16 -0000 1.4 *************** *** 61,65 **** }; p.insertChild = function(c) { ! if (c.parent == this) { DynElement._flagEvent(c,'precreate'); this.doc.write(c.getOuterHTML()); --- 61,65 ---- }; p.insertChild = function(c) { ! if (c && !c.isInline && c.parent == this) { DynElement._flagEvent(c,'precreate'); this.doc.write(c.getOuterHTML()); *************** *** 68,77 **** }; p.insertAllChildren = function() { ! var c,str =['']; ! for (var i=0;i<this.children.length;i++) { ! c = this.children[i]; ! DynElement._flagEvent(c,'precreate'); ! str[str.length]=c.getOuterHTML(); ! c._inserted = true; } this.doc.write(str.join('\n')); --- 68,80 ---- }; p.insertAllChildren = function() { ! var i,c,str =['']; ! var ch=this.children; ! for(i=0;i<ch.length;i++) { ! c = ch[i]; ! if(!c.isInline){ ! DynElement._flagEvent(c,'precreate'); ! str[i]=c.getOuterHTML(); ! c._inserted = true; ! } } this.doc.write(str.join('\n')); *************** *** 79,84 **** }; p._create = function() { this._created = true; ! if (dynapi.ua.ns4) { this.css = this.doc; this.elm = this.doc; --- 82,88 ---- }; p._create = function() { + var ua=dynapi.ua; this._created = true; ! if (ua.ns4) { this.css = this.doc; this.elm = this.doc; *************** *** 87,91 **** this.elm = this.frame.document.body; this.css = this.frame.document.body.style; ! if (dynapi.ua.ie) { this._overflow = this.css.overflow || ''; } --- 91,95 ---- this.elm = this.frame.document.body; this.css = this.frame.document.body.style; ! if (ua.ie) { this._overflow = this.css.overflow || ''; } *************** *** 95,108 **** this.doc._dynobj = this; // DynKeyEvent needs this! this.findDimensions(); ! for (var i=0;i<this.children.length;i++) { ! if (this.children[i]._inserted) { ! DynLayer._assignElement(this.children[i]); ! DynElement._flagEvent(this.children[i],'create'); } - else this.children[i]._create(); } this._updateAnchors(); ! if(dynapi.ua.ie && this._textSelectable==false) this.doc.onselectstart = dynapi.functions.Deny; if (this.captureMouseEvents) this.captureMouseEvents(); --- 99,126 ---- this.doc._dynobj = this; // DynKeyEvent needs this! this.findDimensions(); ! ! var divs; ! // create divs object - speeds up DOM browsers on win32. Linux & Mac? ! if (ua.win32 && (ua.ie||ua.dom)) { ! divs={} ! var dv,all=(ua.ie||ua.opera)? document.all.tags('div') : document.getElementsByTagName('div'); ! var i=0,l=all.length; // very important! ! while (i<l){ ! dv=all[i]; ! divs[dv.id]=dv; ! i++; } } + + var c,ch=this.children; + for(i=0;i<ch.length;i++){ + c=ch[i]; + if (c._inserted) c._createInserted(divs); + else if(c.isInline) c._createInline(divs); + else c._create(); + }; this._updateAnchors(); ! if(ua.ie && this._textSelectable==false) this.doc.onselectstart = dynapi.functions.Deny; if (this.captureMouseEvents) this.captureMouseEvents(); Index: dynlayer_dom.js =================================================================== RCS file: /cvsroot/dynapi/dynapi3x/src/api/dynlayer_dom.js,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** dynlayer_dom.js 25 Feb 2003 21:38:17 -0000 1.2 --- dynlayer_dom.js 5 Mar 2003 04:36:16 -0000 1.3 *************** *** 57,61 **** this.elm.outerHTML = ""; // ?? this.elm = null; ! this.releaseMouseEvents(); if (this.releaseKeyEvents) this.releaseKeyEvents(); } --- 57,61 ---- this.elm.outerHTML = ""; // ?? this.elm = null; ! if (this.releaseMouseEvents) this.releaseMouseEvents(); if (this.releaseKeyEvents) this.releaseKeyEvents(); } *************** *** 85,90 **** } }; ! DynLayer._assignElement = function(dlyr,elm) { ! if (!elm) elm = dlyr.parent.doc.getElementById(dlyr.id); dlyr.elm = elm; dlyr.css = elm.style; --- 85,95 ---- } }; ! p._createInserted = function(divs){ ! DynLayer._assignElement(this,null,divs); ! DynElement._flagEvent(this,'create'); ! }; ! DynLayer._assignElement = function(dlyr,elm,divs) { ! if (!elm ) elm = (divs)? divs[dlyr.id] : dlyr.parent.doc.getElementById(dlyr.id); ! //if (!elm) elm = dlyr.parent.doc.getElementById(dlyr.id); dlyr.elm = elm; dlyr.css = elm.style; Index: dynlayer_ie.js =================================================================== RCS file: /cvsroot/dynapi/dynapi3x/src/api/dynlayer_ie.js,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** dynlayer_ie.js 25 Feb 2003 21:38:18 -0000 1.3 --- dynlayer_ie.js 5 Mar 2003 04:36:16 -0000 1.4 *************** *** 27,31 **** if (html!=null) this.setHTML(html); ! }; var p = dynapi.setPrototype('DynLayer','DynElement'); --- 27,31 ---- if (html!=null) this.setHTML(html); ! }; var p = dynapi.setPrototype('DynLayer','DynElement'); *************** *** 59,63 **** this.elm.outerHTML = ""; this.elm = null; ! this.releaseMouseEvents(); if (this.releaseKeyEvents) this.releaseKeyEvents(); } --- 59,63 ---- this.elm.outerHTML = ""; this.elm = null; ! if (this.releaseMouseEvents) this.releaseMouseEvents(); if (this.releaseKeyEvents) this.releaseKeyEvents(); } *************** *** 84,89 **** } }; ! DynLayer._assignElement = function(dlyr,elm) { ! if (!elm) elm = dlyr.parent.elm.all[dlyr.id]; dlyr.elm = elm; dlyr.css = elm.style; --- 84,93 ---- } }; ! p._createInserted = function(divs){ ! DynLayer._assignElement(this,null,divs); ! DynElement._flagEvent(this,'create'); ! }; ! DynLayer._assignElement = function(dlyr,elm,divs) { ! if (!elm ) elm = (divs)? divs[dlyr.id] : dlyr.parent.elm.all[dlyr.id]; dlyr.elm = elm; dlyr.css = elm.style; *************** *** 99,104 **** } ! for (var i=0; i<dlyr.children.length; i++) { ! DynLayer._assignElement(dlyr.children[i]); } --- 103,110 ---- } ! var i=0,ch=dlyr.children; ! while (i<ch.length) { ! DynLayer._assignElement(ch[i]); ! i++; } *************** *** 241,247 **** p.getInnerHTML=function() { ! var i,s = ''; if (this.html!=null) s+=this.html; ! for (i=0;i<this.children.length;i++) s+=this.children[i].getOuterHTML(); return s; }; --- 247,257 ---- p.getInnerHTML=function() { ! var s = ''; ! var ch=this.children,i=0; if (this.html!=null) s+=this.html; ! while (i<ch.length) { ! s+=ch[i].getOuterHTML(); ! i++; ! }; return s; }; Index: dynlayer_ns4.js =================================================================== RCS file: /cvsroot/dynapi/dynapi3x/src/api/dynlayer_ns4.js,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** dynlayer_ns4.js 25 Feb 2003 21:38:18 -0000 1.2 --- dynlayer_ns4.js 5 Mar 2003 04:36:16 -0000 1.3 *************** *** 56,60 **** this.elm.visibility="hide"; this.elm = null; ! this.releaseMouseEvents(); if (this.releaseKeyEvents) this.releaseKeyEvents(); } --- 56,60 ---- this.elm.visibility="hide"; this.elm = null; ! if (this.releaseMouseEvents) this.releaseMouseEvents(); if (this.releaseKeyEvents) this.releaseKeyEvents(); } *************** *** 95,98 **** --- 95,102 ---- DynElement._flagEvent(this,'create'); } + }; + p._createInserted = function(){ + DynLayer._assignElement(this,null); + DynElement._flagEvent(this,'create'); }; DynLayer._assignElement = function(dlyr,elm) { Index: dynlayer_opera.js =================================================================== RCS file: /cvsroot/dynapi/dynapi3x/src/api/dynlayer_opera.js,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** dynlayer_opera.js 25 Feb 2003 21:38:19 -0000 1.2 --- dynlayer_opera.js 5 Mar 2003 04:36:16 -0000 1.3 *************** *** 60,64 **** this.elm.outerHTML = ""; this.elm = null; ! this.releaseMouseEvents(); if (this.releaseKeyEvents) this.releaseKeyEvents(); } --- 60,64 ---- this.elm.outerHTML = ""; this.elm = null; ! if (this.releaseMouseEvents) this.releaseMouseEvents(); if (this.releaseKeyEvents) this.releaseKeyEvents(); } *************** *** 85,90 **** } }; ! DynLayer._assignElement = function(dlyr,elm) { ! if (!elm) elm = dlyr.parent.elm.all[dlyr.id]; dlyr.elm = elm; dlyr.css = elm.style; --- 85,95 ---- } }; ! p._createInserted = function(divs){ ! DynLayer._assignElement(this,null,divs); ! DynElement._flagEvent(this,'create'); ! }; ! DynLayer._assignElement = function(dlyr,elm,divs) { ! if (!elm ) elm = (divs)? divs[dlyr.id] : dlyr.parent.elm.all[dlyr.id]; ! // if (!elm) elm = dlyr.parent.elm.all[dlyr.id]; dlyr.elm = elm; dlyr.css = elm.style; Index: event.js =================================================================== RCS file: /cvsroot/dynapi/dynapi3x/src/api/event.js,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** event.js 25 Feb 2003 21:38:19 -0000 1.2 --- event.js 5 Mar 2003 04:36:16 -0000 1.3 *************** *** 1 **** ! /* DynAPI Distribution DynEvent, EventObject, DynElement Classes The DynAPI Distribution is distributed under the terms of the GNU LGPL license. */ function DynEvent(type,src) { this.DynObject = DynObject; this.DynObject(); this.type = type; this.src = src; this.origin = src; this.propagate = true; this.bubble = false; this.bubbleChild = null; this.defaultValue = true; this._trapAlerts=null; }; var p = dynapi.setPrototype('DynEvent','DynObject'); p.getType = function() {return this.type}; p.getSource = function() {return this.src}; p.getOrigin=function() {return this.origin}; p.stopPropagation = function() {this.propagate = false}; p.preventBubble = function() {this.bubble = false}; p.preventDefault = function() {this.defaultValue = false}; p.getBubbleChild = function() {return this.bubbleChild}; function EventObject() { this.DynObject = DynObject; this.DynObject(); this._listeners = []; } EventObject._SubClass={}; p = dynapi.setPrototype('EventObject','DynObject'); p.addEventListener = function(el) { if (el) { for (var i=0;i<this._listeners.length;i++) if (this._listeners[i]==el) return; this._listeners[this._listeners.length] = el; this._hasCreateEvent=(el['oncreate'])? true:this._hasCreateEvent; this._hasPrecreateEvent=(el['onprecreate'])? true:this._hasPrecreateEvent; this._hasDragEvents=(el['ondragstart']||el['ondragmove']|| el['ondragend']||el['ondragdrop']|| el['ondragover']||el['ondragout'])? true:this._hasDragEvents; if (this.captureMouseEvents) { if (this._created && !this._hasMouseEvents && (el.onmousedown || el.onmouseup || el.onmouseover || el.onmouseout || el.onclick || el.ondblclick)) { this.captureMouseEvents(); } else this._hasMouseEvents = true; } if (this.captureKeyEvents) { if (this._created && !this._hasKeyEvents && (el.onkeydown || el.onkeyup || el.keypress)) { this.captureKeyEvents(); } else this._hasKeyEvents = true; } } }; p.removeEventListener = function(el) { if (el) { DynAPI.functions.removeFromArray(this._listeners, el, false); if (!this._listeners.length && this.releaseMouseEvents && this.getClassName()!='DynDocument') this.releaseMouseEvents(); if (!this._listeners.length && this.releaseKeyEvents && this.getClassName()!='DynDocument') this.releaseKeyEvents(); } }; p.removeAllEventListeners = function() { this._listeners = []; }; p.invokeEvent = function(type,e,args) { if (!e) e = new DynEvent(type,this); e.src = this; e.type = type; // Check for subclassing var clsFn=EventObject._SubClass[this+'_'+type]; if(clsFn) { if (clsFn(e,args)==false) return; }; if (this._listeners.length) for (var i=0;i<this._listeners.length;i++) { if (this._listeners[i]["on"+type]) this._listeners[i]["on"+type](e,args); if (!e.propagate) break; } if (this["on"+type]) this["on"+type](e,args); if (e.bubble && this.parent) { //if ((type=="mouseover" || type=="mouseout") && e._relative==this.parent) return; e.x += this.x; e.y += this.y; e.bubbleChild = this; this.parent.invokeEvent(type,e,args); } }; // Add subClassEvent() function to dynapi.functions dynapi.functions.subClassEvent = function(type,eobj,fn){ var ek=eobj+'_'+type; var cls=EventObject._SubClass; if(typeof(fn)=='function') cls[ek]=fn; else if(!fn && cls[ek]) delete(cls[ek]) }; function DynElement() { this.EventObject = EventObject; this.EventObject(); this.isChild = false; this._created = false; this.parent = null; this._dyndoc = null; this.children = []; this._childAnchors = []; }; DynElement._flagEvent = function(c,type) { var ok=false; if (type=="create") c._created = true; // Raise onCreate/onPreCreate callback Flag if((c._hasPCreateFn||c._hasCreateFn) && (type=='precreate'||type=='create')) { ok=true; c._flagCreateEvent(type); } if(!ok){ //to speed up creation skip invokeEvent if precreate or create events where not registered if(type=='precreate' && (c._hasPrecreateEvent || c['onprecreate'])) ok=true; else if(type=='create' && (c._hasCreateEvent || c['oncreate'])) ok=true; else if(type!='create' && type!='precreate') ok=true; if(ok) c.invokeEvent(type); } for (var i=0; i<c.children.length; i++) { DynElement._flagEvent(c.children[i],type); } }; p = dynapi.setPrototype('DynElement','EventObject'); p.addChild = function(c,alias) { if (!c) return dynapi.debug.print("Error: no object sent to [DynLayer].addChild()"); if (c.isChild) c.removeFromParent(); c.isChild = true; c.parent = this; if (c._saveAnchor) { c.setAnchor(c._saveAnchor); delete c._saveAnchor; } if(alias) this[alias]=c; if (this._created) c._create(); this.children[this.children.length] = c; return c; }; p.removeChild = function(c) { var l = this.children.length; for (var i=0;i<l && this.children[i]!=c;i++); if (i!=l) { c._remove(); c._created = false; c.isChild = false; c.parent = null; c.dyndoc = null; this.children[i] = this.children[l-1]; this.children[l-1] = null; this.children.length--; } }; p.deleteChild = function(c) { c.removeFromParent(); c._delete(); }; p.deleteAllChildren = function() { var l = this.children.length; for(var i=0;i<l;i++) { this.children[i].del(); delete this.children[i]; } this.children = []; }; p.deleteFromParent = function () { if (this.parent) this.parent.deleteChild(this); }; p.removeFromParent = function () { if (this.parent) this.parent.removeChild(this); }; p._create = p._remove = p._delete = p._destroy = dynapi.functions.Null; p.getChildren = function() {return this.children} p.getAllChildren = function() { var ret = []; var temp; var l = this.children.length; for(var i=0;i<l;i++) { ret[this.children[i].id] = this.children[i]; temp = this.children[i].getAll(); for(var j in temp) ret[j] = temp[j]; } return ret }; p.getParents = function(l) { if (l==null) l = []; if (this.parent) { l[l.length] = this.parent; l = this.parent.getParents(l); } return l; }; p.isParentOf = function(c) { if (c) { var p = c.getParents(); for (var i=0;i<p.length;i++) { if (p[i]==this) return true; } } return false; }; p.isChildOf = function(p) { if (!p) return false; return p.isParentOf(this); }; // New onPreCreate() and onCreate() callback functions p.onCreate = function(fn){ if(!this._cfn){this._fn=0;this._cfn={};} var s='create'+this._fn++; this._cfn[s]='create'; this._hasCreateFn=true; this[s]=fn; }; p.onPreCreate = function(fn){ if(!this._cfn){this._fn=0;this._cfn={};} var s='precreate'+this._fn++; this._cfn[s]='precreate'; this._hasPCreateFn=true; this[s]=fn; }; p._flagCreateEvent = function(s){ for(var i in this._cfn){ if(this._cfn[i]==s) this[i](); }; }; p.updateAnchor = function() { this.parent._updateAnchor(this.id); }; p._updateAnchor = function(id) { if (!id) return; var dlyr = DynObject.all[id]; var a = this._childAnchors[id]; var tw = this.w; var th = this.h; if (tw==null && th==null) return; // anchoring/docking var fn=dynapi.functions; var padX=0,padY=0; if(a.topA) { anc=fn.getAnchorLocation(a.topA,this); if(anc){padY=anc.y; th=th-padY;} } if(a.leftA) { anc=(a.leftA==a.topA && anc)? anc:fn.getAnchorLocation(a.leftA,this); if(anc) {padX=anc.x; tw=tw-padX;} } if(a.bottomA) { anc=fn.getAnchorLocation(a.bottomA,this); th=th-(this.h-anc.y); } if(a.rightA) { anc=(a.bottomA==a.rightA && anc)? anc:fn.getAnchorLocation(a.rightA,this); if(anc) tw=tw-(this.w-anc.x); } var aleft=(tw>0 && a.left && typeof(a.left)=='string')? tw*(parseInt(a.left)/100):a.left; var aright=(tw>0 && a.right && typeof(a.right)=='string')? tw*(parseInt(a.right)/100):a.right; var atop=(th>0 && a.top && typeof(a.top)=='string')? th*(parseInt(a.top)/100):a.top; var abottom=(th>0 && a.bottom && typeof(a.bottom)=='string')? th*(parseInt(a.bottom)/100):a.bottom; var x = aleft; var y = atop; var w = null; var h = null; var dlyrWidth=dlyr.getWidth(); var dlyrHeight=dlyr.getHeight(); if (a.stretchH!=null) { if(typeof(a.stretchH)!='string') w=a.stretchH; else { if(a.stretchH=='*') w = tw - ((aleft!=null)? aleft:0); else w = tw*(parseInt(a.stretchH)/100); } dlyrWidth=w; } if (a.centerH!=nu ll) { x = Math.ceil(tw/2 - dlyrWidth/2 + a.centerH); }else if (aright!=null) { if (aleft!=null) w = (tw - aright) - aleft; else x = (tw - dlyrWidth) - aright; if(tw<=0 && x<0) x=null; // ns4 needs x>=0 } if (a.stretchV!=null) { if(typeof(a.stretchV)!='string') h=a.stretchV; else { if(a.stretchV=='*') h = th - ((atop!=null)? atop:0); else h = th*(parseInt(a.stretchV)/100); } dlyrHeight=h; } if (a.centerV!=null) { y = Math.ceil(th/2 - dlyrHeight/2 + a.centerV); }else if (abottom!=null) { if (atop!=null) h = (th - abottom) - atop; else y = (th - dlyrHeight) - abottom; if(th<=0 && y<0) y=null; // ns4 needs y>=0 } if(padX) {x=(x)? x:0;x+=padX} if(padY) {y=(y)? y:0;y+=padY} if(x!=null||y!=null) dlyr.setLocation(x,y); if(w!=null||h!=null) dlyr.setSize(w,h); }; p._updateAnchors = function() { var tw = this.w; var th = this.h; if (tw==null && th==null) return; for (id in this._childAnchors) this._updateAnchor(id); }; // bandwidth timer stop var ua=dynapi.ua; ua._bwe=new Date; ua.broadband=((ua._bwe-ua._bws)<=1500)? true:false; \ No newline at end of file --- 1 ---- ! /* DynAPI Distribution DynEvent, EventObject, DynElement Classes The DynAPI Distribution is distributed under the terms of the GNU LGPL license. */ function DynEvent(type,src) { this.DynObject = DynObject; this.DynObject(); this.type = type; this.src = src; this.origin = src; this.propagate = true; this.bubble = false; this.bubbleChild = null; this.defaultValue = true; this._trapAlerts=null; }; var p = dynapi.setPrototype('DynEvent','DynObject'); p.getType = function() {return this.type}; p.getSource = function() {return this.src}; p.getOrigin=function() {return this.origin}; p.stopPropagation = function() {this.propagate = false}; p.preventBubble = function() {this.bubble = false}; p.preventDefault = function() {this.defaultValue = false}; p.getBubbleChild = function() {return this.bubbleChild}; function EventObject() { this.DynObject = DynObject; this.DynObject(); this._listeners = []; } EventObject._SubClass={}; p = dynapi.setPrototype('EventObject','DynObject'); p.addEventListener = function(el) { if (el) { for (var i=0;i<this._listeners.length;i++) if (this._listeners[i]==el) return; this._listeners[this._listeners.length] = el; this._hasCreateEvent=(el['oncreate'])? true:this._hasCreateEvent; this._hasPrecreateEvent=(el['onprecreate'])? true:this._hasPrecreateEvent; this._hasDragEvents=(el['ondragstart']||el['ondragmove']|| el['ondragend']||el['ondragdrop']|| el['ondragover']||el['ondragout'])? true:this._hasDragEvents; if (this.captureMouseEvents) { if (this._created && !this._hasMouseEvents && (el.onmousedown || el.onmouseup || el.onmouseover || el.onmouseout || el.onclick || el.ondblclick)) { this.captureMouseEvents(); } else this._hasMouseEvents = true; } if (this.captureKeyEvents) { if (this._created && !this._hasKeyEvents && (el.onkeydown || el.onkeyup || el.keypress)) { this.captureKeyEvents(); } else this._hasKeyEvents = true; } } }; p.removeEventListener = function(el) { if (el) { DynAPI.functions.removeFromArray(this._listeners, el, false); if (!this._listeners.length && this.releaseMouseEvents && this.getClassName()!='DynDocument') this.releaseMouseEvents(); if (!this._listeners.length && this.releaseKeyEvents && this.getClassName()!='DynDocument') this.releaseKeyEvents(); } }; p.removeAllEventListeners = function() { this._listeners = []; }; p.invokeEvent = function(type,e,args) { if (!e) e = new DynEvent(type,this); e.src = this; e.type = type; // Check for subclassing var clsFn=EventObject._SubClass[this+'_'+type]; if(clsFn) { if (clsFn(e,args)==false) return; }; if (this._listeners.length) for (var i=0;i<this._listeners.length;i++) { if (this._listeners[i]["on"+type]) this._listeners[i]["on"+type](e,args); if (!e.propagate) break; } if (this["on"+type]) this["on"+type](e,args); if (e.bubble && this.parent) { //if ((type=="mouseover" || type=="mouseout") && e._relative==this.parent) return; e.x += this.x; e.y += this.y; e.bubbleChild = this; this.parent.invokeEvent(type,e,args); } }; // Add subClassEvent() function to dynapi.functions dynapi.functions.subClassEvent = function(type,eobj,fn){ var ek=eobj+'_'+type; var cls=EventObject._SubClass; if(typeof(fn)=='function') cls[ek]=fn; else if(!fn && cls[ek]) delete(cls[ek]) }; function DynElement() { this.EventObject = EventObject; this.EventObject(); this.isChild = false; this._created = false; this.parent = null; this._dyndoc = null; this.children = []; this._childAnchors = []; }; DynElement._flagEvent = function(c,type) { var ok=false; if (type=="create") c._created = true; // Raise onCreate/onPreCreate callback Flag if((c._hasPCreateFn||c._hasCreateFn) && (type=='precreate'||type=='create')) { ok=true; c._flagCreateEvent(type); } if(!ok){ //to speed up creation skip invokeEvent if precreate or create events where not registered if(type=='precreate' && (c._hasPrecreateEvent || c['onprecreate'])) ok=true; else if(type=='create' && (c._hasCreateEvent || c['oncreate'])) ok=true; else if(type!='create' && type!='precreate') ok=true; if(ok) c.invokeEvent(type); } for (var i=0; i<c.children.length; i++) { DynElement._flagEvent(c.children[i],type); } }; p = dynapi.setPrototype('DynElement','EventObject'); p.addChild = function(c,alias,inlineID) { if (!c) return dynapi.debug.print("Error: no object sent to [DynLayer].addChild()"); if (c.isChild) c.removeFromParent(); c.isChild = true; c.parent = this; if (c._saveAnchor) { c.setAnchor(c._saveAnchor); delete c._saveAnchor; } if(alias) this[alias]=c; if(inlineID) c.setID(inlineID,true); if (this._created) { if (c.isInline) c._createInline(); else c._create(); } this.children[this.children.length] = c; return c; }; p.removeChild = function(c) { var l = this.children.length; for (var i=0;i<l && this.children[i]!=c;i++); if (i!=l) { c._remove(); c._created = false; c.isChild = false; c.parent = null; c.dyndoc = null; this.children[i] = this.children[l-1]; this.children[l-1] = null; this.children.length--; } }; p.deleteChild = function(c) { c.removeFromParent(); c._delete(); }; p.deleteAllChildren = function() { var l = this.children.length; for(var i=0;i<l;i++) { this.children[i].del(); delete this.children[i]; } this.children = []; }; p.deleteFromParent = function () { if (this.parent) this.parent.deleteChild(this); }; p.removeFromParent = function () { if (this.parent) this.parent.removeChild(this); }; p._create = p._createInLine = p._createInserted = p._remove = p._delete = p._destroy = dynapi.functions.Null; p.getChildren = function() {return this.children} p.getAllChildren = function() { var ret = []; var temp; var l = this.children.length; for(var i=0;i<l;i++) { ret[this.children[i].id] = this.children[i]; temp = this.children[i].getAll(); for(var j in temp) ret[j] = temp[j]; } return ret }; p.getParents = function(l) { if (l==null) l = []; if (this.parent) { l[l.length] = this.parent; l = this.parent.getParents(l); } return l; }; p.isParentOf = function(c) { if (c) { var p = c.getParents(); for (var i=0;i<p.length;i++) { if (p[i]==this) return true; } } return false; }; p.isChildOf = function(p) { if (!p) return false; return p.isParentOf(this); }; // New onPreCreate() and onCreate() callback functions p.onCreate = function(fn){ if(!this._cfn){this._fn=0;this._cfn={};} var s='create'+this._fn++; this._cfn[s]='create'; this._hasCreateFn=true; this[s]=fn; }; p.onPreCreate = function(fn){ if(!this._cfn){this._fn=0;this._cfn={};} var s='precreate'+this._fn++; this._cfn[s]='precreate'; this._hasPCreateFn=true; this[s]=fn; }; p._flagCreateEvent = function(s){ for(var i in this._cfn){ if(this._cfn[i]==s) this[i](); }; }; p.updateAnchor = function() { this.parent._updateAnchor(this.id); }; p._updateAnchor = function(id) { if (!id) return; var dlyr = DynObject.all[id]; var a = this._childAnchors[id]; var tw = this.w; var th = this.h; if (tw==null && th==null) return; // anchoring/docking var fn=dynapi.functions; var padX=0,padY=0; if(a.topA) { anc=fn.getAnchorLocation(a.topA,this); if(anc){padY=anc.y; th=th-padY;} } if(a.leftA) { anc=(a.leftA==a.topA && anc)? anc:fn.getAnchorLocation(a.leftA,this); if(anc) {padX=anc.x; tw=tw-padX;} } if(a.bottomA) { anc=fn.getAnchorLocation(a.bottomA,this); th=th-(this.h-anc.y); } if(a.rightA) { anc=(a.bottomA==a.rightA && anc)? anc:fn.getAnchorLocation(a.rightA,this); if(anc) tw=tw-(this.w-anc.x); } var aleft=(tw>0 && a.left && typeof(a.left)=='string')? tw*(parseInt(a.left)/100):a.left; var aright=(tw>0 && a.right && typeof(a.right)=='string')? tw*(parseInt(a.right)/100):a.right; var atop=(th>0 && a.top && typeof(a.top)=='string')? th*(parseInt(a.top)/100):a.top; var abottom=(th>0 && a.bottom && typeof(a.bottom)=='string')? th*(parseInt(a.bottom)/100):a.bottom; var x = aleft; var y = atop; var w = null; var h = null; var dlyrWidth=dlyr.getWidth(); var dlyrHeight=dlyr.getHeight(); if (a.stretchH!=null) { if(typeof(a.stretchH)!='string') w=a.stretchH; else { if(a .stretchH=='*') w = tw - ((aleft!=null)? aleft:0); else w = tw*(parseInt(a.stretchH)/100); } dlyrWidth=w; } if (a.centerH!=null) { x = Math.ceil(tw/2 - dlyrWidth/2 + a.centerH); }else if (aright!=null) { if (aleft!=null) w = (tw - aright) - aleft; else x = (tw - dlyrWidth) - aright; if(tw<=0 && x<0) x=null; // ns4 needs x>=0 } if (a.stretchV!=null) { if(typeof(a.stretchV)!='string') h=a.stretchV; else { if(a.stretchV=='*') h = th - ((atop!=null)? atop:0); else h = th*(parseInt(a.stretchV)/100); } dlyrHeight=h; } if (a.centerV!=null) { y = Math.ceil(th/2 - dlyrHeight/2 + a.centerV); }else if (abottom!=null) { if (atop!=null) h = (th - abottom) - atop; else y = (th - dlyrHeight) - abottom; if(th<=0 && y<0) y=null; // ns4 needs y>=0 } if(padX) {x=(x)? x:0;x+=padX} if(padY) {y=(y)? y:0;y+=padY} if(x!=null||y!=null) dlyr.setLocation(x,y); if(w!=null||h!=null) dlyr.setSize(w,h); }; p._updateAnchors = function() { var tw = this.w; var th = this.h; if (tw==null && th==null) return; for (id in this._childAnchors) this._updateAnchor(id); }; // bandwidth timer stop var ua=dynapi.ua; ua._bwe=new Date; ua.broadband=((ua._bwe-ua._bws)<=1500)? true:false; \ No newline at end of file |
From: Raymond I. <xw...@us...> - 2003-03-05 04:36:23
|
Update of /cvsroot/dynapi/dynapi3x/docs/images In directory sc8-pr-cvs1:/tmp/cvs-serv30194/docs/images Added Files: konqueror.gif safari.gif Log Message: uploaded by raymond (with changes made by Benoit) --- NEW FILE --- GIF89a PÜxpA ,\ÀPÒ`A ®ò ,±È2-µÐhË$°@r.¹¢Ë.5 /½øò0³4Ìs óÊ0ÄÈRLÆD(!Ä(CKµ]ÁÂ2´ÐÂL3Î<M¬HtÑH3 5c¼ÁZdAoÔ20ÕXãI` Ñ$Ð2µ8 Z`Ázó àÀÆBDD#Î8äcÎ9è¤sÉꬣ @; ÑA³(p --- NEW FILE --- GIF89a ÔÑ«QRRE»óÐÐЪ©©nnncÔô(Äíéç_Âã×ãêªÀÞM·¶ÌÞ5ÿ7îhF á÷ÁÁÁ1]ÿ7 C¤hBYI(r@cìÅ*dÐÞ9JÇÄ/GÂýZ# G«câÁÃdöT°X"mÌÉáÈ-ñànI>f/^} £Å>>uFaÂ2c$VÕjåÌ[YF¤ Öà:2* ¤8d |ZD±pæÌ<0eÔèXrK \µ6 ñ¡dßÂCâ=ÿkä-A2Åñh%Ú#Lb.Ejw¢ß= k@+ !mبM¸ÒÆ,©"%NF)dÈP>AYÔÄC Ù0@Î(}8²ÅcL#H,lLSJ=ü<È,pðᢠ'ÀÅ8É! |
From: Raymond I. <xw...@us...> - 2003-03-05 04:36:23
|
Update of /cvsroot/dynapi/dynapi3x/examples In directory sc8-pr-cvs1:/tmp/cvs-serv30194/examples Modified Files: dynapi.api.ext.inline.html dynapi.fx.circleanim.html Added Files: dynapi.api.ext.inline-widget.html dynapi.fx.fader.html Log Message: uploaded by raymond (with changes made by Benoit) --- NEW FILE --- <html> <head> <title>DynAPI Examples - Inline Widget</title> <script language="JavaScript" src="../src/dynapi.js"></script> <script language="Javascript"> dynapi.library.setPath('../src/'); dynapi.library.include('dynapi.library'); dynapi.library.include('dynapi.debug'); dynapi.library.include('dynapi.api'); dynapi.library.include('DynLayerInline'); dynapi.library.include('DragEvent'); </script> <script language="Javascript"> var mylayer = dynapi.document.addChild(new DynLayer(),null,'mylayer'); mylayer.addChild(new DynLayer(),'lyrBox1','box1'); mylayer.addChild(new DynLayer(),'lyrBox2','box2'); mylayer.addChild(new DynLayer(),'lyrBox3','box3'); mylayer.addChild(new DynLayer(),'lyrBox4','box4'); DragEvent.enableDragEvents( mylayer, mylayer.lyrBox1, mylayer.lyrBox2, mylayer.lyrBox3, mylayer.lyrBox4 ); var el = { onmousedown : function(e) { dynapi.debug.print('mousedown on '+e.getSource().id) e.preventBubble(); } } mylayer.addEventListener(el); </script> <style type="text/css"> <!-- #mylayer {position:absolute; left:250px; top:50px; width:200px; height:200px; clip:rect(0px 200px 200px 0px); background-color:red; layer-background-color:red;} #box1 {position:absolute; left:0px; top:0px; width:20px; height:20px; background-color:yellow; z-index:5; layer-background-color:yellow;} #box2 {position:absolute; left:180px; top:0px; width:20px; height:20px; background-color:blue; z-index:5; layer-background-color:blue;} #box3 {position:absolute; left:180px; top:180px; width:20px; height:20px; background-color:silver; z-index:5; layer-background-color:silver;} #box4 {position:absolute; left:0px; top:180px; width:20px; height:20px; background-color:green; z-index:5; layer-background-color:green;} --> </style> </head> <body bgcolor="#FFFFFF"> <div id="mylayer"> <table border="0" height="200" width="200"><tr><td align="center"><font color="#ffffff">My Inline Widget<br>Drag Me</font></td></tr></table> <div id="box1"></div> <div id="box2"></div> <div id="box3"></div> <div id="box4"></div> </div> </body> </html> --- NEW FILE --- <html> <head> <title>DynAPI Examples - Fader</title> <script language="JavaScript" src="../src/dynapi.js"></script> <script language="Javascript"> dynapi.library.setPath('../src/'); dynapi.library.include('dynapi.api'); dynapi.library.include('Fader'); </script> <script language="Javascript"> var lyr1=new DynLayer('<h1><font color="blue">This</font></h1>',0,0,100,100); var lyr2=new DynLayer('<h1><font color="green">Is</font></h1>',300,200,100,100); var lyr3=new DynLayer('<h1><font color="red">Not</font></h1>',0,50,100,100); var lyr4=new DynLayer('<h1><font color="navy">Flash!</font></h1>',400,250,100,100); var lyr5=new DynLayer('<h1><font color="navy"><b>DynAPI <font color="green">3.0</font> Rulez!</b></font></h1>',100,300,300,100); var lyr6=new DynLayer('<h1><font color="black"><b>Got DynAPI?</b></font></h1>',400,100,200,100); dynapi.document.addChild(lyr1); dynapi.document.addChild(lyr2); dynapi.document.addChild(lyr3); dynapi.document.addChild(lyr4); dynapi.document.addChild(lyr5); dynapi.document.addChild(lyr6); lyr2.setVisible(false); lyr3.setVisible(false); lyr4.setVisible(false); lyr5.setVisible(false); lyr6.setVisible(false); dynapi.onLoad(function(){ lyr1.fadeIn(); lyr1.slideTo(100,100); lyr1.addEventListener({ onfadein:function(e){ lyr2.fadeIn(); lyr2.slideTo(170,100); } }); lyr2.addEventListener({ onfadein:function(e){ lyr3.fadeIn(); lyr3.slideTo(200,100); } }); lyr3.addEventListener({ onfadein:function(e){ lyr4.fadeIn();lyr4.slideTo(260,100); } }); lyr4.addEventListener({ onfadein:function(e){ lyr1.fadeOut(); lyr2.fadeOut(); lyr3.fadeOut(); lyr4.fadeOut(); }, onfadeout:function(e){ window.setTimeout('lyr5.fadeIn();lyr5.slideTo(null,100);',600); } }); lyr5.addEventListener({ onfadein:function(e){ window.setTimeout('lyr5.fadeOut();lyr5.slideTo(400,100);',600); }, onfadeout:function(e){ window.setTimeout('lyr6.fadeIn();lyr6.slideTo(150,100);',100); } }); }); </script> </head> <body> <script> dynapi.document.insertAllChildren(); </script> </body> </html> Index: dynapi.api.ext.inline.html =================================================================== RCS file: /cvsroot/dynapi/dynapi3x/examples/dynapi.api.ext.inline.html,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -r1.1.1.1 -r1.2 *** dynapi.api.ext.inline.html 10 Feb 2003 22:35:40 -0000 1.1.1.1 --- dynapi.api.ext.inline.html 5 Mar 2003 04:36:16 -0000 1.2 *************** *** 1 **** ! <html> <head> <title>DynAPI Examples - DynLyaer [Inline]</title> <script language="JavaScript" src="../src/dynapi.js"></script> <script language="Javascript"> dynapi.library.setPath('../src/'); dynapi.library.include('dynapi.library'); dynapi.library.include('dynapi.debug'); dynapi.library.include('dynapi.api.DynEvent'); dynapi.library.include('dynapi.api.DynDocument'); dynapi.library.include('dynapi.api.DynLayer'); dynapi.library.include('dynapi.api.ext.DynLayer_inline'); </script> <script language="JavaScript" src="../src/dynapi/api/mouse_ns4.js"></script> <script language="Javascript"> dynapi.onLoad(init); function init() { mylayer = DynLayer.getInline("mylayer"); mychild = DynLayer.getInline("mychild", mylayer); var el = { onmousedown : function(e) { dynapi.debug.print('mousedown on '+e.getSource().id) e.preventBubble(); } } mylayer.addEventListener(el); mychild.addEventListener(el); }; function checkProperties(dlyr) { var str = 'id = '+dlyr.id+'\n'+ 'parent id = '+dlyr.parent.id+'\n'+ 'x = '+dlyr.x+'\n'+ 'y = '+dlyr.y+'\n'+ 'w = '+dlyr.w+'\n'+ 'h = '+dlyr.h+'\n'+ 'clip = '+dlyr.clip+'\n'+ 'z = '+dlyr.z+'\n'+ 'visible = '+dlyr.visible+'\n'+ 'bgColor = '+dlyr.bgColor+'\n'+ 'bgImage = '+dlyr.bgImage+'\n'+ 'html = '+dlyr.html+'\n'; alert(str); } </script> <style type="text/css"> <!-- #mylayer {position:absolute; left:250px; top:50px; width:200px; height:200px; clip:rect(0px 200px 200px 0px); background-color:red; layer-background-color:red;} #mychild {position:absolute; left:50px; top:50px; background-color:yellow; z-index:5; layer-background-color:yellow; layer-background-image:url("../src/dynapi/images/blank.gif");} --> </style> </head> <body bgcolor="#999999"> <p>Check Properties of:<br> <a href="javascript:checkProperties(mylayer)">mylayer</a><br> <a href="javascript:checkProperties(mychild)">mychild</a> <div id="mylayer"> mylayer is inline <div id="mychild"> mychild is inline </div> </div> </body> </html> \ No newline at end of file --- 1 ---- ! <html> <head> <title>DynAPI Examples - DynLyaer [Inline]</title> <script language="JavaScript" src="../src/dynapi.js"></script> <script language="Javascript"> dynapi.library.setPath('../src/'); dynapi.library.include('dynapi.library'); dynapi.library.include('dynapi.debug'); dynapi.library.include('dynapi.api'); dynapi.library.include('dynapi.api.ext.DynLayerInline'); </script> <script language="Javascript"> var mylayer, mychild, mygrandchild ; dynapi.onLoad(init); function init() { mylayer = DynLayer.getInline("mylayer"); mychild = DynLayer.getInline("mychild", mylayer); // new method mygrandchild = new DynLayer(); // create layer mygrandchild.setID('mygrandchild',true); // set inline id mychild.addChild(mygrandchild); //make sure to add the child to it's parent! var el = { onmousedown : function(e) { dynapi.debug.print('mousedown on '+e.getSource().id) e.preventBubble(); } } mylayer.addEventListener(el); mychild.addEventListener(el); mygrandchild.addEventListener(el); }; function checkProperties(dlyr) { var str = 'id = '+dlyr.id+'\n'+ 'parent id = '+dlyr.parent.id+'\n'+ 'x = '+dlyr.x+'\n'+ 'y = '+dlyr.y+'\n'+ 'w = '+dlyr.w+'\n'+ 'h = '+dlyr.h+'\n'+ 'clip = '+dlyr.clip+'\n'+ 'z = '+dlyr.z+'\n'+ 'visible = '+dlyr.visible+'\n'+ 'bgColor = '+dlyr.bgColor+'\n'+ 'bgImage = '+dlyr.bgImage+'\n'+ 'html = '+dlyr.html+'\n'; alert(str); } </script> <style type="text/css"> <!-- #mylayer {position:absolute; left:250px; top:50px; width:200px; height:200px; clip:rect(0px 200px 200px 0px); background-color:red; layer-background-color:red;} #mychild {position:absolute; left:50px; top:50px; background-color:yellow; z-index:5; layer-background-color:yellow; layer-background-image:url("../src/dynapi/images/blank.gif");} #mygrandchild {position:absolute; left:50px; top:100px; background-color:lime; z-index:5; layer-background-color:lime; layer-background-image:url("../src/dynapi/images/blank.gif");} --> </style> </head> <body bgcolor="#999999"> <p>Check Properties of:<br> <a href="javascript:checkProperties(mylayer)">mylayer</a><br> <a href="javascript:checkProperties(mychild)">mychild</a><br> <a href="javascript:checkProperties(mygrandchild)">mygrandchild</a> <div id="mylayer"> mylayer is inline <div id="mychild"> mychild is inline <div id="mygrandchild"> mygrandchild is inline </div> </div> </div> </body> </html> \ No newline at end of file Index: dynapi.fx.circleanim.html =================================================================== RCS file: /cvsroot/dynapi/dynapi3x/examples/dynapi.fx.circleanim.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** dynapi.fx.circleanim.html 19 Feb 2003 03:37:57 -0000 1.1 --- dynapi.fx.circleanim.html 5 Mar 2003 04:36:16 -0000 1.2 *************** *** 50,53 **** --- 50,56 ---- <body bgcolor="#ffffff"> + <script> + dynapi.document.insertAllChildren(); + </script> <p>Circle *************** *** 57,61 **** <br>angle increment: <a href="javascript:circle.setAngleIncrement(10)">10</a> | <a href="javascript:circle.setAngleIncrement(5)">5</a> <br>sleep: <a href="javascript:circle.sleep(20)">20</a> | <a href="javascript:circle.sleep(40)">40</a> - </body> </html> --- 60,63 ---- |
From: Raymond I. <xw...@us...> - 2003-03-05 04:36:23
|
Update of /cvsroot/dynapi/dynapi3x/src In directory sc8-pr-cvs1:/tmp/cvs-serv30194/src Modified Files: dynapi.js Log Message: uploaded by raymond (with changes made by Benoit) Index: dynapi.js =================================================================== RCS file: /cvsroot/dynapi/dynapi3x/src/dynapi.js,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** dynapi.js 25 Feb 2003 21:38:16 -0000 1.6 --- dynapi.js 5 Mar 2003 04:36:16 -0000 1.7 *************** *** 15,21 **** p.addMethod = function(n,fn) {this[n] = fn}; p.removeMethod = function(n) {this[n] = null}; ! p.setID = function(id) { if (this.id) delete DynObject.all[this.id]; this.id = id; DynObject.all[this.id] = this; }; --- 15,22 ---- p.addMethod = function(n,fn) {this[n] = fn}; p.removeMethod = function(n) {this[n] = null}; ! p.setID = function(id,isInline) { if (this.id) delete DynObject.all[this.id]; this.id = id; + this.isInline=isInline; DynObject.all[this.id] = this; }; *************** *** 312,316 **** this.add('dynapi.api.ext.DragEvent','dragevent.js','DynDocument'); this.add('dynapi.api.ext.DynKeyEvent','dynkeyevent.js','DynLayer'); ! this.add('dynapi.api.ext.DynLayer_inline','dynlayer_inline.js','DynLayer'); this.addPackage('dynapi.fx',p+'fx/'); --- 313,318 ---- this.add('dynapi.api.ext.DragEvent','dragevent.js','DynDocument'); this.add('dynapi.api.ext.DynKeyEvent','dynkeyevent.js','DynLayer'); ! this.add('dynapi.api.ext.DynLayerInline','dynlayer.inline.js','DynLayer'); ! //this.add('dynapi.api.ext.TemplateDesigner','templatedesigner.js','DynLayer'); this.addPackage('dynapi.fx',p+'fx/'); *************** *** 326,332 **** this.add('dynapi.fx.MotionX','motionx.js','DynLayer'); this.add('dynapi.fx.FlashSound','fsound.js','DynLayer'); this.addPackage('dynapi.gui',p+'gui/'); ! this.add('dynapi.gui.DynImage','dynimage.js','DynLayer'); this.add('dynapi.gui.Graphics','graphics.js','DynLayer'); this.add('dynapi.gui.LoadPanel','loadpanel.js','DynLayer'); --- 328,335 ---- this.add('dynapi.fx.MotionX','motionx.js','DynLayer'); this.add('dynapi.fx.FlashSound','fsound.js','DynLayer'); + this.add('dynapi.fx.Fader','fader.js','DynLayer'); this.addPackage('dynapi.gui',p+'gui/'); ! //this.add('dynapi.gui.DynImage','dynimage.js','DynLayer'); this.add('dynapi.gui.Graphics','graphics.js','DynLayer'); this.add('dynapi.gui.LoadPanel','loadpanel.js','DynLayer'); |
Update of /cvsroot/dynapi/dynapi3x/docs/docs In directory sc8-pr-cvs1:/tmp/cvs-serv30194/docs/docs Modified Files: examples.html quickref.dynelement.html quickref.dynlayer.html quickref.dynobject.html requirements.html revision.html Log Message: uploaded by raymond (with changes made by Benoit) Index: examples.html =================================================================== RCS file: /cvsroot/dynapi/dynapi3x/docs/docs/examples.html,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** examples.html 25 Feb 2003 21:38:21 -0000 1.5 --- examples.html 5 Mar 2003 04:36:17 -0000 1.6 *************** *** 56,59 **** --- 56,60 ---- <ul> <li><a href="../../examples/dynapi.api.ext.inline.html">Inline Layers</a> + <li><a href="../../examples/dynapi.api.ext.inline-widget.html">Inline Widget</a> </ul> *************** *** 71,74 **** --- 72,76 ---- <li><a href="../../examples/dynapi.fx.timerx.html">TimerX</a></li> <li><a href="../../examples/dynapi.fx.flashsound.html">FlashSound</a></li> + <li><a href="../../examples/dynapi.fx.fader.html">Fader</a></li> </ul> Index: quickref.dynelement.html =================================================================== RCS file: /cvsroot/dynapi/dynapi3x/docs/docs/quickref.dynelement.html,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -r1.1.1.1 -r1.2 *** quickref.dynelement.html 10 Feb 2003 22:35:31 -0000 1.1.1.1 --- quickref.dynelement.html 5 Mar 2003 04:36:17 -0000 1.2 *************** *** 3,51 **** <head> <title>DynAPI - Quick Reference</title> ! <link rel="stylesheet" type="text/css" href="../include/dynapi.css"> </head> ! <body bgcolor="#FFFFFF"> ! <table border="0" width="100%"> ! <tr> ! <td width="38%"><img border="0" src="../images/dynapi.gif" width="139" height="37"></td> ! <td width="62%" align="right"> ! <p align="right"><a href="../index.html" style="text-decoration:none"><img border="0" src="../images/home.gif" align="absmiddle" width="22" height="19"> Home</a> | <a href="quickref.html" style="text-decoration:none">Quick Reference</a> ! </td> ! </tr> ! <tr> ! <td width="100%" colspan="2" align="left"> ! <hr size="1" color="#C0C0C0"> ! </td> ! </tr> ! <tr> ! <td width="100%" colspan="2" align="left"> ! ! <h1><font color="#800000">dynapi.util.DynElements - </font>Quick Reference</h1> ! </td> ! </tr> ! </table> ! ! <table border="0" width="100%"> ! <tr> ! <td width="100%"><p align="right"><i><b><font color="#008000">Inherit: </font> </b>MouseEvent</i></p> ! </td> ! </tr> ! <tr> ! <td width="100%"> ! <hr size="1" color="#C0C0C0"> ! </td> ! </tr> ! </table> ! <h2>Constructor</h2> ! <hr> ! <h2>Events</h2> ! <hr> ! <h2>Public Methods</h2> ! <hr> ! <h2>Private Methods</h2> ! <hr> ! <h2>Static Methods</h2> </body> </html> --- 3,92 ---- <head> <title>DynAPI - Quick Reference</title> ! <link rel="stylesheet" type="text/css" href="../include/quickref.css" media="screen"> ! <link rel="stylesheet" type="text/css" href="../include/quickref.css" media="print"> </head> ! <body> ! <div id="header"> ! <img src="../images/dynapi.gif" width="139" height="37"> ! <div> ! <a href="../index.html"><img src="../images/home.gif" width="22" height="19">Home</a> | <a href="quickref.html">Quick Reference</a> ! </div> ! </div> ! <h1><span class="object">dynapi.api.DynElement</span> - Quick Reference</h1> ! <div id="inherit"><span>Inherits:</span> EventObject</div> ! <h2>Constructor</h2> ! <dl> ! <dt>DynElement()</dt> ! <dd>...</dd> ! </dl> ! <h2>Events</h2> ! <p>Need to check<p> ! <h2>Public Methods</h2> ! <dl> ! <dt>addChild(c,alias,inlineID)</dt> ! <dd>...</dd> ! <dt>removeChild(c)</dt> ! <dd>...</dd> ! ! <dt>deleteChild(c)</dt> ! <dd>...</dd> ! ! <dt>deleteAllChildren()</dt> ! <dd>...</dd> ! ! <dt>deleteFromParent()</dt> ! <dd>...</dd> ! ! <dt>removeFromParent()</dt> ! <dd>...</dd> ! ! <dt>getChildren()</dt> ! <dd>...</dd> ! ! <dt>getAllChildren()</dt> ! <dd>...</dd> ! ! <dt>getParents(l)</dt> ! <dd>...</dd> ! ! <dt>isParentOf(c)</dt> ! <dd>...</dd> ! ! <dt>isChildOf(p)</dt> ! <dd>...</dd> ! ! <dt>onCreate(fn)</dt> ! <dd>...</dd> ! ! <dt>onPreCreate(fn)</dt> ! <dd>...</dd> ! ! <dt>updateAnchor()</dt> ! <dd>...</dd> ! </dl> ! <h2>Private Methods</h2> ! <dl> ! <dt>_create()</dt> ! <dt>_remove()</dt> ! <dt>_delete()</dt> ! <dt>_destroy()</dt> ! <dd>dynpi.functions.Null</dd> ! ! <dt>_flagCreateEvent(s)</dt> ! <dd>...</dd> ! ! <dt>_updateAnchor</dt> ! <dd>...</dd> ! ! <dt>_updateAnchors</dt> ! <dd>...</dd> ! </dl> ! <h2>Static Methods</h2> ! <dl> ! <dt>_flagEvent(c,type)</dt> ! <dd>Staic & Private?</dd> ! </dl> </body> </html> Index: quickref.dynlayer.html =================================================================== RCS file: /cvsroot/dynapi/dynapi3x/docs/docs/quickref.dynlayer.html,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -r1.1.1.1 -r1.2 *** quickref.dynlayer.html 10 Feb 2003 22:35:31 -0000 1.1.1.1 --- quickref.dynlayer.html 5 Mar 2003 04:36:17 -0000 1.2 *************** *** 3,52 **** <head> <title>DynAPI - Quick Reference</title> ! <link rel="stylesheet" type="text/css" href="../include/dynapi.css"> </head> ! <body bgcolor="#FFFFFF"> ! <table border="0" width="100%"> ! <tr> ! <td width="38%"><img border="0" src="../images/dynapi.gif" width="139" height="37"></td> ! <td width="62%" align="right"> ! <p align="right"><a href="../index.html" style="text-decoration:none"><img border="0" src="../images/home.gif" align="absmiddle" width="22" height="19"> Home</a> | <a href="quickref.html" style="text-decoration:none">Quick Reference</a> ! </td> ! </tr> ! <tr> ! <td width="100%" colspan="2" align="left"> ! <hr size="1" color="#C0C0C0"> ! </td> ! </tr> ! <tr> ! <td width="100%" colspan="2" align="left"> ! ! <h1><font color="#800000">dynapi.api.DynLayer - </font>Quick Reference</h1> ! </td> ! </tr> ! </table> ! ! <table border="0" width="100%"> ! <tr> ! <td width="100%"> ! <p align="right"><i><font color="#008000"><b>Inherit: </b></font>DynElement</i></p> ! </td> ! </tr> ! <tr> ! <td width="100%"> ! <hr size="1" color="#C0C0C0"> ! </td> ! </tr> ! </table> ! <h2>Constructor</h2> ! <hr> ! <h2>Events</h2> ! <hr> ! <h2>Public Methods</h2> ! <hr> ! <h2>Private Methods</h2> ! <hr> ! <h2>Static Methods</h2> </body> </html> --- 3,161 ---- <head> <title>DynAPI - Quick Reference</title> ! <link rel="stylesheet" type="text/css" href="../include/quickref.css" media="screen"> ! <link rel="stylesheet" type="text/css" href="../include/quickref.css" media="print"> </head> ! <body> ! <div id="header"> ! <img src="../images/dynapi.gif" width="139" height="37"> ! <div> ! <a href="../index.html"><img src="../images/home.gif" width="22" height="19">Home</a> | <a href="quickref.html">Quick Reference</a> ! </div> ! </div> ! <h1><span class="object">dynapi.api.DynLayer</span> - Quick Reference</h1> ! <div id="inherit"><span>Inherit:</span> DynElement</div> ! <h2>Constructor</h2> ! <dl> ! <dt>DynLayer(html,x,y,w,h,color)</dt> ! <dd>...</dd> ! </dl> ! <h2>Events</h2> ! <p>?</p> ! <h2>Public Methods</h2> ! <dl> ! <dt>getOuterHTML()</dt> ! <dd>...</dd> ! <dt>setLocation(x,y)</dt> ! <dd>...</dd> ! ! <dt>setPageLocation(x,y)</dt> ! <dd>...</dd> ! ! <dt>getPageX()</dt> ! <dd>...</dd> ! ! <dt>getPageY()</dt> ! <dd>...</dd> ! ! <dt>setVisible(v)</dt> ! <dd>...</dd> ! ! <dt>setSize(w,h)</dt> ! <dd>...</dd> ! ! <dt>setHTML(html)</dt> ! <dd>...</dd> ! ! <dt>getAnchor()</dt> ! <dd>...</dd> ! ! <dt>setAnchor(anchor)</dt> ! <dd>...</dd> ! ! <dt>setTextSelectable(b)</dt> ! <dd>...</dd> ! ! <dt>setX(x)</dt> ! <dd>...</dd> ! ! <dt>setY(y)</dt> ! <dd>...</dd> ! ! <dt>getX()</dt> ! <dd>...</dd> ! ! <dt>getY()</dt> ! <dd>...</dd> ! ! <dt>setPageX(x)</dt> ! <dd>...</dd> ! ! <dt>setPageY(y)</dt> ! <dd>...</dd> ! ! <dt>getVisible()</dt> ! <dd>...</dd> ! ! <dt>setZIndex(z)</dt> ! <dd>...</dd> ! ! <dt>getZIndex()</dt> ! <dd>...</dd> ! ! <dt>getInnerHTML()</dt> ! <dd>...</dd> ! ! <dt>getHTML()</dt> ! <dd>...</dd> ! ! <dt>setWidth(w)</dt> ! <dd>...</dd> ! ! <dt>setHeight(h)</dt> ! <dd>...</dd> ! ! <dt>getWidth()</dt> ! <dd>...</dd> ! ! <dt>getHeight()</dt> ! <dd>...</dd> ! ! <dt>getBgImage()</dt> ! <dd>...</dd> ! ! <dt>getBgColor()</dt> ! <dd>...</dd> ! ! <dt>getCursor()</dt> ! <dd>...</dd> ! ! <dt>setCursor(c)</dt> ! <dd>...</dd> ! ! <dt>setBgColor(c)</dt> ! <dd>...</dd> ! ! <dt>setBgImage(path)</dt> ! <dd>...</dd> ! ! <dt>getContentWidth()</dt> ! <dd>...</dd> ! ! <dt>getContentHeight()</dt> ! <dd>...</dd> ! ! <dt>setClip(clip)</dt> ! <dd>...</dd> ! ! <dt>getClip()</dt> ! <dd>...</dd> ! ! <dt>slideTo(endx,endy,inc,speed)</dt> ! <dd>...</dd> ! ! <dt>slideStop()</dt> ! <dd>...</dd> ! </dl> ! <h2>Private Methods</h2> ! <dl> ! <dt>_destroy()</dt> ! <dd>...</dd> ! ! <dt>_remove()</dt> ! <dd>...</dd> ! ! <dt>_create()</dt> ! <dd>...</dd> ! ! <dt>_slide(dx,dy,endx,endy,num,x,y,i,speed)</dt> ! <dd>...</dd> ! </dl> ! <h2>Static Methods</h2> ! <dl> ! <dt>_assignElement(dlyr,elm,divs)</dt> ! <dd>...</dd> ! </dl> </body> </html> Index: quickref.dynobject.html =================================================================== RCS file: /cvsroot/dynapi/dynapi3x/docs/docs/quickref.dynobject.html,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -r1.1.1.1 -r1.2 *** quickref.dynobject.html 10 Feb 2003 22:35:31 -0000 1.1.1.1 --- quickref.dynobject.html 5 Mar 2003 04:36:17 -0000 1.2 *************** *** 3,51 **** <head> <title>DynAPI - Quick Reference</title> ! <link rel="stylesheet" type="text/css" href="../include/dynapi.css"> </head> ! <body bgcolor="#FFFFFF"> ! <table border="0" width="100%"> ! <tr> ! <td width="38%"><img border="0" src="../images/dynapi.gif" width="139" height="37"></td> ! <td width="62%" align="right"> ! <p align="right"><a href="../index.html" style="text-decoration:none"><img border="0" src="../images/home.gif" align="absmiddle" width="22" height="19"> Home</a> | <a href="quickref.html" style="text-decoration:none">Quick Reference</a> ! </td> ! </tr> ! <tr> ! <td width="100%" colspan="2" align="left"> ! <hr size="1" color="#C0C0C0"> ! </td> ! </tr> ! <tr> ! <td width="100%" colspan="2" align="left"> ! ! <h1><font color="#800000">dynapi.api.DynObject - </font>Quick Reference</h1> ! </td> ! </tr> ! </table> ! ! <table border="0" width="100%"> ! <tr> ! <td width="100%"> ! <p align="right"><i> </i></td> ! </tr> ! <tr> ! <td width="100%"> ! <hr size="1" color="#C0C0C0"> ! </td> ! </tr> ! </table> ! <h2>Constructor</h2> ! <hr> ! <h2>Events</h2> ! <hr> ! <h2>Public Methods</h2> ! <hr> ! <h2>Private Methods</h2> ! <hr> ! <h2>Static Methods</h2> </body> </html> --- 3,55 ---- <head> <title>DynAPI - Quick Reference</title> ! <link rel="stylesheet" type="text/css" href="../include/quickref.css" media="screen"> ! <link rel="stylesheet" type="text/css" href="../include/quickref.css" media="print"> </head> + <body> + <div id="header"> + <img src="../images/dynapi.gif" width="139" height="37"> + <div> + <a href="../index.html"><img src="../images/home.gif" width="22" height="19">Home</a> | <a href="quickref.html">Quick Reference</a> + </div> + </div> + <h1><span class="object">dynapi.api.DynObject</span> - Quick Reference</h1> + <div id="require"><span>Requirements:</span> None</div> + <h2>Constructor</h2> + <dl> + <dt>DynObject()</dt> + <dd>...</dd> + </dl> + <h2>Events</h2> + <p>[none]</p> + <h2>Public Methods</h2> + <dl> + <dt>getClassName()</dt> + <dd>...</dd> ! <dt>getClass()</dt> ! <dd>...</dd> ! <dt>isClass(n)</dt> ! <dd>...</dd> ! ! <dt>addMethod(n,fn)</dt> ! <dd>...</dd> ! ! <dt>removeMethod(n)</dt> ! <dd>...</dd> ! ! <dt>setID(id,isInline)</dt> ! <dd>...</dd> ! ! <dt>toString()</dt> ! <dd>...</dd> ! </dl> ! <h2>Private Methods</h2> ! <p>[none]</p> ! <h2>Static Methods</h2> ! <dl> ! <dt>isClass(cn,n)</dt> ! <dd>...</dd> ! </dl> </body> </html> Index: requirements.html =================================================================== RCS file: /cvsroot/dynapi/dynapi3x/docs/docs/requirements.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** requirements.html 16 Feb 2003 04:17:42 -0000 1.2 --- requirements.html 5 Mar 2003 04:36:17 -0000 1.3 *************** *** 32,35 **** --- 32,39 ---- <li><img border="0" src="../images/ie.gif" align="absmiddle" width="32" height="32"> Internet Explorer 4+</li> + <li><img border="0" src="../images/konqueror.gif" align="absmiddle" width="32" height="32"> + Konqueror 3+</li> + <li><img border="0" src="../images/safari.gif" align="absmiddle" width="32" height="32"> + Safari</li> <li><img border="0" src="../images/ns4.gif" align="absmiddle" width="32" height="32"> Netscape 4+</li> *************** *** 39,42 **** --- 43,47 ---- Phoenix 0.5+ </li> </ul> + <p> </p> <p><b>Non-Dynamic features: <br> </b> *************** *** 61,70 **** </tr> <tr> - <td width="38%" bgcolor="#FFFFCC">Standard DOM Browsers</td> - <td width="22%" align="center" bgcolor="#FFFFCC"><img border="0" src="../images/tick.gif" width="13" height="13"></td> - <td width="18%" align="center" bgcolor="#FFFFCC"><img border="0" src="../images/tick.gif" width="13" height="13"></td> - <td width="28%" align="center" bgcolor="#FFFFCC"> </td> - </tr> - <tr> <td width="38%" bgcolor="#FFFFFF">Internet Explorer 4+</td> <td width="22%" align="center" bgcolor="#FFFFFF"><img border="0" src="../images/tick.gif" width="13" height="13"></td> --- 66,69 ---- *************** *** 73,83 **** </tr> <tr> ! <td width="38%" bgcolor="#FFFFFF">Netscape 3.0</td> ! <td width="22%" align="center" bgcolor="#FFFFFF"><img border="0" src="../images/tick.gif" width="13" height="13"></td> ! <td width="18%" align="center" bgcolor="#FFFFFF"> </td> ! <td width="28%" align="center" bgcolor="#FFFFFF">Win, Linux?</td> ! </tr> ! <tr> ! <td width="38%" bgcolor="#FFFFFF">Netscape 4.0 and higher</td> <td width="22%" align="center" bgcolor="#FFFFFF"><img border="0" src="../images/tick.gif" width="13" height="13"></td> <td width="18%" align="center" bgcolor="#FFFFFF"><img border="0" src="../images/tick.gif" width="13" height="13"></td> --- 72,76 ---- </tr> <tr> ! <td width="38%" bgcolor="#FFFFFF">Netscape 4+</td> <td width="22%" align="center" bgcolor="#FFFFFF"><img border="0" src="../images/tick.gif" width="13" height="13"></td> <td width="18%" align="center" bgcolor="#FFFFFF"><img border="0" src="../images/tick.gif" width="13" height="13"></td> *************** *** 97,104 **** </tr> <tr> ! <td width="38%" bgcolor="#FFFFFF">Opera 5.x, *6.x</td> <td width="22%" align="center" bgcolor="#FFFFFF"><img border="0" src="../images/tick.gif" width="13" height="13"></td> ! <td width="18%" align="center" bgcolor="#FFFFFF"> </td> ! <td width="28%" align="center" bgcolor="#FFFFFF">Win, Linux, Mac</td> </tr> <tr> --- 90,103 ---- </tr> <tr> ! <td width="38%" bgcolor="#FFFFFF">Konqueror 3+</td> <td width="22%" align="center" bgcolor="#FFFFFF"><img border="0" src="../images/tick.gif" width="13" height="13"></td> ! <td width="18%" align="center" bgcolor="#FFFFFF"><img border="0" src="../images/tick.gif" width="13" height="13"></td> ! <td width="28%" align="center" bgcolor="#FFFFFF">Linux</td> ! </tr> ! <tr> ! <td width="38%" bgcolor="#FFFFFF">Safari</td> ! <td width="22%" align="center" bgcolor="#FFFFFF"><img border="0" src="../images/tick.gif" width="13" height="13"></td> ! <td width="18%" align="center" bgcolor="#FFFFFF"><img border="0" src="../images/tick.gif" width="13" height="13"></td> ! <td width="28%" align="center" bgcolor="#FFFFFF">Mac</td> </tr> <tr> *************** *** 109,125 **** </tr> <tr> ! <td width="38%" bgcolor="#FFFFFF">Safari</td> <td width="22%" align="center" bgcolor="#FFFFFF"><img border="0" src="../images/tick.gif" width="13" height="13"></td> ! <td width="18%" align="center" bgcolor="#FFFFFF"><img border="0" src="../images/tick.gif" width="13" height="13"></td> ! <td width="28%" align="center" bgcolor="#FFFFFF">Mac</td> </tr> <tr> ! <td width="38%" bgcolor="#FFFFFF">HotJava 3.0</td> <td width="22%" align="center" bgcolor="#FFFFFF"><img border="0" src="../images/tick.gif" width="13" height="13"></td> <td width="18%" align="center" bgcolor="#FFFFFF"> </td> ! <td width="28%" align="center" bgcolor="#FFFFFF">Java</td> </tr> <tr> ! <td width="38%" bgcolor="#FFFFFF">Escape 4</td> <td width="22%" align="center" bgcolor="#FFFFFF"><img border="0" src="../images/tick.gif" width="13" height="13"></td> <td width="18%" align="center" bgcolor="#FFFFFF"> </td> --- 108,130 ---- </tr> <tr> ! <td width="38%" bgcolor="#FFFFCC">Standard DOM Browsers</td> ! <td width="22%" align="center" bgcolor="#FFFFCC"><img border="0" src="../images/tick.gif" width="13" height="13"></td> ! <td width="18%" align="center" bgcolor="#FFFFCC"><img border="0" src="../images/tick.gif" width="13" height="13"></td> ! <td width="28%" align="center" bgcolor="#FFFFCC"> </td> ! </tr> ! <tr> ! <td width="38%" bgcolor="#FFFFFF">Opera 5.x, *6.x</td> <td width="22%" align="center" bgcolor="#FFFFFF"><img border="0" src="../images/tick.gif" width="13" height="13"></td> ! <td width="18%" align="center" bgcolor="#FFFFFF"> </td> ! <td width="28%" align="center" bgcolor="#FFFFFF">Win, Linux, Mac</td> </tr> <tr> ! <td width="38%" bgcolor="#FFFFFF">Netscape 3.0</td> <td width="22%" align="center" bgcolor="#FFFFFF"><img border="0" src="../images/tick.gif" width="13" height="13"></td> <td width="18%" align="center" bgcolor="#FFFFFF"> </td> ! <td width="28%" align="center" bgcolor="#FFFFFF">Win, Linux?</td> </tr> <tr> ! <td width="38%" bgcolor="#FFFFFF">HotJava 3.0</td> <td width="22%" align="center" bgcolor="#FFFFFF"><img border="0" src="../images/tick.gif" width="13" height="13"></td> <td width="18%" align="center" bgcolor="#FFFFFF"> </td> *************** *** 127,134 **** </tr> <tr> ! <td width="38%" bgcolor="#FFFFFF">Konqueror 2</td> <td width="22%" align="center" bgcolor="#FFFFFF"><img border="0" src="../images/tick.gif" width="13" height="13"></td> <td width="18%" align="center" bgcolor="#FFFFFF"> </td> ! <td width="28%" align="center" bgcolor="#FFFFFF">Linux</td> </tr> <tr> --- 132,139 ---- </tr> <tr> ! <td width="38%" bgcolor="#FFFFFF">Escape 4</td> <td width="22%" align="center" bgcolor="#FFFFFF"><img border="0" src="../images/tick.gif" width="13" height="13"></td> <td width="18%" align="center" bgcolor="#FFFFFF"> </td> ! <td width="28%" align="center" bgcolor="#FFFFFF">Java</td> </tr> <tr> Index: revision.html =================================================================== RCS file: /cvsroot/dynapi/dynapi3x/docs/docs/revision.html,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** revision.html 25 Feb 2003 21:38:23 -0000 1.6 --- revision.html 5 Mar 2003 04:36:17 -0000 1.7 *************** *** 30,34 **** TODO ---- - - fix up PathAnimation files [ Legend: ] --- 30,33 ---- *************** *** 41,44 **** --- 40,52 ---- Version in CVS --------------- + [+] Add Fader Class - needs more testing in gecko browsers + [-] Fix NS4/NS6 Drag event bug + [*] Enhance inline layer support - inline layers/widgets can be created/automated before page loads + [-] Fix DynLayerInline + [*] Modify addChild() to addChild(c,alias,inlineID) + [*] Modify setID() to setID(id,isInline) + [+] Add divs object for speed - dyndocument.js line 102 + [+] Added _createInserted() to all dynlayers - this is called by dyndocument + [*] Rename DynLayer_inline to DynLayerInline [+] Add _hasDragEvents to Event Object [+] Fix setZIndex({topmost:true}) - Wasn't setting layers as topmost |
From: Jordi M. <do...@us...> - 2003-02-10 22:36:18
|
Update of /cvsroot/dynapi/dynapi3x In directory sc8-pr-cvs1:/tmp/cvs-serv27031 Log Message: no message Status: Vendor Tag: avendor Release Tags: arelease N dynapi3x/index.html N dynapi3x/LICENSE N dynapi3x/README N dynapi3x/REVISION N dynapi3x/bin/compiler.js N dynapi3x/bin/compressor.js N dynapi3x/bin/dcompiler.html N dynapi3x/bin/dc_icon.gif N dynapi3x/bin/fsobject.vbs N dynapi3x/docs/changelog.html N dynapi3x/docs/index.html N dynapi3x/docs/docs/contributors.html N dynapi3x/docs/docs/examples.html N dynapi3x/docs/docs/faq.html N dynapi3x/docs/docs/keyfeatures.html N dynapi3x/docs/docs/license.html N dynapi3x/docs/docs/quickref.cookie.html N dynapi3x/docs/docs/quickref.datasource.html N dynapi3x/docs/docs/quickref.debug.html N dynapi3x/docs/docs/quickref.dragevent.html N dynapi3x/docs/docs/quickref.dyndocument.html N dynapi3x/docs/docs/quickref.dynelement.html N dynapi3x/docs/docs/quickref.dynevent.html N dynapi3x/docs/docs/quickref.dynkeyevent.html N dynapi3x/docs/docs/quickref.dynlayer.html N dynapi3x/docs/docs/quickref.dynobject.html N dynapi3x/docs/docs/quickref.eventobject.html N dynapi3x/docs/docs/quickref.functions.html N dynapi3x/docs/docs/quickref.html N dynapi3x/docs/docs/quickref.ioelement.html N dynapi3x/docs/docs/quickref.library.html N dynapi3x/docs/docs/quickref.motionx.html N dynapi3x/docs/docs/quickref.mouseevent.html N dynapi3x/docs/docs/quickref.soda.html N dynapi3x/docs/docs/quickref.timerx.html N dynapi3x/docs/docs/requirements.html N dynapi3x/docs/docs/revision.html N dynapi3x/docs/docs/roadmap.html N dynapi3x/docs/docs/tipsticks.html N dynapi3x/docs/images/content.gif N dynapi3x/docs/images/dynapi.gif N dynapi3x/docs/images/dynapi.jpg N dynapi3x/docs/images/dynapi.swf N dynapi3x/docs/images/globe.gif N dynapi3x/docs/images/home.gif N dynapi3x/docs/images/ie.gif N dynapi3x/docs/images/kb_anchor.gif N dynapi3x/docs/images/kb_bezier.gif N dynapi3x/docs/images/kb_data.gif N dynapi3x/docs/images/kb_graphics.gif N dynapi3x/docs/images/moz.gif N dynapi3x/docs/images/ns4.gif N dynapi3x/docs/images/ns6.gif N dynapi3x/docs/images/opera.gif N dynapi3x/docs/images/phoenix.gif N dynapi3x/docs/images/tick.gif N dynapi3x/docs/include/dynapi.css N dynapi3x/examples/datasource-paging.db N dynapi3x/examples/datasource.db N dynapi3x/examples/demo.dragdrop-collision.html N dynapi3x/examples/dynapi.api.dynlayer-anchor-anchoring.html N dynapi3x/examples/dynapi.api.dynlayer-anchor-stretching.html N dynapi3x/examples/dynapi.api.dynlayer-anchor.html N dynapi3x/examples/dynapi.api.dynlayer-create.html N dynapi3x/examples/dynapi.api.dynlayer-destroy.html N dynapi3x/examples/dynapi.api.dynlayer-slide.html N dynapi3x/examples/dynapi.api.ext.dragevent.html N dynapi3x/examples/dynapi.api.ext.inline.html N dynapi3x/examples/dynapi.api.ext.keyevents.html N dynapi3x/examples/dynapi.api.mouseevent.html N dynapi3x/examples/dynapi.document.capturehotkey.html N dynapi3x/examples/dynapi.functions.getimage.html N dynapi3x/examples/dynapi.functions.html N dynapi3x/examples/dynapi.functions.imageloader.html N dynapi3x/examples/dynapi.functions.subclassevent.html N dynapi3x/examples/dynapi.fx.bezier.html N dynapi3x/examples/dynapi.fx.motionx.html N dynapi3x/examples/dynapi.fx.pathanim-glide.html N dynapi3x/examples/dynapi.fx.pathanim-slide.html N dynapi3x/examples/dynapi.fx.pathanim.html N dynapi3x/examples/dynapi.fx.timerx.html N dynapi3x/examples/dynapi.gui.graphics.html N dynapi3x/examples/dynapi.gui.loadpanel.html N dynapi3x/examples/dynapi.library-file1.js N dynapi3x/examples/dynapi.library-file2.js N dynapi3x/examples/dynapi.library-load.html N dynapi3x/examples/dynapi.util.datasource-forms.asp N dynapi3x/examples/dynapi.util.datasource-forms.html N dynapi3x/examples/dynapi.util.datasource-paging.asp N dynapi3x/examples/dynapi.util.datasource-paging.html N dynapi3x/examples/dynapi.util.datasource-testfile.html N dynapi3x/examples/dynapi.util.datasource.html N dynapi3x/examples/dynapi.util.ioelement-post.html N dynapi3x/examples/dynapi.util.ioelement-postresponse.asp N dynapi3x/examples/dynapi.util.ioelement-postresponse.php N dynapi3x/examples/dynapi.util.ioelement-soda.html N dynapi3x/examples/dynapi.util.ioelement-sync.html N dynapi3x/examples/dynapi.util.ioelement-testfile.html N dynapi3x/examples/dynapi.util.ioelement-upload.html N dynapi3x/examples/dynapi.util.ioelement.html N dynapi3x/examples/iofileupload.asp N dynapi3x/examples/soda-jscalc-app.asp N dynapi3x/examples/soda-nsync.html N dynapi3x/examples/soda-tester-vb.asp N dynapi3x/examples/soda-tester.html N dynapi3x/examples/soda-vbscalc-app.asp N dynapi3x/examples/soda.jscript.asp N dynapi3x/examples/soda.vbscript.asp N dynapi3x/examples/speedtest_dynlayer-basic.html N dynapi3x/examples/speedtest_dynlayer-deep_nest.html N dynapi3x/examples/speedtest_dynlayer-oncreate.html N dynapi3x/examples/upload.asp N dynapi3x/examples/images/arrowdown.gif N dynapi3x/examples/images/arrowleft.gif N dynapi3x/examples/images/arrowright.gif N dynapi3x/examples/images/arrowup.gif N dynapi3x/examples/images/btn_delete.gif N dynapi3x/examples/images/btn_first.gif N dynapi3x/examples/images/btn_last.gif N dynapi3x/examples/images/btn_new.gif N dynapi3x/examples/images/btn_next.gif N dynapi3x/examples/images/btn_prev.gif N dynapi3x/examples/images/btn_save.gif N dynapi3x/examples/images/btn_undo.gif N dynapi3x/examples/images/calc.gif N dynapi3x/examples/images/downsrc.gif N dynapi3x/examples/images/eicon1.gif N dynapi3x/examples/images/eicon1_off.gif N dynapi3x/examples/images/eicon2.gif N dynapi3x/examples/images/eicon3.gif N dynapi3x/examples/images/left.gif N dynapi3x/examples/images/oversrc.gif N dynapi3x/examples/images/pixel.gif N dynapi3x/examples/images/src.gif N dynapi3x/examples/loadpanel/file1.html N dynapi3x/examples/loadpanel/file2.html N dynapi3x/examples/loadpanel/file3.html N dynapi3x/examples/mypackage/myobject1.js N dynapi3x/examples/mypackage/myobject2.js N dynapi3x/examples/mypackage/myobject3.js N dynapi3x/src/dynapi.js N dynapi3x/src/api/dyndocument.js N dynapi3x/src/api/dynlayer_ie.js N dynapi3x/src/api/dynlayer_ns4.js N dynapi3x/src/api/dynlayer_ns6.js N dynapi3x/src/api/dynlayer_opera.js N dynapi3x/src/api/event.js N dynapi3x/src/api/mouse_ie.js N dynapi3x/src/api/mouse_ns4.js N dynapi3x/src/api/mouse_ns6.js N dynapi3x/src/api/ext/dragevent.js N dynapi3x/src/api/ext/dynkeyevent.js N dynapi3x/src/api/ext/dynlayer_inline.js N dynapi3x/src/ext/debug.html N dynapi3x/src/ext/debug.js N dynapi3x/src/ext/debug_icon.gif N dynapi3x/src/ext/debug_imgclear.gif N dynapi3x/src/ext/debug_imgclear_on.gif N dynapi3x/src/ext/debug_imgeval.gif N dynapi3x/src/ext/debug_imgeval_on.gif N dynapi3x/src/ext/debug_imghelp.gif N dynapi3x/src/ext/debug_imghelp_down.gif N dynapi3x/src/ext/debug_imghelp_on.gif N dynapi3x/src/ext/debug_imginspect.gif N dynapi3x/src/ext/debug_imginspect_on.gif N dynapi3x/src/ext/debug_imgnext.gif N dynapi3x/src/ext/debug_imgnext_on.gif N dynapi3x/src/ext/debug_imgnormal.gif N dynapi3x/src/ext/debug_imgnormal_down.gif N dynapi3x/src/ext/debug_imgnormal_on.gif N dynapi3x/src/ext/debug_imgprev.gif N dynapi3x/src/ext/debug_imgprev_on.gif N dynapi3x/src/ext/debug_imgreload.gif N dynapi3x/src/ext/debug_imgreload_on.gif N dynapi3x/src/ext/debug_imgwatch.gif N dynapi3x/src/ext/debug_imgwatch_down.gif N dynapi3x/src/ext/debug_imgwatch_on.gif N dynapi3x/src/ext/functions.color.js N dynapi3x/src/ext/functions.date.js N dynapi3x/src/ext/functions.image.js N dynapi3x/src/ext/functions.math.js N dynapi3x/src/ext/functions.numeric.js N dynapi3x/src/ext/functions.string.js N dynapi3x/src/ext/functions.system.js N dynapi3x/src/ext/library.html N dynapi3x/src/ext/library.js N dynapi3x/src/fx/bezier.js N dynapi3x/src/fx/circleanim.js N dynapi3x/src/fx/hoveranim.js N dynapi3x/src/fx/imganim.js N dynapi3x/src/fx/motionx.js N dynapi3x/src/fx/pathanim-full.js N dynapi3x/src/fx/pathanim.js N dynapi3x/src/fx/pathanim_glide.js N dynapi3x/src/fx/pathanim_slide.js N dynapi3x/src/fx/thread.js N dynapi3x/src/fx/timerx.js N dynapi3x/src/gui/dynimage.js N dynapi3x/src/gui/graphics.js N dynapi3x/src/gui/loadpanel.js N dynapi3x/src/util/cookie.js N dynapi3x/src/util/datasource.js N dynapi3x/src/util/ioelement.js N dynapi3x/src/util/ioelement.soda.js N dynapi3x/src/util/ioelement.sync.js N dynapi3x/src/util/url.class N dynapi3x/src/util/url.java N dynapi3x/tshoot/10_deep_nesting.html N dynapi3x/tshoot/background_image.html N dynapi3x/tshoot/cancel_navigation.html N dynapi3x/tshoot/click_event_ sethtml.html N dynapi3x/tshoot/doctype_clientHeight.html N dynapi3x/tshoot/drag_forms.html N dynapi3x/tshoot/drag_frames.html N dynapi3x/tshoot/inflow_scrollbar.html N dynapi3x/tshoot/link_and_form_events_NS4.html N dynapi3x/tshoot/mouse_over_out_events.html N dynapi3x/tshoot/multiple_precreate_events.html N dynapi3x/tshoot/precreation_speedtest.html N dynapi3x/tshoot/secondary_inheritance.html N dynapi3x/tshoot/z_index_bug.html N dynapi3x/tshoot/_drag_frame1.html N dynapi3x/tshoot/_drag_frame2.html No conflicts created by this import ***** Bogus filespec: - ***** Bogus filespec: Imported ***** Bogus filespec: sources |
From: Robert R. <rai...@us...> - 2002-04-10 19:00:37
|
Update of /cvsroot/dynapi/dynapi2x/src/util In directory usw-pr-cvs1:/tmp/cvs-serv19326/src/util Added Files: cookie.js ioelement.js Log Message: initial import --- NEW FILE --- /* DynAPI Distribution Cookie functions The DynAPI Distribution is distributed under the terms of the GNU LGPL license. */ /* This is not tested, should work like this: var c = new Cookie('mycookieset'); c.set('name','MyName'); // re-saves cookie each time a value is added c.add('array',[1,2,3]); var c = new Cookie('mycookieset'); // auto-retrieves saved cookie object var name = c.get('name'); var array = c.get('array'); array[array.length] = 4; c.add('name',name+' MyLastName'); c.add('array',array); */ function Cookie(name) { this.inherit('DynObject'); this.name = name; this.data = {}; this.exists = false; var c = dynapi.functions.getCookie(this.name); if (c) { this.exists = true; var a = c.split(','); var x,n,v; for (var i=0;i<a.length;a++) { x = a[i].split('='); n = x[0]; v = x[1]; if (n && v) this.data[n] = v; } //var i1 = c.indexOf('expires='); this._save(false); } else this._save(); } var p = dynapi.setPrototype('Cookie','DynObject'); p.get = function(name) { return this.data[name]; }; p.getAll = function() { return data; }; p.add = function(name,value) { this.data[name] = value; this._save(); }; p.remove = function(name) { this.data[name] = null; delete this.data[name]; this._save(); }; p.setExpires = function(days) { this.expires = days; }; p.destroy = function() { dynapi.functions.deleteCookie(this.name); }; p._save = function(write) { var s = ''; for (var i in this.data) { var v = this.data[i]; if (v) s += i + '=' + escape(v) + ','; } s = s.substring(0,s.length-1); var f = 'Saved'; if (write!=false) dynapi.functions.setCookie(this.name,s,this.expires); else f = 'Found'; dynapi.debug.print(f+' Cookie: name='+this.name+' data={'+s+'}'); }; dynapi.functions.setCookie = function(name,value,days) { if (days) { var date=new Date(); date.setTime(date.getTime()+(days*24*60*60*1000)); var expires="; expires="+date.toGMTString(); } else expires = ""; dynapi.frame.document.cookie = name+"="+value+expires+"; path=/"; }; dynapi.functions.getCookie = function(name) { var nameEQ = name+"="; var ca = dynapi.frame.document.cookie.split(';'); for(var i=0;i<ca.length;i++) { var c=ca[i]; while (c.charAt(0)==' ') c=c.substring(1,c.length); if (c.indexOf(nameEQ)==0) return c.substring(nameEQ.length,c.length); } return null; }; dynapi.functions.deleteCookie = function(name) { dynapi.functions.setCookie(name,"",-1); }; --- NEW FILE --- /* DynAPI Distribution IOElement Class The DynAPI Distribution is distributed under the terms of the GNU LGPL license. requires: dynapi.api.DynLayer // pages loaded must include this code: <script> if (parent.DynAPI) parent.IOElement.notify(this); </script> */ function IOElement(hiddenThreads) { this.inherit('DynLayer'); this._elmID = this.id+'elm'; this._requests = {}; // [url,data,fn,method,id,timer,cargo] this._cargoID=''; this._requestList = []; this._requestIndex = -1; this._retryID=null; this.api={}; this.api.source=this; this.failTime = 50000; this._elmBusy=[]; this._elmThread=null; this._maxThreads=(hiddenThreads>1 && hiddenThreads<=8)? hiddenThreads : 1; this._hidden = (hiddenThreads!=null)? true : false; if (this._hidden) { this.setVisible(false); var o = this; if (!dynapi.loaded) { dynapi.onLoad(function() { dynapi.document.addChild(o); }); } else dynapi.document.addChild(o); } this.addEventListener(IOElement.events); }; var p = dynapi.setPrototype('IOElement','DynLayer'); IOElement.events = { onprecreate : function(e) { var html=[],o = e.getSource(); if (o._hidden) { if (dynapi.ua.ns4) html = ['<ilayer name="',o._elmID,'" visibility="hide" width=0 height=0></ilayer>']; else if (dynapi.ua.ie) html = ['<iframe name="',o._elmID,'" style="width:0px; height:0px; visibility:hidden"></iframe>']; //style="display:none" else html = ['<iframe name="',o._elmID,'" style="width:0px; height:0px; visibility:hidden"></iframe>']; o.html=html.join('') o._elmThread=o._elmID; o._elmBusy[o._elmID]=false; for(var i=1;i<o._maxThreads;i++){ // setup additional threads html[1]=o._elmID+'x'+i; o.html+=html.join(''); o._elmBusy[o._elmID+'x'+i]=false; // flag as not busy } }else{ if (dynapi.ua.ns4) o.html = '<layer width='+o.w+' height='+o.h+' name="'+o._elmID+'" visibility="inherit"></ilayer>'; else o.html = '<iframe name="'+o._elmID+'" width='+o.w+' height='+o.h+' scrolling="no" frameborder="no" marginwidth=0 marginheight=0 style="overflow:hidden;"></iframe>'; } }, oncreate : function(e) { var o = e.getSource(); if (o.getScope()) { if (o._requestList.length>0) o._doRequest(); } } }; p.setTimeout=function(ms){if(!isNaN(ms))this.failTime=ms;} p.getVariable = function(name) { return this.getScope()[name]; }; p.getScope = function() { var scope; if (dynapi.ua.ns4) scope = this.doc.layers[this._elmThread]; else scope = window.frames[this._elmThread]; if (!scope) return alert('IOElement Error: no load element'); else return scope; }; p.getCargo=function(){ if(!this._cargoID) return null; var c=this._requests[this._cargoID][6]; this._requests[this._cargoID][6]=null; return c; }; p.isBusy = function(){ for (var i in this._elmBusy){ if (this._elmBusy[i]==false) return false; };return true }; p.cancelAll=function(){ this._requests=[]; for (var i in this._elmBusy){ this.elmThread=i; this._clearScope(); } } p.cancel= function(id){ id=(id)? id:this._retryID; var req=this._requests[id]; if(req){ this._elmBusy[req[4]]=false; this._requests[id]=null; this._clearScope() return true; } }; p.retry=function(id){ id=(id)? id:this._retryID; var req=this._requests[id]; if(req) { window.setTimeout(this+'._doRequest("'+id+'")',50); return true; } } p.get = function(url,data,fn,cargo) { return this._request(url,data,fn,'get',cargo); }; p.post = function(url,data,fn,cargo) { return this._request(url,data,fn,'post',cargo); }; p._request = function(url,data,fn,method,cargo) { var id = Math.random()+''; // create random load ID to ensure no caching id = 'io'+id.substring(2); dynapi.debug.print("IOElement "+method+" request"); if (typeof(url)=="string") this._requests[id] = [url,data,fn,method,null,null,cargo]; else if (method=="get") { for (var i=0;i<url.length;i++) { // support loading several files, attach handler to last file var src = url[i]; if (i<url.length-1) this._requests[id] = [src,null,null,method,null,null,cargo]; else this._requests[id] = [src,data,fn,method,null,null]; } } this._requestList[this._requestList.length] = id; window.setTimeout(this+'._doRequest()',20); return id }; p._doRequest = function(id) { if (this.isBusy()) return; else { if (this._requestIndex<this._requestList.length-1 || id) { if(!id){ // direct request - used by the retry() method this._requestIndex++; id = this._requestList[this._requestIndex]; } var r = this._requests[id]; var url = r[0]; var data = r[1]; var fn = r[2]; var method = r[3]; var elm = this._getFreeElm(); if(!elm) return; r[4]=this._elmThread; if (url.indexOf('http')!=0) { if (url.substr(0,1)=='/') url = 'http://'+dynapi.frame.document.domain+url; else url = dynapi.documentPath+url; } url += (url.indexOf('?')==-1)? '?' : '&'; url += 'ioRequestID='+id+'&ioElementID='+this.id; r[5] = window.setTimeout(this+'._notify("'+id+'","'+url+'",false)',this.failTime); if (method=="get" || dynapi.ua.ns4) { if (data) { for (var i in data) { url += '&'+i+'='+escape(data[i]); } } if (dynapi.ua.ns4) elm.src = url; else elm.document.location.href = url; }else { var str = '<html><body><form name="ioDataForm" action="'+url+'" method="post">'; var i; if (data) { for (i in data) { str += '<input name="'+i+'" type="hidden">'; } } str += '</form></body></html>'; elm.document.open(); elm.document.write(str); elm.document.close(); var f = elm.document.forms['ioDataForm']; if (!f) return alert("IOElement Error: no form element found"); if (f && data) { for (i in data) { f[i].value = data[i]; } } f.submit(); } this.invokeEvent("request"); }else { // finished all } } }; p._clearScope=function(){ var doc=this.getScope().document if(doc){doc.open();doc.write('');doc.close()} }; p._getFreeElm= function(){ for (var i in this._elmBusy){ if (this._elmBusy[i]==false){ this._elmThread=i;this._elmBusy[i]=true return this.getScope() } } }; p._notify = function(id, url, success) { var fn,req=this._requests[id]; if(!req)return; var s = (success!=null)? success : true; if (!this._elmBusy[req[4]] && success) { if(dprint)dprint('IOElement Error: '+id+' '+this._elmID+' '+url); return; } clearTimeout(req[5]); this._elmThread=req[4]; fn = (req) ? req[2]:null; if(!s)this._retryID=id; this._cargoID=id; if (fn) { var e = new DynEvent("load",this); fn(e, s); }else{ this.invokeEvent("response",null,s) } this._cargoID=''; if(s)this._requests[id] = null; else this._clearScope(); this._elmBusy[req[4]] = false; this._doRequest(); }; IOElement.notify = function(elm, fn, success) { // ds: added success parameter to nicely relay server generated error messages if (elm) { var url, id; if (dynapi.ua.ns4) url = elm.src; else url = elm.document.location.href; if (url) { elm.args = dynapi.functions.getURLArguments(url); var id = elm.args["ioRequestID"]; var obj = DynObject.all[elm.args["ioElementID"]]; if (obj!=null && id!=null) { elm.onload = function() { if (fn) fn(obj); // send obj fn - rmo obj._notify(id,url, success); // ds: success }; return obj; } else { return false; } } } return null; }; |
From: Robert R. <rai...@us...> - 2002-04-10 19:00:26
|
Update of /cvsroot/dynapi/dynapi2x/src In directory usw-pr-cvs1:/tmp/cvs-serv14312/src Removed Files: dynapi-2.5mode.js dynapi.js Log Message: removed --- dynapi-2.5mode.js DELETED --- --- dynapi.js DELETED --- |
From: Robert R. <rai...@us...> - 2002-04-10 18:40:46
|
Update of /cvsroot/dynapi/dynapi2x/src/dynapi In directory usw-pr-cvs1:/tmp/cvs-serv14312/src/dynapi Removed Files: debug.html debug.js functions.js library.html library.js Log Message: removed --- debug.html DELETED --- --- debug.js DELETED --- --- functions.js DELETED --- --- library.html DELETED --- --- library.js DELETED --- |
From: Robert R. <rai...@us...> - 2002-04-10 18:40:45
|
Update of /cvsroot/dynapi/dynapi2x/src/dynapi/api In directory usw-pr-cvs1:/tmp/cvs-serv14312/src/dynapi/api Removed Files: dyndocument.js dynlayer.js event.js mouse.js Log Message: removed --- dyndocument.js DELETED --- --- dynlayer.js DELETED --- --- event.js DELETED --- --- mouse.js DELETED --- |
From: Robert R. <rai...@us...> - 2002-04-10 18:40:37
|
Update of /cvsroot/dynapi/dynapi2x/src/api In directory usw-pr-cvs1:/tmp/cvs-serv17174/api Log Message: Directory /cvsroot/dynapi/dynapi2x/src/api added to the repository |
From: Robert R. <rai...@us...> - 2002-04-10 18:40:15
|
Update of /cvsroot/dynapi/dynapi2x/src/dynapi/fx In directory usw-pr-cvs1:/tmp/cvs-serv14312/src/dynapi/fx Removed Files: circleanim.js hoveranim.js imganim.js pathanim.js pathanim_glide.js pathanim_slide.js thread.js Log Message: removed --- circleanim.js DELETED --- --- hoveranim.js DELETED --- --- imganim.js DELETED --- --- pathanim.js DELETED --- --- pathanim_glide.js DELETED --- --- pathanim_slide.js DELETED --- --- thread.js DELETED --- |
From: Robert R. <rai...@us...> - 2002-04-10 18:39:58
|
Update of /cvsroot/dynapi/dynapi2x In directory usw-pr-cvs1:/tmp/cvs-serv19326 Added Files: LICENSE README REVISION Log Message: initial import |
From: Robert R. <rai...@us...> - 2002-04-10 18:39:55
|
Update of /cvsroot/dynapi/dynapi2x/src/ext In directory usw-pr-cvs1:/tmp/cvs-serv17931/ext Log Message: Directory /cvsroot/dynapi/dynapi2x/src/ext added to the repository |
From: Robert R. <rai...@us...> - 2002-04-10 18:39:47
|
Update of /cvsroot/dynapi/dynapi2x/src/fx In directory usw-pr-cvs1:/tmp/cvs-serv17931/fx Log Message: Directory /cvsroot/dynapi/dynapi2x/src/fx added to the repository |
From: Robert R. <rai...@us...> - 2002-04-10 18:39:33
|
Update of /cvsroot/dynapi/dynapi2x/examples/mypackage In directory usw-pr-cvs1:/tmp/cvs-serv14312/examples/mypackage Removed Files: myobject1.js myobject2.js myobject3.js Log Message: removed --- myobject1.js DELETED --- --- myobject2.js DELETED --- --- myobject3.js DELETED --- |
From: Robert R. <rai...@us...> - 2002-04-10 18:39:29
|
Update of /cvsroot/dynapi/dynapi2x/src/dynapi/api/ext In directory usw-pr-cvs1:/tmp/cvs-serv14312/src/dynapi/api/ext Removed Files: dragevent.js dynkeyevent.js dynlayer_inline.js Log Message: removed --- dragevent.js DELETED --- --- dynkeyevent.js DELETED --- --- dynlayer_inline.js DELETED --- |
From: Robert R. <rai...@us...> - 2002-04-10 18:39:00
|
Update of /cvsroot/dynapi/dynapi2x/src/gui In directory usw-pr-cvs1:/tmp/cvs-serv19326/src/gui Added Files: dynimage.js graphics.js loadpanel.js Log Message: initial import --- NEW FILE --- /* DynAPI Distribution DynImage Class The DynAPI Distribution is distributed under the terms of the GNU LGPL license. */ function DynImage(img,id,alt) { this.img = img; this.id = id; this.alt = alt; }; DynImage.prototype.toString = function() { return "<img src=\""+this.img.src+"\""+ (this.id?" id=\""+this.id+"\"":"")+ (this.img.width?" width=\""+this.img.width+"\"":"")+ (this.img.height?" height=\""+this.img.height+"\"":"")+ (this.alt?" alt=\""+this.alt+"\"":"")+">"; }; DynImage.image = []; DynImage.getImage = function(src,w,h) { for (var i=0;i<DynImage.image.length;i++) { if (DynImage.image[i].img.src==src) return DynImage.image[i].img; } var index = DynImage.image.length; DynImage.image[index] = {}; if (w&&h) { DynImage.image[index].img = new Image(w,h); DynImage.image[index].img.w = w; DynImage.image[index].img.h = h; } else DynImage.image[index].img = new Image(); DynImage.image[index].img.src = src; if (!DynImage.timerId) DynImage.timerId=setTimeout('DynImage.loadercheck()',50); return DynImage.image[index].img; }; DynImage.loadercheck=function() { DynImage.ItemsDone=0; var max = DynImage.image.length; var dimg = null; for (var i=0; i<max; i++) { dimg = DynImage.image[i]; if (dimg.img.complete) { DynImage.ItemsDone+=1; if (dimg.img.w) dimg.img.width = dimg.img.w; if (dimg.img.h) dimg.img.height = dimg.img.h; } } if (DynImage.ItemsDone<max) DynImage.timerId=setTimeout('DynImage.loadercheck()',25); else DynImage.timerId=null; }; dynapi.onLoad(DynImage.loaderStart); --- NEW FILE --- // 2D Graphics Package // Drawing routines for DynLayer // Copyright (C) 2000-2001 Dan Steinman, Guoyi Chao, Rob Breeds // Guoyi Chao: drawing routines for line, circle, ellipse // Dan Steinman: DynAPI2 support, object wrappers, VML support, improved routines for line, rect, and fills() // Rob Breeds: improve performance on ellipse and circle algorithms, and added line thicknesses support // Distributed under the terms of the GNU Library General Public License function Graphics(dlyr) { this._dlyr = dlyr; this._s = "yellow"; this._w = 1; this._f = "white"; } Graphics.prototype.setStrokeColor = function(v) {this._s = v}; Graphics.prototype.setStrokeWeight = function(v) {this._w = v}; Graphics.prototype.setFillColor = function(v) {this._f = v}; Graphics.prototype.drawPixel = function(x,y) { drawPixel(x,y,this._s,this._w,this); }; Graphics.prototype.drawLine = function(x1,y1,x2,y2) { var shape; if (Graphics.useVML) { shape = new VML_Line(x1,y1,x2,y2,this._w,this._s); this._dlyr.elm.appendChild(shape.elm); } else { shape = new Line(x1,y1,x2,y2,this._w,this._s); this._dlyr.addChild(shape); } return shape; }; Graphics.prototype.drawCircle = function(x,y,radius) { var shape; if (Graphics.useVML) { // bug in IE, always fills anyway shape = new VML_Oval(x,y,2*radius,2*radius,this._w,this._s, dynapi.ua.ie5?this._dlyr.bgColor:false); this._dlyr.elm.appendChild(shape.elm); } else { shape = new Circle(x,y,radius,this._w,this._s); this._dlyr.addChild(shape); } return shape; }; Graphics.prototype.fillCircle = function(x,y,r) { fillCircle(x+r,y+r,r,this.color,this._dlyr); }; Graphics.prototype.drawOval = function(x,y,w,h) { drawEllipse(x+w/2,y+h/2,w,h,this.color,false,this.thickness,this._dlyr); }; Graphics.prototype.fillEllipse = function(x,y,w,h) { drawEllipse(x+w/2,y+h/2,w,h,this.color,true,this.thickness,this._dlyr); }; Graphics.prototype.drawRect = function(x,y,w,h) { drawRect(x,y,w,h,this.color,this.thickness,this._dlyr); }; Graphics.prototype.fillRect = function(x,y,w,h) { fillRect(x,y,w,h,this.color,this._dlyr); }; Graphics.prototype.clear = function() { this.deleteAllChildren(); this.setHTML(''); }; Graphics.useVML = false; if (dynapi.ua.ie && dynapi.ua.v>=5) { // include active-x component for IE5+ Graphics.useVML = true; var str = '<xml:namespace ns="urn:schemas-microsoft-com:vml" prefix="v"/>'+ '<object id="VMLRender" codebase="vgx.dll" classid="CLSID:10072CEC-8CC1-11D1-986E-00A0C955B42E"></object>'+ '<style>'+ '<!--'+ 'v\\:* { behavior: url(#VMLRender); }'+ '-->'+ '</style>'; if (dynapi.loaded) { dynapi.frame.document.body.appendChild('beforeEnd',str); } else { document.write(str); } } // Drawing Routines function Pixel(x,y,color,t) { // not really needed this.DynLayer = DynLayer; this.DynLayer(); this.setLocation(x,y); this.setSize(t||1,t||1); this.setBgColor(color||"black"); } Pixel.prototype = new DynLayer(); function drawPixel(x,y,color,t,lyr) { lyr.addChild( new DynLayer('',Math.round(x),Math.round(y),t,t,color) ) } function Shape() { this.DynLayer = DynLayer; this.DynLayer(); this.setStrokeColor("black"); this.setStrokeWeight(1); } Shape.prototype = new DynLayer(); Shape.prototype.setStrokeColor = function(v) {this._s = v}; Shape.prototype.setStrokeWeight = function(v) {this._w = v}; function Line(x1,y1,x2,y2,w,s) { this.Shape = Shape; this.Shape(); this.setStrokeWeight(w); this.setStrokeColor(s); var dx = Math.min(x1,x2); var dy = Math.min(y1,y2); var width = Math.abs(x2-x1); var height = Math.abs(y2-y1); this.setLocation(dx, dy); if(x1==x2||y1==y2) { // straight line this.setBgColor(s); if(x1==x2) this.setSize(w,height); // vertical else this.setSize(width,w); //horizontal } else { // diagonal this.setSize(width,height); var nx1 = x1-dx; var ny1 = y1-dy; var nx2 = x2-dx; var ny2 = y2-dy; drawLine(nx1,ny1,nx2,ny2,s,w,this); } } Line.prototype = new Shape(); function VMLElement() { this.elm = null }; VMLElement.prototype.createShape = function(type) { this.elm = document.createElement('v:'+type); } VMLElement.prototype.setLocation = function() {}; function VML_Line(x1,y1,x2,y2,w,s) { this.VMLElement = VMLElement; this.VMLElement(); this.createShape("line"); this.elm.from = x1+'px ,'+y1+'px'; this.elm.to = x2+'px ,'+y2+'px'; this.elm.strokeColor = s; this.elm.innerHTML = '<v:stroke weight="'+w+'px">'; //this.elm.innerHTML = '<v:stroke weight="'+this.thickness+'px" color="'+this.color+'">'; //"<v:line id='line" + nnode + "' from=" + x1 + "," + y1 +"' to='" + x2 + "," + y2 +"'><v:stroke weight='2px' color='black'/></v:line>"; }; VML_Line.prototype = new VMLElement(); function VML_Oval(x,y,width,height,w,s,fc) { this.VMLElement = VMLElement; this.VMLElement(); this.elm = document.createElement('v:oval'); this.elm.style.position = "absolute"; this.elm.style.left = x+"px"; this.elm.style.top = y+"px"; this.elm.style.width = width+"px"; this.elm.style.height = height+"px"; this.elm.strokeColor = s; if (fc) { this.elm.fillColor = fc; this.elm.fill = true; } else this.elm.fill = false; this.elm.innerHTML = '<v:stroke weight="'+w+'px">'; }; VML_Oval.prototype = new VMLElement(); function drawLine(x1,y1,x2,y2,color,t,lyr) { var flag = (Math.abs(y2-y1) > Math.abs(x2-x1)) var dx,dy,x,y,e,xstep,ystep if (flag) dx=Math.abs(y2-y1),dy=Math.abs(x2-x1),x=y1,y=x1 else dx=Math.abs(x2-x1),dy=Math.abs(y2-y1),x=x1,y=y1 xstep=x1>x2?-1:1 ystep=y1>y2?-1:1 if(x1==x2||y1==y2) { if(x1==x2) { var ny1 = Math.min(y1,y2) var ny2 = Math.max(y1,y2) lyr.addChild( new DynLayer('',x1,ny1,t,(ny2-ny1)*t,color) ) return } else { var nx1 = Math.min(x1,x2) var nx2 = Math.max(x1,x2) lyr.addChild( new DynLayer('',nx1,y1,(nx2-nx1)*t,t,color) ) return } } // Bresenham Method Begin var e=-dx for(var count=0;count<=dx;count++) { if (flag) drawPixel(y,x,color,t,lyr) else drawPixel(x,y,color,t,lyr) if (flag) x+=ystep else x+=xstep e+=dy<<1 if(e>=0) { if(flag) y+=xstep else y+=ystep e-=dx<<1 } } return } function Circle(x,y,radius,w,s) { this.Shape = Shape; this.Shape(); this.setStrokeWeight(w); this.setStrokeColor(s); this.setLocation(x,y); this.setSize(2*radius, 2*radius); drawCircle(0+radius,0+radius,radius-1,this._s,this._w,this); } Circle.prototype = new Shape(); function drawCircle(centerX,centerY,radius,color,t,lyr) { var x = centerX; var y = centerY; var cx = 0 var cy = radius var df = 1 - radius var d_e = 3 var d_se = -(radius<<1) + 5 do { drawPixel(x+cx, y+cy, color,t,lyr) if (cx) drawPixel(x-cx, y+cy, color,t,lyr) if (cy) drawPixel(x+cx, y-cy, color,t,lyr) if ((cx) && (cy)) drawPixel(x-cx, y-cy, color,t,lyr) if (cx != cy) { drawPixel(x+cy, y+cx, color,t,lyr) if (cx) drawPixel(x+cy, y-cx, color,t,lyr) if (cy) drawPixel(x-cy, y+cx, color,t,lyr) if (cx && cy) drawPixel(x-cy, y-cx, color,t,lyr) } if (df < 0) { df += d_e d_e += 2 d_se += 2 } else { df += d_se d_e += 2 d_se += 4 cy-- } cx++ } while (cx <= cy) } function fillCircle(x,y,radius,color,lyr) { var cx = 0 var cy = radius var df = 1 - radius var d_e = 3 var d_se = -(radius<<1) + 5 do { fillRect(x-cy, y-cx, cy<<1, cx<<1, color,lyr) if (df < 0) { df += d_e d_e += 2 d_se += 2 } else { if (cx != cy) fillRect(x-cx, y-cy, cx<<1, cy<<1, color,lyr) df += d_se d_e += 2 d_se += 4 cy-- } cx++ } while (cx <= cy) } function drawEllipse(cx,cy,rx,ry,color,filled,t,lyr) { var x,y,a2,b2, S, T a2 = rx*rx b2 = ry*ry x = 0 y = ry S = a2*(1-2*ry) + 2*b2 T = b2 - 2*a2*(2*ry-1) symmPaint(cx,cy,x,y,color,filled,t,lyr) do { if (S<0) { S += 2*b2*(2*x+3) T += 4*b2*(x+1) x++ } else if (T<0) { S += 2*b2*(2*x+3) - 4*a2*(y-1) T += 4*b2*(x+1) - 2*a2*(2*y-3) x++ y-- } else { S -= 4*a2*(y-1) T -= 2*a2*(2*y-3) y-- } symmPaint(cx,cy,x,y,color,filled,t,lyr) } while (y>0) } //Bresenham's algorithm for ellipses function symmPaint(cx,cy, x, y, color, filled, t, lyr){ if (filled) { fillRect ( cx-x, cy-y, x<<1, y<<1, color, lyr ) } else { drawPixel ( cx-x, cy-y, color, t,lyr ) drawPixel ( cx+x, cy-y, color, t,lyr ) drawPixel ( cx-x, cy+y, color, t,lyr ) drawPixel ( cx+x, cy+y, color, t,lyr ) } } function drawRect(x,y,w,h,color,t,lyr) { lyr.addChild( new DynLayer('',x,y,w,t,color) ) lyr.addChild( new DynLayer('',x,y,t,h,color) ) lyr.addChild( new DynLayer('',x+w-t,y,t,h,color) ) lyr.addChild( new DynLayer('',x,y+h-t,w,t,color) ) } function fillRect(x,y,w,h,color,lyr) { lyr.addChild( new DynLayer('',x,y,w,h,color) ) } --- NEW FILE --- /* DynAPI Distribution LoadPanel Class The DynAPI Distribution is distributed under the terms of the GNU LGPL license. Requirements: dynapi.api [dynlayer, dyndocument, browser, events] */ function LoadPanel(url) { this.DynLayer = DynLayer; this.DynLayer(); this.autoH=true; this.autoW=false; this.isILayer=false; this.isIFrame=!(dynapi.ua.ie5 && is.platform=='win32'); this._isReloading = false; this.addEventListener(LoadPanel.events); this.url = url; }; LoadPanel.events = { oncreate : function(e) { var o = e.getSource(); if (!o._isReloading) { o.setURL(o.url); } } }; LoadPanel.prototype = new DynLayer(); LoadPanel.prototype._DynLayer_setSize = DynLayer.prototype.setSize; LoadPanel.prototype.setSize = function(w,h) { var r = this._DynLayer_setSize(w,h); if (r && this._created && !this._isReloading && this.autoH && this.url) this.reload(); }; LoadPanel.prototype.setAutoResizeWidth=function(b) {this.autoW=b}; LoadPanel.prototype.setAutoResizeHeight=function(b) {this.autoH=b}; LoadPanel.prototype.useILayer=function(b) { if (dynapi.ua.ns4) { this.isILayer=b; if (this.created) this.reload(); } }; LoadPanel.prototype.useIFrame=function(b) { if (is.def) { this.isIFrame=b; if (this.created) this.reload(); } }; LoadPanel.prototype.insertInlineElements=function() { if (dynapi.ua.ie) { if (this.isIFrame) this.setHTML('<IFRAME ID="'+this.id+'loadElement" STYLE="visibility: hidden; display: none;"></IFRAME>',false); else this.setHTML('<DIV ID="'+this.id+'loadElement" STYLE="behavior:url(#default#download)" style="display: none;"></DIV>',false); } else if (dynapi.ua.ns4 && this.isILayer) this.setHTML('<ilayer></ilayer>',false); else if (dynapi.ua.ns6) this.setHTML('<IFRAME ID="'+this.id+'loadElement" STYLE="visibility: hidden;"></IFRAME>',false); }; LoadPanel.prototype.findInlineElements=function() { if (dynapi.ua.ie) { if (this.isIFrame) this.loadElement=document.frames(this.id+'loadElement'); else this.loadElement=document.all(this.id+'loadElement'); alert(this.loadElement); } else if (dynapi.ua.ns4) { if (this.isILayer) this.loadElement=this.doc.layers[0]; else this.loadElement=this.elm; } else if (dynapi.ua.ns6) this.loadElement=document.getElementById(this.id+'loadElement'); }; LoadPanel.prototype.getFileScope=function() { if (!this.loadElement) return null; return this.loadElement; }; LoadPanel.prototype.clearFile=function() { this.url=null; if (this.isILayer) { this.loadElement.document.write(''); this.loadElement.document.close(); } else this.reload(); }; LoadPanel.prototype.getURL=function() { return this.url; }; LoadPanel.prototype.setURL = function(url) { alert('yo') if (!url) return; else if (!this._created) this.url = url; else LoadPanel.queue.add(url,this); }; LoadPanel.prototype.reload=function() { this._isReloading=true; this.setHTML(''); this.setURL(this.url); this._isReloading=false; }; LoadPanel.prototype.loadHandler=function(url) { this.url=url; if (dynapi.ua.ie5 && !this.isIFrame && this.elm && this.elm.all) { var imgs = this.elm.all.tags("img"); for (var i=0;i<imgs.length;i++) { if (imgs[i].readyState == 'uninitialized') imgs[i].src = imgs[i].src; } } if (dynapi.ua.ns4 && this.isILayer) { var w = this.loadElement.document.width; var h = this.loadElement.document.height; } else { var w = this.getContentWidth()||this.w; var h = this.getContentHeight()||this.h; } this._DynLayer_setSize(this.autoW?w:null,this.autoH?h:null); this._isReloading=false; this.invokeEvent('load'); }; function LoadQueue() { this.queue=new Array(); this.index=0; }; LoadQueue.prototype.toString=function() { return "LoadPanel.queue"; }; LoadQueue.prototype.add=function(url,loadpanel) { var q=this.queue.length; this.queue[q]=[url,loadpanel]; this.loadNext(); }; LoadQueue.prototype.loadNext=function() { dprint('loadnext') if (!this.busy && this.queue[this.index]) { this.busy=true; var lpanel=this.currentLoadPanel=this.queue[this.index][1]; var url=this.currentURL=this.queue[this.index][0]; if (dynapi.ua.ns4) { if (!lpanel.loadElement) { lpanel.insertInlineElements(); lpanel.findInlineElements(); } DynAPI.document.releaseMouseEvents(); var lyr=lpanel.elm; while(lyr.parentLayer) lyr=lyr.parentLayer; lyr.onload=LoadQueue.loadHandler; lpanel.loadElement.onload=LoadQueue.loadHandler; lpanel.loadElement.src=url; } else { if (!lpanel.loadElement) { alert('no') lpanel.insertInlineElements(); lpanel.findInlineElements(); } if (dynapi.ua.ie) { if (lpanel.isIFrame) { lpanel.loadElement.document.isLoading=true; lpanel.loadElement.location=url; lpanel.timerID=setInterval(this.toString() + '.loadTimer()',250); } else lpanel.loadElement.startDownload(url,LoadQueue.loadHandler); } else if (dynapi.ua.ns6) { lpanel.timerID=setInterval(this.toString() + '.loadTimer()',250); lpanel.loadElement.src=url; } } Methods.removeFromArray(this.queue,this.index); } }; if (dynapi.ua.ns6) { LoadQueue.prototype.loadTimer=function() { var lpanel=this.currentLoadPanel; if (!document.getElementById(lpanel.id+'loadElement')) { clearInterval(lpanel.timerID); LoadQueue.continueLoad(); } else if (lpanel.loadElement.contentDocument && lpanel.loadElement.contentDocument.body.innerHTML != document.body.innerHTML) { clearInterval(lpanel.timerID); LoadQueue.loadHandler(lpanel.loadElement.contentDocument); } } } else if (dynapi.ua.ie) { LoadQueue.prototype.loadTimer=function() { var lpanel=this.currentLoadPanel; if (!document.frames(lpanel.id+'loadElement')) { clearInterval(lpanel.timerID); LoadQueue.continueLoad(); } else if (!lpanel.loadElement.document.isLoading && (lpanel.loadElement.document.readyState=='interactive' || lpanel.loadElement.document.readyState=='complete')) { clearInterval(lpanel.timerID); LoadQueue.loadHandler(lpanel.loadElement.document.body.innerHTML); } } } LoadQueue.loadHandler=function(e) { var q=LoadPanel.queue; var lp=q.currentLoadPanel; if (q.currentLoadPanel) { if (dynapi.ua.ie) { lp.elm.innerHTML=e; if (lp.isIFrame) lp.loadElement=null; } else if (dynapi.ua.ns4) { var lyr = lp.elm; while(lyr.parentLayer != window) lyr = lyr.parentLayer; lyr.onload = function(){}; lp.loadElement.onload = function(){}; } else if (dynapi.ua.ns6) { var html=e.body.innerHTML; lp.elm.innerHTML=html; lp.loadElement=null; } setTimeout('LoadQueue.continueLoad()',200); } }; LoadQueue.continueLoad=function() { var q=LoadPanel.queue; q.currentLoadPanel.loadHandler(q.currentURL); q.busy=false; if (q.queue[q.index]) q.loadNext(); else if (dynapi.ua.ns4) DynAPI.document.captureMouseEvents(); }; LoadPanel.queue=new LoadQueue(); |
From: Robert R. <rai...@us...> - 2002-04-10 18:38:16
|
Update of /cvsroot/dynapi/dynapi2x/src/api/ext In directory usw-pr-cvs1:/tmp/cvs-serv18017/ext Log Message: Directory /cvsroot/dynapi/dynapi2x/src/api/ext added to the repository |
From: Robert R. <rai...@us...> - 2002-04-10 18:37:40
|
Update of /cvsroot/dynapi/dynapi2x/src/dynapi/gui In directory usw-pr-cvs1:/tmp/cvs-serv14312/src/dynapi/gui Removed Files: dynimage.js graphics.js loadpanel.js Log Message: removed --- dynimage.js DELETED --- --- graphics.js DELETED --- --- loadpanel.js DELETED --- |
From: Robert R. <rai...@us...> - 2002-04-10 18:36:09
|
Update of /cvsroot/dynapi/dynapi2x/src/util In directory usw-pr-cvs1:/tmp/cvs-serv17931/util Log Message: Directory /cvsroot/dynapi/dynapi2x/src/util added to the repository |