Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] dynamically hide an element
- From: dnunes at gmail.com (diego nunes)
- Subject: [Javascript] dynamically hide an element
- Date: Thu Nov 30 22:57:26 2006
> On Thursday 30 November 2006 14:09, diego nunes wrote:
> > The name of a property should reflect its meaning, not its
> > formatting.
On 11/30/06, Mark Kelly <javascript@xxxxxxxxxxxxxxx> wrote:
> I agree wholeheartedly, but in this case, surely the formatting *is* the
> meaning
Not exactly. Why is the element hidden? Like... Is it because it's
not focused you don't want it to show up? Is it because other action
(on some "parent" element) triggered it, and bla bla bla...?
> the class has no other purpose, and only a single attribute. I
> pondered for quite a while over this, and would like to hear how you would
> do it.
Mark, if you one day decide that, instead of being completely
hidden, the element should just be translucid or something? If it just
change its position and size? If with a new redesign of the
application (or website, whatever) it would be interesting to have all
the elements showing, only with a minor difference between them?
Think about why the element is hidden, not that it *is* and that's it.
The class can be "unfocused", instead, or anything that make clear
why the element is having that formatting, but without describing the
formatting itself. It will keep its meaning valid even with a redesign
of the interface, or a slight change in the behavior.
Amplexos.
--
diego nunes
dnunes.com
- References:
- [Javascript] dynamically hide an element
- From: Peter Brunone
- [Javascript] dynamically hide an element
- From: Aaron Bassett
- [Javascript] dynamically hide an element
- From: diego nunes
- [Javascript] dynamically hide an element
- From: Mark Kelly
- [Javascript] dynamically hide an element
- Prev by Date: [Javascript] dynamically hide an element
- Previous by thread: [Javascript] dynamically hide an element
- Next by thread: [Javascript] dynamically hide an element
- Index(es):