This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > November 2004 > Re: Expandable Tables





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: Expandable Tables
Al Sparber- PVII

2004-11-30, 12:17 pm

Our free SwapClass extension will probably be a good solution for you:
http://www.projectseven.com/csslab/swapclass/faq/

--
Al Sparber - PVII
http://www.projectseven.com
DW Extensions - Menu Systems - Tutorials - CSS FastPacks
---------------------------------------------------------
Webdev Newsgroup: news://forums.projectseven.com/pviiwebdev/
CSS Newsgroup: news://forums.projectseven.com/css/
RSS/XML Feeds: http://www.projectseven.com/xml/




"mediavirtue" <webforumsuser@macromedia.com> wrote in message
news:coi4lr$c7u$1@forums.macromedia.com...
> I'm creating a document that needs to have expandable/callapsable
> tables. Is there an "expandable table mode?" Where is this located in
> dreamweaver?
>
> Lisa


David Stiller

2004-11-30, 12:17 pm

> Create the HTML on the fly with JavaScript, or pass variables through the
> querystring to show/hide/create/delete rows and columns as you need.


... maybe the original poster is referring to percentage based tables?
If you need whole columns and/or rows to disappear, JavaScript might be the
way to go. You could also experiment with CSS (consider the display: none;
property). If you merely want an "elastic" table that gets wider or
narrower with the page, try putting a percent value in the width attribute
of the table.

As far as I know, Dreamweaver does not have a built-in behavior for
collapsing columns/rows via the JavaScrip or CSS methods.


David
stiller (at) quip (dot) net
"Luck is the residue of good design."


mediavirtue

2004-11-30, 12:17 pm

Okay, Html with Javascript: What is the code for creating expandable/callapsable tables? I've tried searching and have had no luck.:(
Chris In Madison

2004-11-30, 7:14 pm

If I understand your question correctly, I've done something similar to what
you're asking here:

http://www.midwestsites.com/stellen...mws_001180.hcsp

This is a multi-page form using CSS and Javascript to show/hide various
tables and form fields. It primarily uses the P7_swapClass() function as
noted by Al to show/hide the various DIVs that make up the form as a whole.

I didn't show/hide any specific rows of a single table, however. Each DIV
contains its own table. That may be where it differs from what you're
after.

Best regards,
Chris


Chris In Madison

2004-11-30, 7:15 pm

Just make sure you don't submit the form. This is a live application :-)

Feel free to download the page/source and dissect it, though.

Best regards,
Chris


David Stiller

2004-11-30, 7:15 pm

You can either have JavaScript literally write out the <td> tags you
need, or you can use JavaScript to swap out the CSS classes that would
hide/show the <td> tags you want.

There isn't really a handy-dandy answer. You have to learn CSS (start
with the display: none property) and learn JavaScript, which can provides
the style property of any node (HTML element).

http://www.w3schools.com/css/default.asp
http://www.w3schools.com/js/default.asp


David
stiller (at) quip (dot) net
"Luck is the residue of good design."


mediavirtue

2004-11-30, 7:15 pm

DOES ANYONE KNOW?? What Html with Javascript: code is for creating expandable/callapsable tables
Al Sparber- PVII

2004-11-30, 7:15 pm

Perhaps you are not able to read the posts correctly on the web forums,
but if you ignore all but the answers from either me or Chris in
Madison, you will have a solution that is consistent with your skill
level.

--
Al Sparber - PVII
http://www.projectseven.com
DW Extensions - Menu Systems - Tutorials - CSS FastPacks
---------------------------------------------------------
Webdev Newsgroup: news://forums.projectseven.com/pviiwebdev/
CSS Newsgroup: news://forums.projectseven.com/css/
RSS/XML Feeds: http://www.projectseven.com/xml/




"mediavirtue" <webforumsuser@macromedia.com> wrote in message
news:coi76s$fhp$1@forums.macromedia.com...
> DOES ANYONE KNOW?? What Html with java script: code is for creating
> expandable/callapsable tables


Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews