> > >
> > > @Stefan:
> > >
> > > It was also my plan to include a hiding functionality for certain rows
> > > in HTML via javascript but I did not find
> > > the time so far. So if you are doing any similar please post back the
> > > result so we maybe can intergate it into the
> > > codebase.
> > >
> > Grubi,
> > I will see what I can do, implementing supression by state is no
> > problem, but for the other columns, the JS script would have to fill an
> > array with the available values to be able to filter by available items.
> > I will report back, when I have something.
> >
> > ---
> > Stefan
> >
> I have added a basic show/hide feature to the HTML template:
>
> Place at the end of the head:
>
---snip
> The problem is that all the information gets paced inside the first column
> after a row is hidden and shown again, so I will have to investigate in the
> correct usage of the display property or if I need to use a different one.
>
> ---
> Stefan
>
OK, I have fond the solution, you should read the manual before you use code
working for divisions for tables.
The corrected code that needs to be placed into the head is:
<script type="text/javascript" language="JavaScript">
<!--
function HideState(StateClass) {
var TRarray = document.getElementsByTagName('tr');
for ( var i = 0; i < TRarray.length; i++ ) {
if ( TRarray.item(i).className.match(StateClass) ) {
if ( TRarray.item(i).style.visibility == "collapse" ) {
TRarray.item(i).style.visibility = "visible";
} else {
TRarray.item(i).style.visibility = "collapse";
}
}
}
}
// -->
</script>
So now we can at least hide rows based on install states.
---
Stefan
-------------------------------------------------------------------------
wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/
_______________________________________________
wpkg-users mailing list
[email protected]
http://lists.wpkg.org/mailman/listinfo/wpkg-users