javascript and multiple divs

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm developing a website that uses javascript to generate most items on the
page. I"m using the DOM construct to generate the items, instead of
document.write. I am using multiple "div"s to position things on the page.
The problem I am seeing is that only the first div added to the page shows
and the rest do not. My website works and is fully functiona in Netscape and
Firefox, so I know that it will work. What would cause only the first div to
show/be added to the page? There are no javascript errors happening.
Thanks in advance for help!
 
I just realized that a div at the bottom of the page shows up, so it appears
that this may be an issue of the overlapping div's not showing. Also, this
page works in Opera...just a problem with IE.
 
In Ready to give up on IE <Ready to give up on (e-mail address removed)>
had this to say:

My reply is at the bottom of your sent message:
I just realized that a div at the bottom of the page shows up, so it
appears that this may be an issue of the overlapping div's not
showing. Also, this page works in Opera...just a problem with IE.

IE may be more strict? Are you missing a </div> tag somewhere? Does your
page validate?

Galen
 
Galen said:
In Ready to give up on IE <Ready to give up on (e-mail address removed)>
had this to say:

My reply is at the bottom of your sent message:


IE may be more strict? Are you missing a </div> tag somewhere? Does your
page validate?

Galen

I do have one div section hardcodedon the page:

<div id="world" style="position:absolute; z-index:1; left:115px; top:193px;
background-color:#000000"><img src="withEarth.jpg" height="600"
width="600"/></div>

All other div's are added in my javascript using the DOM constructs, so I do
not manually write the html using document.write. The javascript runs when
they click on a link. Instead of loading a new page for a link, I create new
divs to display. Of course, I destroy the divs that are currently visible.
I do not have any validation (that I'm aware of). If it is there, I did not
intentionally put it there.

Sorry about Alex.
 
Ready to give up on IE said:
I do have one div section hardcodedon the page:

<div id="world" style="position:absolute; z-index:1; left:115px; top:193px;
background-color:#000000"><img src="withEarth.jpg" height="600"
width="600"/></div>

All other div's are added in my javascript using the DOM constructs, so I do
not manually write the html using document.write. The javascript runs when
they click on a link. Instead of loading a new page for a link, I create new
divs to display. Of course, I destroy the divs that are currently visible.
I do not have any validation (that I'm aware of). If it is there, I did not
intentionally put it there.

Sorry about Alex.

I've narrowed down the problem to involve my use of tables inside the
javascript created divs. The div that was showing at the bottom of the page
only had a <p> element and that one worked. So it has something to do with
my tables inside my div.
 
Ready to give up on IE said:
I've narrowed down the problem to involve my use of tables inside the
javascript created divs. The div that was showing at the bottom of the page
only had a <p> element and that one worked. So it has something to do with
my tables inside my div.

I was not creating a tbody element. Once I created the tbody element and
appended to the table and appended my rows to my tbody instead of my table
element,, Everything shows up now. I'm still having one problem, but I think
it is minor;
 
In Ready to give up on IE <Ready to give up on (e-mail address removed)>
had this to say:

My reply is at the bottom of your sent message:
I was not creating a tbody element. Once I created the tbody element
and appended to the table and appended my rows to my tbody instead of
my table element,, Everything shows up now. I'm still having one
problem, but I think it is minor;

You know, if it was online somewhere and you wanted one of us could probably
take a peek?

Galen
 
Back
Top