[pmwiki-users] Show/hide or toggle tables?

Donald Z. Osborn dzosborn at gmail.com
Fri Aug 31 20:03:33 CDT 2007


Okay, there is a more: The same box running on the Soft-Flow page at
http://softflow.co.uk/design/Test/ToggleTest (the 6-7 example)

... will not function on my wiki (running 2.1.27). The javascript generated
for the two differs as follows (in respective order):

javascript:toggleObj('box6','show','Show Box 6','Show Box 7','box7')

javascript:toggleObj('box6','hide','Show Box 6','Show Box 7','box7','0','')

(this is with both in same position, showing box 6, the initial box; note
both the hide vs show  and the additional two terms in the second line

Click on "Show box 7" on my wiki and there is no action

Not sure if this would mean anything to someone with more knowledge of how
this should work but I pass it on in case...

Once I can get the example box to work, then the table is the next issue.

TIA for any feedback.

Don


On 8/31/07, Donald Z. Osborn <dzosborn at gmail.com> wrote:
>
> Belated thanks for this Steve. I finally got to it but it isn't working.
>
> I set it up as you suggested, though with tables in the table directive
> form (that I suppose would not make a difference). Also tried with 2 skins
> since one I am using needs updating.
>
> The javascript output is somewhat different (as if I know what I'm talking
> about). Will try some variants on the theme to see what happens.
>
> Don
>
>
>
> On 8/15/07, Steve Glover <steve at fell-services.net > wrote:
> > >
> > > On Tue, 2007-08-14 at 20:51 -0400, DaveG wrote:
> > > > At the very least you could wrap the table in a div, and hide that
> > > div.
> > > > In terms of 'table directives', I'm not sure what you mean. If
> > > you're
> > > > wanting to show/hide rows, then possibly; columns, then no.
> > >
> > > I'm not sure if you can use divs within a table, but what you could do
> > >
> > > is toggle two divs; the first one having just the header row of your
> > > table, the second having the header and body:
> > >
> > > (from the softflow test page)
> > >
> > > (:toggle div=box6 div2=box7 lshow='Show Box 6' lhide='Show Box 7':)
> > > >>id=box6 width=300px border='1px solid #999' padding=5px
> > > bgcolor=#fed<<
> > > !!!!toggle box swap
> > > box 6: initial box
> > > >>id=box7 width=300px border='1px solid #999' padding=5px
> > > bgcolor=#efe<<
> > > !!!!toggle box swap!
> > > box 7: second box
> > > >><<
> > >
> > > Which can be munged into something like:
> > >
> > > (:toggle div=box6 div2=box7 lshow='Show Header' lhide='Show Table':)
> > > >>id=box6<<
> > > ||! Table header ||!Column one ||! Column two||
> > > >>id=box7<<
> > > ||! Table header ||!Column one ||! Column two||
> > > || Row one ||Item one || Item two||
> > > || Row two ||Item three || Item four||
> > > || Row three ||Item five || Item six||
> > > >><<
> > >
> > > Will that do?
> > >
> > > Steve
> > >
> > > >   ~ ~ Dave
> > > >
> > > > Donald Z. Osborn wrote:
> > > > > Can both showhide and toggle be used with all kinds of tables?
> > > (Esp.
> > > > > interested in interaction with table directives)
> > > > >
> > > > > TIA, Don
> > > > >
> > > > > Ref:
> > > > > http://www.pmwiki.org/wiki/Cookbook/ShowHide
> > > > > < http://www.pmwiki.org/wiki/Cookbook/ShowHide>
> > > > > http://www.pmwiki.org/wiki/PmWiki/TableDirectives
> > > > >
> > > > >
> > > > >
> > > ------------------------------------------------------------------------
> > > > >
> > > > > _______________________________________________
> > > > > pmwiki-users mailing list
> > > > > pmwiki-users at pmichaud.com
> > > > > http://www.pmichaud.com/mailman/listinfo/pmwiki-users
> > > >
> > > > _______________________________________________
> > > > pmwiki-users mailing list
> > > > pmwiki-users at pmichaud.com
> > > > http://www.pmichaud.com/mailman/listinfo/pmwiki-users
> > > --
> > > Steve Glover at                          email:
> > > steve at fell-services.net
> > > SDSS, EDINA, University of Edinburgh,          tel: +44 (0)131-650
> > > 2908
> > > Causewayside House, 160 Causewayside,          fax: +44 (0)131-650
> > > 3308
> > > Edinburgh EH9 1PR                          mobile: +44 (0) 7961 446
> > > 902
> > >
> > >
> >
> >
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20070831/fcae2bd7/attachment.html 


More information about the pmwiki-users mailing list