aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes Alignment of table during filteration Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Alignment of table during filteration" Watch "Alignment of table during filteration" New topic
Author

Alignment of table during filteration

balamurugan velliambalam
Greenhorn

Joined: Jul 13, 2010
Posts: 16
Hi,
Kindly guide me to display table by aligning it while filtering as im filtering row wise its getting collapsed kindly guide me...
function search_value1()
{
var tab=new Array(50);
var row=new Array(150);
var col=new Array(150);
var col1=new Array(150);
var tablelen,rowlen,collen,a,b,c;
var usetemp,usetemp1;
tablelen=document.getElementsByTagName("TABLE").length;
for(a=0;a<tablelen;a++)
{
tab[a]=document.getElementsByTagName("TABLE")[a];
rowlen=tab[a].getElementsByTagName("tr").length;
for(b=1;b<rowlen;b++)
{
row[b]=tab[a].getElementsByTagName("tr")[b];
row[b].style.display='none';
tab[a].style.display='none';
}
}

for(a=0;a<tablelen;a++)
{
tab[a]=document.getElementsByTagName("TABLE")[a];
rowlen=tab[a].getElementsByTagName("tr").length;
for(b=1;b<rowlen;b++)
{
row[0]=tab[a].getElementsByTagName("tr")[0];
row[b]=tab[a].getElementsByTagName("tr")[b];
collen=row[0].getElementsByTagName("th").length;

for(c=0;c<collen;c++)
{
col[c]=row[0].getElementsByTagName("th")[c];

col1[c]=row[b].getElementsByTagName("td")[c];


if(col1[0].innerHTML==document.getElementById('column').value)
{

tab[a].style.display='block';
row[b].style.display='block';
row[0].style.display='block';

}
}
}
}
} thanks
Bear Bibeault
Author and opinionated walrus
Marshal

Joined: Jan 10, 2002
Posts: 50691

Please be sure to use code tags when posting code to the forums. Unformatted or unindented code is extremely hard to read and many people that might be able to help you will just move along to posts that are easier to read. Please click this link ⇒ UseCodeTags ⇐ for more information.

Properly indented and formatted code greatly increases the probability that your question will get quicker, better answers.

And you'll probably need to better explain your problem. Your post is extremely vague.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
 
subject: Alignment of table during filteration
 
Threads others viewed
pagination problem
Help me to have a sortable table in my html profile!
cant display the table
Block Sliding Puzzle
Remove unwanted space before and after the table using javascript
IntelliJ Java IDE

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture