KSS Opener: Introduction
KSS is Ajax framework used in Plone-3.0 that allows Python programmers who want to build Ajax application do that without learning Javascript and browser DOM implementation bugs/features. KSS allows pluggable components. KSS Opener is one to enable some long-expected Plone features.
Plone-3.0 is knocking our doors. KSS is coming to shed some light upon Ajax for Plone Community. Myroslav Opyr of Quintagroup in his Introduction to KSS Opener post is revealing KSS component that can help Plone Application developers:
After installation product offers following event:
opener-selector:opener-init {
evt-init-elementSelector: element-selector;
}All elements that matches opener-selector will get controller that will offer expand/collapse functionality with mouse click.
Real-life example is:
.term:opener-init {
evt-init-elementSelector: '.details';
}and having HTML code:
<div class="term">
History
<div class="details">
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vestibulum
iaculis eros eu purus. Integer accumsan leo id lorem viverra vulputate.
Donec feugiat nunc molestie massa nonummy pulvinar. Proin porta pede
sit amet lectus. Duis leo urna, tempor non, condimentum condimentum,
commodo non, libero. Integer feugiat, pede at.
</div>
</div>
will produce into something like:
If you do not see a flash movie above, see original post.
tags: KSS | KSS Opener | Plone
Why did you remove Geir's post?
Hi,
There was a useful comment here a few hours, where Geir pointed out that you shouldn't use something like div class="term", but use the correct structural element, which would be a definition list.
Creating div class="term" is equivalent to doing div class="header1" instead of using the h1 element.
Any reason why it was removed? It was pointed out in a very polite manner, and he's absolutely right.