|
[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. |
|
|
|
|
Asked by inditrozen in Hypertext Markup Language (HTML), Asynchronous Javascript and XML (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>
|
20091021-EE-VQP-81 - Hierarchy / EE_QW_3_20080625