Click here to Skip to main content
15,885,546 members
Home / Discussions / Web Development
   

Web Development

 
QuestionDIV innerHtml for XML? Pin
afronaut6-Dec-04 19:38
afronaut6-Dec-04 19:38 
GeneralFlickering in IE Pin
abc8765-Dec-04 20:11
abc8765-Dec-04 20:11 
GeneralRe: Flickering in IE Pin
Paul Watson6-Dec-04 3:18
sitebuilderPaul Watson6-Dec-04 3:18 
GeneralRe: Flickering in IE Pin
shoaib khan6-Dec-04 16:40
shoaib khan6-Dec-04 16:40 
GeneralDirectory Structure Standards Pin
Its due when5-Dec-04 19:20
Its due when5-Dec-04 19:20 
GeneralWeb Application Versions Pin
jtbaccarat4-Dec-04 15:03
jtbaccarat4-Dec-04 15:03 
Generalproblem with hiding an HTML Table's Column Pin
Hercules19824-Dec-04 11:45
Hercules19824-Dec-04 11:45 
GeneralRe: problem with hiding an HTML Table's Column Pin
alex.barylski5-Dec-04 13:19
alex.barylski5-Dec-04 13:19 
So you've got something of a spreadsheet, which you wish to allow client side interaction. Users should be able to hide/display columns???

The problem your facing is in rendering times?

The way your doing this now is setting each cell's display to none or block???

Well if your doing what I think your doing...your probably right about rendering times. If your iteratively hiding each cell, then the layout engine is recalculating and rendering the document each time you change a cell. So I think it's probably recalculating and rendering each iteration, so instead of doing this iteratively, why not just hide a single element which contains the cells???

<table>
  <tr>
    <td>Column1</td>
    <td>Column2</td>
    <td>Column3</td>
  <tr>
  <tr>
    <td>Column1</td>
    <td>Column2</td>
    <td>Column3</td>
  <tr>
  <tr>
    <td>Column1</td>
    <td>Column2</td>
    <td>Column3</td>
  <tr>
</table>


If you use a table layout like that above, then my initial suggested method won't work, cuz you can store columns in a seperate element. So I then suggest, giving each column the same ID and calling something like:

document.getElementById("column_1").style.display='none';


I'm thinking if each column TD element has the same ID, then when you hide it, the browser should recognize that your hiding any elemnt whose ID is somevalue and should only recalculate and render once...

Just a suggestion

Cheers Smile | :)

It's frustrating being a genius and living the life of a moron!!!
GeneralRe: problem with hiding an HTML Table's Column Pin
Hercules015-Dec-04 20:31
Hercules015-Dec-04 20:31 
GeneralRe: problem with hiding an HTML Table's Column Pin
alex.barylski5-Dec-04 22:15
alex.barylski5-Dec-04 22:15 
GeneralRe: problem with hiding an HTML Table's Column Pin
Hercules0118-Dec-04 19:29
Hercules0118-Dec-04 19:29 
GeneralHTML or Java help Please!! Pin
USMCmaggot4-Dec-04 10:33
USMCmaggot4-Dec-04 10:33 
GeneralRe: HTML or Java help Please!! Pin
alex.barylski5-Dec-04 13:02
alex.barylski5-Dec-04 13:02 
GeneralCancel scrollbar events Pin
alex.barylski4-Dec-04 1:36
alex.barylski4-Dec-04 1:36 
GeneralRe: Cancel scrollbar events Pin
rgoyal14-Dec-04 20:57
rgoyal14-Dec-04 20:57 
GeneralFile download Pin
alex.barylski4-Dec-04 1:32
alex.barylski4-Dec-04 1:32 
GeneralRe: File download Pin
JKroschel6-Dec-04 11:27
JKroschel6-Dec-04 11:27 
GeneralRe: File download Pin
alex.barylski7-Dec-04 17:15
alex.barylski7-Dec-04 17:15 
GeneralPage display with DIV or SPAN Pin
brnwdrng3-Dec-04 8:33
brnwdrng3-Dec-04 8:33 
GeneralRe: Page display with DIV or SPAN Pin
alex.barylski4-Dec-04 1:41
alex.barylski4-Dec-04 1:41 
GeneralKeywords and Search bots Pin
Anonymous3-Dec-04 7:56
Anonymous3-Dec-04 7:56 
GeneralRe: Keywords and Search bots Pin
DavidNohejl3-Dec-04 8:17
DavidNohejl3-Dec-04 8:17 
GeneralRe: Keywords and Search bots Pin
Anonymous3-Dec-04 8:55
Anonymous3-Dec-04 8:55 
GeneralRe: Keywords and Search bots Pin
DavidNohejl3-Dec-04 10:20
DavidNohejl3-Dec-04 10:20 
GeneralRe: Keywords and Search bots Pin
Anonymous3-Dec-04 10:53
Anonymous3-Dec-04 10:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.