Re: [WSG] hiding content with a click

2005-05-09 Thread Andrew Krespanis
Ooops! I really shouldn't leave things half-baked like that.
If the link in question doesn't do anything without javascript, it is
a wise idea to have it written to the page using js as well.
We don't want any orphan UI elements, do we ;) 

And I even tested this one :]

//let the code begin

http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">

  Hide Content Test
  

function hideStuff() {
   var tr = document.getElementsByTagName('tr');
   for(var i=0; i

Re: [WSG] hiding content with a click

2005-05-09 Thread Parker Torrence
You could employ the same concept that makes this
http://webdesign.parkertorrence.com/designtest/peekaboo.php page work.

Parker
Unfolded WebDesign
http://webdesign.parkertorrence.com

On 5/9/05, john <[EMAIL PROTECTED]> wrote:
> I've been searching for some simple instructions on how to create a link
> that says "hide content" and it will remove a section of text from the
> page.  The layout uses some tables (XHTML Transitional), so it would
> have to hide three 's and shift the content below it up.
> 
> Can somebody please instruct me on a standards-based way of doing this?
> 
> Thanks.
> --
> 
> ~john
> _
> Dr. Zeus Web Design
> http://www.DrZeus.net
> "content without clutter"
> 
> **
> The discussion list for  http://webstandardsgroup.org/
> 
>  See http://webstandardsgroup.org/mail/guidelines.cfm
>  for some hints on posting to the list & getting help
> **
> 
>
**
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list & getting help
**



Re: [WSG] hiding content with a click

2005-05-09 Thread Joshua Street




Use onclick to set the ID of the relevant rows to display:none; or something along these lines.  There's no way that I'm aware of to remove this content without _javascript_, short of doing server-side processing.

On Mon, 2005-05-09 at 11:42 +0100, john wrote:


I've been searching for some simple instructions on how to create a link 
that says "hide content" and it will remove a section of text from the 
page.  The layout uses some tables (XHTML Transitional), so it would 
have to hide three 's and shift the content below it up.

Can somebody please instruct me on a standards-based way of doing this?

Thanks.





Kind Regards,
Joshua Street











Website: http://www.base10solutions.com.au/
Phone: (02) 9898-0060  Fax: (02) 8572-6021
Mobile: 0425 808 469











E-mails and any attachments sent from base10solutions are to be regarded as confidential. Please do not distribute or publish any of the contents of this e-mail without the sender’s consent. If you have received this e-mail in error, please notify the sender by replying to the e-mail, and then delete the message without making copies or using it in any way.

Although base10solutions takes precautions to ensure that e-mail sent from our accounts are free of viruses, we encourage recipients to undertake their own virus scan on each e-mail before opening, as base10solutions accepts no responsibility for loss or damage caused by the contents of this e-mail.








<>

Re: [WSG] hiding content with a click

2005-05-09 Thread Andrew Krespanis
On 5/9/05, john <[EMAIL PROTECTED]> wrote:
>create a link that says "hide content" and it will remove a section
of text from the
> page.  The layout uses some tables (XHTML Transitional), so it would
> have to hide three 's and shift the content below it up.
> 
> Can somebody please instruct me on a standards-based way of doing this?

Quick version, will hide all tr's with a class of 'hide'. Class
attribute may be a space seperated list also, as this script allows
for that.


hide content


function hideStuff() {
tr = document.getElementsByTagName('tr');
for(i=0; i

[WSG] hiding content with a click

2005-05-09 Thread john
I've been searching for some simple instructions on how to create a link 
that says "hide content" and it will remove a section of text from the 
page.  The layout uses some tables (XHTML Transitional), so it would 
have to hide three 's and shift the content below it up.

Can somebody please instruct me on a standards-based way of doing this?
Thanks.
--
~john
_
Dr. Zeus Web Design
http://www.DrZeus.net
"content without clutter"
**
The discussion list for  http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
**