[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

Div content overlaps due to Ajax

Asked by inditrozen in Hypertext Markup Language (HTML), Asynchronous Javascript and XML (AJAX)

Tags: HTML DIV AJAX


Hi All,

I have two divs like shown below. Contents of Div on top is fetched using the ajax call. Ajax method is called using javascript on the body onload. Problem is when ajax method returns the html, contents of the div on top (ajaxDiv) overlaps with the contents of the div below.


Giving fix height for the div on top is not possible because in some situation div on top (ajaxDiv) may not have anything to display and it that situation, empty space should not be shown.

Can anybody tell me how to solve this issue?

TIA and Best Regards
1:
2:
3:
4:
5:
6:
<html>
<body onload = "javascript:fetchInnerHtmlFor('ajaxDiv')">
	<div id="ajaxDiv"/>
	<div id ="otherStaticHtmlDiv">
		some text here
	</div>
[+][-]03/19/09 04:49 AM, ID: 23928427Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/19/09 06:31 AM, ID: 23929228Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/19/09 06:36 AM, ID: 23929278Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/19/09 07:43 AM, ID: 23930046Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/19/09 10:54 AM, ID: 23932228Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/20/09 01:37 AM, ID: 23937659Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/20/09 01:54 AM, ID: 23937708Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/20/09 02:22 AM, ID: 23937792Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091021-EE-VQP-81 - Hierarchy / EE_QW_3_20080625