Yes, you can do all of this.  What @kangax is saying is that you can't
extend the DOM *prototypes* in IE, so that all new elements that are created
in the document, whether by setting innerHTML, or whatever, have some new
method.  Once you fetch an object from the DOM, you can add whatever you
want to it, but it's just inconvenient to have to do it all the time
manually.  Prototype helps you out a lot, but there are cases when you just
have to do it yourself.

And text property means that the key is text, not the value.  You can make
properties refer arbitrarily to other objects.

-Fred

On Wed, Jun 18, 2008 at 11:27 AM, EricGoogle <[EMAIL PROTECTED]>
wrote:

> I need to have complex state objects holding perhaps other objects -
> not just text data - hence why setting a text property isn't quite
> cutting it either.
>
> I'd really like to have some object references held in the state
> properties for my custom Element object.
>
> ie..   myDivObject.objectReference = someOtherObject;    etc...
>
> Will this work???   $(myElement).setProperty( 'objRef',
> myObject ) ???? or does setProperty only take strings???
>

-- 
Science answers questions; philosophy questions answers.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to rubyonrails-spinoffs@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to