Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

hide and block dhtml

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ppl,

Can anyone suggest good tutorial for hide and block in dhtml.

Thanks,
shekar
 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving to the HTML and Javascript forum.

Dave
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you mean using


What are you trying to do exactly since your question is short of wide open.

Eric
 
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As Eric points out this is a rather open question, especially since there are a few hidden pitfalls here and you need to understand that there are a lot more possible values for the display style than just "none" and "block".

One that I came across a few months ago deals with displaying table rows. I was working on property sheet for a form designer deals with displaying and hiding rows in a table AND with cross-browser differences.

My property sheet looked great in IE 6 and when I changed widgets on the designer the table expanded or contracted to accomodate the number of properties for the widget. Cool. Then I tried it in Firefox and was totally disappointed and perplexed . Both the property name and its value, which should have been in columns 1 and 2 respectively, were showing up in the first column!

It turned out that I was using "block" unconditionally to display the rows of the table, which works just fine in IE, but does not work in Firefox (or any Gecko-based browser that I've seen). Firefox requires "table-row" vice "block". The worst part is that when I used "table-row" unconditionally, then the IE version broke! That meant that I had to test for the browser type (which I was already for other cross-browser issues) and use "block" or "table-row" as appropriate.

Note that there are ten, count 'em TEN, different table related values for the display style and additional ones for other cases. So, depending upon you needs it may not be as simple as "none" or "block".

[ June 07, 2006: Message edited by: Linda Walters ]

[ June 07, 2006: Message edited by: Linda Walters ]
[ June 07, 2006: Message edited by: Linda Walters ]
 
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic