Re: [Dynapi-Help] if the else based inheritance

2001-02-21 Thread Doug Melvin
true. but you CAN generate the script which reates the prototyp using another script. - Original Message - From: "Michael Pemberton" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 20, 2001 6:31 PM Subject: Re: [Dynapi-Help] if the else bas

Re: [Dynapi-Help] if the else based inheritance

2001-02-21 Thread Michael Pemberton
what inherit? Eytan Heidingsfeld wrote: > If you use my inherit (just like yours so I don't know why yours won't > work?) You can inherit based on an if clause since the inherit is just a > static function. > 8an > > ___ > Dynapi-Help mailing list > [E

RE: [Dynapi-Help] if the else based inheritance

2001-02-21 Thread Eytan Heidingsfeld
If you use my inherit (just like yours so I don't know why yours won't work?) You can inherit based on an if clause since the inherit is just a static function. 8an ___ Dynapi-Help mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listi

Re: [Dynapi-Help] if the else based inheritance

2001-02-20 Thread Doug Melvin
how about using eval(0 to build the function? - Original Message - From: "Jeff Greenberg" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 20, 2001 5:26 PM Subject: Re: [Dynapi-Help] if the else based inheritance > Does the conditional functi

Re: [Dynapi-Help] if the else based inheritance

2001-02-20 Thread Michael Pemberton
t; > Sent: Tuesday, February 20, 2001 5:26 PM > Subject: Re: [Dynapi-Help] if the else based inheritance > > > Does the conditional function declarations of JS 1.5 solve that? I know > this only > > applies to NS6, but I am curious and don't have a copy of NS6 at

Re: [Dynapi-Help] if the else based inheritance

2001-02-20 Thread Michael Pemberton
the best way of doing this is as follows: function createFunction(url) { if (url) return new LoanPanel(url); else return new DynLayer(); }; Jeff Greenberg wrote: > Does the conditional function declarations of JS 1.5 solve that? I know this only > applies to NS6, but I a

Re: [Dynapi-Help] if the else based inheritance

2001-02-20 Thread Jeff Greenberg
Does the conditional function declarations of JS 1.5 solve that? I know this only applies to NS6, but I am curious and don't have a copy of NS6 at hand right now to try... anybody else? Jeff Greenberg [EMAIL PROTECTED] Michael Pemberton wrote: > it has been discussed a few days ago. JS doesn't

Re: [Dynapi-Help] if the else based inheritance

2001-02-20 Thread Michael Pemberton
it has been discussed a few days ago. JS doesn't allow alternative inheretance. Ramon Buckland wrote: > Hi All, > > I am wanting to do an 'if' based inheritance for an object > > Below is my Object .. if it is passed ('url=url.htm') then I want the object > to inherit the LoadPanel >

[Dynapi-Help] if the else based inheritance

2001-02-20 Thread Ramon Buckland
Hi All, I am wanting to do an 'if' based inheritance for an object Below is my Object .. if it is passed ('url=url.htm') then I want the object to inherit the LoadPanel but if it is passed content, then I want it to inheritjust from DynLayer .. Any ideas .. my p