On 8/29/07, machineghost <[EMAIL PROTECTED]> wrote: > > The Mochikit Style function "showElement" works as follows: > <code>this.showElement = m.partial(this.setDisplayForElement, > 'block');</code> > > In other words, it sets the display style of the element to "block".
[...] > However, there is another way. > > If this function were instead: > <code>this.showElement = m.partial(this.setDisplayForElement, '');</ > code> > (in other words, if it set the element's display style to an empty > string) > > it would set the element's display style to nothing, which would > effectively set it back to whatever it was originally ("block" for a > block-level element, "inline" for an inline one, etc.). Except that for elements which originally had display:none, showElement would keep them hidden. As documented, the reliable way to show/hide things is using a CSS class for it. -- Leo Soto M. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "MochiKit" group. To post to this group, send email to mochikit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/mochikit?hl=en -~----------~----~----~----~------~----~------~--~---