Topic awaiting preservation: DIV layers not showing up after appendChild in IE (Page 1 of 1) |
|
---|---|
Nervous Wreck (II) Inmate From: |
posted 09-27-2002 19:56
I basically have two container DIVs filled with childNodes that are divs. I am moving any selected divs from one container to the other (think of the Available columns/Selected Columns GUI in SQLServer's DTS Data Driven Query Task Properties, where you have four buttons between the two lists move all to, move selected to, move all from, move selected from) Hopefully, you get my drift. Anyway, I have everything moving correctly, the actual content are just names and they are being sorted alphabetically, and that works fine. Now the problem, I also am displaying the lines with the even line = grey, odd line = white look. I do this on both containers the source container works fine, the destination container however does not display the contents until the first element (initially the only visible one) is click then the GUI is rendered with everything displayed. I've also noticed that if I move say 10 items to the destination container and I'm working with a newly loaded page, only the first item moved is rendered. I click it, then the other nine appear sorted and colored correctly. Now say I remove (pick a number), everything looks fine. Now say I add an amount greater than 10, only the top ten are displayed until I click one of them, now they are all displayed and from that point on, that number will be displayed correctly without a click (Does that make sense?). I've been pulling my hair out over this because the two containers use the same source to sort and color, and the source container works correctly, but the destination container doesn't. code: function _sortList(destination) {
|
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 09-27-2002 21:58
That sounds reeeeally complicated. I got lost. Any chance of seeing an example? |
Nervous Wreck (II) Inmate From: |
posted 09-27-2002 23:48
Slime I sent the code to you via email bc I don't have a site that I can use. |
Nervous Wreck (II) Inmate From: |
posted 09-28-2002 02:56
Slime thanks for taking the time to look at that for me. After spending countless cycles on the web searching I just replaced the divs within my container div with spans (I probably should have done that from the start) and it worked. I still haven't discovered why the divs behaved that way. I'll save that stress for another day.... |