what about DynAPI.document.all['" + this.id + "'].setbGColor('red');
Works for me.. and requires no adding of code
----- Original Message -----
From: "Eytan Heidingsfeld" <[EMAIL PROTECTED]>
To: "Dynapi-Dev" <[EMAIL PROTECTED]>
Sent: Tuesday, March 06, 2001 9:32 AM
Subject: [Dynapi-Dev] Objects array
> I'm not sure you have noticed but in my DynLayer there is a property
called
> index. There is also an array called Objects. I think that for purposes
like
> starting new threads for certain method calls (to eliminate out of stack
> space errors or other workarounds) we should make every widget add this
> code. It is very simple you just need to add in the declaration
> function myWidget(){
> blah
> blah
> this.index = Objects.length;
> Objects[this.index] = this;
> }
>
> Then when you want to refrence it (let us say in a setTimeout) you just do
> the following:
> setTimeout("Objects["+this.index"+"].dostuff",100);
>
>
> What do you think?
> 8an
>
>
> _______________________________________________
> Dynapi-Dev mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-dev
---
Outgoing mail is certified Virus Free by AVG Free Edition
Download at: http://www.grisoft.com/html/us_index.cfm
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.231 / Virus Database: 112 - Release Date: 2/12/01
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-dev