File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes column hide mozilla display  javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "column hide mozilla display  javascript" Watch "column hide mozilla display  javascript" New topic
Author

column hide mozilla display javascript

Akhilesh Trivedi
Ranch Hand

Joined: Jun 22, 2005
Posts: 1511
How di i hide a table column in mozilla javascript.i am able to hide it either by display : "none" or visibility:"hidden"
but the problem is in re-showing the same.

td.styledisplay="table-column";//does it work?? td.style.visibility="visible";
[ December 27, 2006: Message edited by: Bear Bibeault ]

Keep Smiling Always — My life is smoother when running silent. -paul
[FAQs] [Certification Guides] [The Linux Documentation Project]
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321

I got the References of these two elements of style with following keywords those you can use with in this property.

style.display
style.visibility

hope its helps.


Saifuddin..
[Blog][Linkedin] How To Ask Questions On JavaRanch My OpenSource
Neerav Narielwala
Ranch Hand

Joined: Dec 08, 2006
Posts: 106
document.getElementByID.style.display="none" should work out..


<a href="http://www.java-tips.org/java-tutorials/tutorials/" target="_blank" rel="nofollow">Java Tutorials</a> | <a href="http://www.planet-java.org" target="_blank" rel="nofollow">Java Weblog</a> | <a href="http://computer-engineering.science-tips.org" target="_blank" rel="nofollow">Computing Articles</a>
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60050
    
  65

As Neerav pointed out, display is the rule you seek, not visibility.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Akhilesh Trivedi
Ranch Hand

Joined: Jun 22, 2005
Posts: 1511

Above code works fine when i use tr id = hide_someindex. and it works fine in both IE and Firefox.

However when i use above code for td id = hide_someindex , it gives trouble in Firefox.
Akhilesh Trivedi
Ranch Hand

Joined: Jun 22, 2005
Posts: 1511
please change the onlod event ('a' intentionally removed due to some error.) before trying the code in browser.
 
jQuery in Action, 2nd edition
 
subject: column hide mozilla display javascript
 
Similar Threads
Can I display the record No. in the client GUI?
how to hide and unhide a table in html
Coloring Table Rows
show/hide a row of table
Dynamic Table Columns