Re: [Dynapi-Dev] An easy way to Subclass/Overwrite functions

2003-04-04 Thread Benoit Marchant
See my comments bellow On Friday, April 4, 2003, at 02:25 PM, Raymond Irving wrote: Please see below: --- Benoit Marchant <[EMAIL PROTECTED]> wrote: I would prefer I prefer the syntax super.setSize(w,h). What about adding DynAPIObject.prototype.overwrite = function(sC,n) { var c = this.f

Re: [Dynapi-Dev] An easy way to Subclass/Overwrite functions

2003-04-04 Thread Raymond Irving
Please see below: --- Benoit Marchant <[EMAIL PROTECTED]> wrote: > I would prefer > I prefer the syntax super.setSize(w,h). > > What about adding > > DynAPIObject.prototype.overwrite = function(sC,n) { > var c = this.frame[sC]; > var superMethod = > c.prototype._superPrototype[n]; >

Re: [Dynapi-Dev] An easy way to Subclass/Overwrite functions

2003-04-04 Thread Benoit Marchant
This is a very good idea. See bellow my feedback On Friday, April 4, 2003, at 07:03 AM, Raymond Irving wrote: Hi, I've been thinking about creating an easier way to subclass/overwrite methods: DynObject.prototype.subclass = function(n,fn){ if(!this._sbCls) this._sbCls=1; var om = '_sbMethod'+

[Dynapi-Dev] An easy way to Subclass/Overwrite functions

2003-04-04 Thread Raymond Irving
Hi, I've been thinking about creating an easier way to subclass/overwrite methods: DynObject.prototype.subclass = function(n,fn){ if(!this._sbCls) this._sbCls=1; var om = '_sbMethod'+(this._sbCls++); // old method eval('fn='+(fn+'').replace(/\~subclass\(/g,'this.'+om+'('));

Re: [Dynapi-Dev] Using datasource on NS4 Windows!

2003-04-04 Thread Dan Willemsen
On Fri, 2003-04-04 at 00:29, Raymond Irving wrote: > Hi, > > The attached file contains the fix for this problem. > > I can't see why we can't do a elm.src='about:blank' > with ns4. Does ns4 have cross-domain scripting > security enabled? I believe it does, at least with some configurations, I