Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #26805
| From | gcf@panix.com (Gordon) |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: Question about appendChild using series of divs |
| Date | 2015-02-05 18:02 +0000 |
| Organization | }"{ }"{ }"{ }"{ |
| Message-ID | <mb0b7v$8qi$1@reader1.panix.com> (permalink) |
| References | <mar78t$fq8$1@panix3.panix.com> <eg3iwu8g0esy$.1mtf8mddprnxc$.dlg@40tude.net> |
JJ <jj4public@vfemail.net>: > On 3 Feb 2015 14:24:13 -0500, Gordon wrote: > > > > While the page is up, if the user clicks on a link within > > one of the five divs, say 'C', another set of divs is similarly > > created, let us say 'c1', 'c2', 'c3', .... These I append > > to div 'C'. I want them to appear below 'C' and before 'D', > > but instead they display below 'E'. > > Check the DOM tree to make sure they're appended into the correct element. > If everything is fine, then the problem is due to CSS/formatting issue. e.g. > elements got wrapped due to fixed container width. > > > My questions are (1) Why, if appending after 'H' works > > as I expect, don't the other appendChild calls? and > > That really depends on the code that isn't provided. You should at least > debug your code and check the DOM tree after appendChild() function calls. > > > (2) How can I get the result I want? Note: I don't > > want to do the work of locating these items on the > > page by numerical coordinates, I want the browser to > > do that work, so the divs will respond to possible > > changes in the size for foregoing material. If > > possible. > > For Firefox, use the DOM Inspector (CTRL+SHIFT+I) or use the one from the > Firebug addon (recommended). Thanks. I mainly wanted to check my assumptions about the correspondence of the order of the divs in the display and the structure of the DOM tree.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Question about appendChild using series of divs gcf@panix.com (Gordon) - 2015-02-03 14:24 -0500
Re: Question about appendChild using series of divs JJ <jj4public@vfemail.net> - 2015-02-04 07:10 +0700
Re: Question about appendChild using series of divs gcf@panix.com (Gordon) - 2015-02-05 18:02 +0000
Re: Question about appendChild using series of divs Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-02-04 14:23 +0100
Re: Question about appendChild using series of divs Tim Streater <timstreater@greenbee.net> - 2015-02-04 13:34 +0000
Re: Question about appendChild using series of divs Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-02-04 15:12 +0100
Re: Question about appendChild using series of divs gcf@panix.com (Gordon) - 2015-02-05 17:59 +0000
Re: Question about appendChild using series of divs Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-02-05 19:21 +0100
Re: Question about appendChild using series of divs John Harris <niam@jghnorth.org.uk.invalid> - 2015-02-05 19:36 +0000
Re: Question about appendChild using series of divs Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-02-07 12:07 +0100
Re: Question about appendChild using series of divs John Harris <niam@jghnorth.org.uk.invalid> - 2015-02-07 15:20 +0000
csiph-web