amit_w29
10-16-2006, 01:20 AM
Hi all
I am desperatly looking for a solution.
I have a problem with nested div tags, following is the code.
<html>
<head>
<script>
function open()
{
document.getElementById('middle').innerHTML='<object type="text/html" data="jsp/client/administration.htm" width="600" height="500"></object>';
}
</script>
</head>
<body>
<div id='top'><a href="#" onClick="openHtml()">open</a></div>
<div id='middle'></div>
<div id='foot'></div>
</body></html>
now the problem is i am opening a html file in middle div tag using object reference in java script.
But inside administration page i have another link which should change the content of div with "foot" id in main window.
And i gets element 'foot' is undefined error. It seems like the page in inner div tag cannot access the other elements in parent page.
Please help me out.
thanks in advance.
I am desperatly looking for a solution.
I have a problem with nested div tags, following is the code.
<html>
<head>
<script>
function open()
{
document.getElementById('middle').innerHTML='<object type="text/html" data="jsp/client/administration.htm" width="600" height="500"></object>';
}
</script>
</head>
<body>
<div id='top'><a href="#" onClick="openHtml()">open</a></div>
<div id='middle'></div>
<div id='foot'></div>
</body></html>
now the problem is i am opening a html file in middle div tag using object reference in java script.
But inside administration page i have another link which should change the content of div with "foot" id in main window.
And i gets element 'foot' is undefined error. It seems like the page in inner div tag cannot access the other elements in parent page.
Please help me out.
thanks in advance.