Hi there,
I've come across http://www.barelyfitz.com/projects/tabber/index.php
which allows easy Javascript creation of tabs. The only problem I
currently have is, that in my portlet environment it's nearly
impossible to remove all extra markup between the different tabs and
so the script doesn't work as needed.
My idea is to improve it so we don't need to outer <div
class="tabber"e lement and collect all <div class="tabberta b "and
group them automatically in a generated tab div using javascript. Then
we could use that script similar to lightbox ones by simply defining
what div's shall be grouped using tabs and the rest is done
automatically - no matter what markup lies between those tabbed divs.
We could also use some kind of selector like we know from lightbox
scripts as lightbox[g1]...
<div class="tabbed_g roup1">...conte nt...</div>
<div class="tabbed_g roup1">...conte nt...</div>
<div class="tabbed_g roup1">...conte nt...</div>
and
<div class="tabbed_g roup2">...conte nt...</div>
<div class="tabbed_g roup2">...conte nt...</div>
Can this be done?
I've come across http://www.barelyfitz.com/projects/tabber/index.php
which allows easy Javascript creation of tabs. The only problem I
currently have is, that in my portlet environment it's nearly
impossible to remove all extra markup between the different tabs and
so the script doesn't work as needed.
My idea is to improve it so we don't need to outer <div
class="tabber"e lement and collect all <div class="tabberta b "and
group them automatically in a generated tab div using javascript. Then
we could use that script similar to lightbox ones by simply defining
what div's shall be grouped using tabs and the rest is done
automatically - no matter what markup lies between those tabbed divs.
We could also use some kind of selector like we know from lightbox
scripts as lightbox[g1]...
<div class="tabbed_g roup1">...conte nt...</div>
<div class="tabbed_g roup1">...conte nt...</div>
<div class="tabbed_g roup1">...conte nt...</div>
and
<div class="tabbed_g roup2">...conte nt...</div>
<div class="tabbed_g roup2">...conte nt...</div>
Can this be done?
Comment