But to store metadata in objects - is doing overjob - elements might
be added or deleted or changed their style or state - and syncronyze
elmenets state with their object mappers - is very hard and
useless!!!!

On 30 дек, 14:17, RobG <[email protected]> wrote:
> On Dec 29, 8:38 pm, buda <[email protected]> wrote:
>
> > > It is useful, but I don't think it's worth the trouble and I
> > > personally don't use it. IE's DOM is one example of what makes custom
> > > attributes troublesome - you never know which issues you will run into
> > > due to every custom attribute ending up as a property of an element.
> > > What if attribute name (which becomes a property name) is a reserved
> > > word (according to ECMAScript/JScript)? What if it corresponds to some
> > > IE's proprietary element property? Which of them takes precedence and
> > > which issues it might cause? etc.
>
> > I completle confused at finally - where to store elements metadata?
>
> DOM elements are designed to provide a user interface, they shouldn't
> be used as business objects or to implement business logic.
>
> > What is the best way?
>
> Use javascript objects, use DOM elements and events to interact with
> the user.
>
> --
> Rob
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to