P
praskris
Hi,
I am having a requirement that a page which has dynamic div contents
has to be archived in Oracle CLOB.
For eg:-
--- Page1.html ---
<html><head>
<script type="text/javascript">
function loadDiv()
{
document.getElementById("div_1").innerHTML="<html><body>This is
first</body></html>";
document.getElementById("div_2").innerHTML="<html><body>This is
second</body></html>";
document.getElementById("div_account_products_consultants").style.visibility
= "";
document.getElementById("div_account_products_globalCash").style.visibility
= "";
}
</script>
</head>
<body>
<p><b>Dynamic divs <b></p>
<div id="div_1"></div>
<div id="div_2"></div>
</body>
<script>
loadDiv();
</script>
</html>
----------------End of HTML source
If you view source the output of the html, the DIVs willnot have the
contents and hence while archiving the above page, I am struck because
the value to the DIV is based on some lot of conditions and finally i
am getting the contents directly written to the DIV using DTML.
I tried following logic but could not proceed:
1) I tried to write the body contents using document.body.innerHTML
and again rewriting. But it my page is having multiple Body tags and
which creates more problem.
Could you please suggest some ways to proceed with this problem?
I am having a requirement that a page which has dynamic div contents
has to be archived in Oracle CLOB.
For eg:-
--- Page1.html ---
<html><head>
<script type="text/javascript">
function loadDiv()
{
document.getElementById("div_1").innerHTML="<html><body>This is
first</body></html>";
document.getElementById("div_2").innerHTML="<html><body>This is
second</body></html>";
document.getElementById("div_account_products_consultants").style.visibility
= "";
document.getElementById("div_account_products_globalCash").style.visibility
= "";
}
</script>
</head>
<body>
<p><b>Dynamic divs <b></p>
<div id="div_1"></div>
<div id="div_2"></div>
</body>
<script>
loadDiv();
</script>
</html>
----------------End of HTML source
If you view source the output of the html, the DIVs willnot have the
contents and hence while archiving the above page, I am struck because
the value to the DIV is based on some lot of conditions and finally i
am getting the contents directly written to the DIV using DTML.
I tried following logic but could not proceed:
1) I tried to write the body contents using document.body.innerHTML
and again rewriting. But it my page is having multiple Body tags and
which creates more problem.
Could you please suggest some ways to proceed with this problem?