Forum Moderators: open
<body>
<div id="Header" style="display:block; float:left; width:100%; clear:both;" >
<img src="ToolImages/Oracle.gif" alt="Oracle Logo" style="float:left" >
</div>
<div class="tabber" id="tab1">
<div class="tabbertab">
<h2><a name="tab1">Templates</a></h2>
<div class="tabber" id="tab1-1">
<div class="tabbertab">
<h3>Landing Page</h3>
<textarea class="HTMLArea" name="EditLandingPage" >
<link href="Theme/Flexblue.css" rel="stylesheet" type="text/css">
<link href="Theme/en.css" rel="stylesheet" type="text/css">
<br>
<body class="BODYLanding">
<table title="Menu Bar" class="TABLELogoBar" id="TABLELogoBar" width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px dotted red">
<tr>
<td> </td>
</tr>
</table>
<table title="Tool Bar" id="TABLEToolBar" style="height:32px;border:1px dotted red" width="100%" border="0" cellspacing="0" cellpadding="0" summary="Tool Bar">
<tr>
<td> </td>
</tr>
</table>
<div id="DIVNavPane" onclick="getId(this.id)" class="DIVNavPane" style="height:600px;border:1px dotted red" title="Left Pane" >
</div>
<div id="DIVTaskArea" onclick="getId(this.id)" class="DIVTaskArea" style="height:600px;border:1px dotted red" title="Task Area" >
</div>
</body>
</textarea><br>
But the problem is that on clicking on this DIV, The function is not getting called. Please suggest..
Regarding the Body tags: I had not pasted the entire HTML hence the open bidy tag present.
My HTML in which i have the DIVs are in the text area of another HTML.
I'm not sure what you mean or what you are trying to achieve here? Certainly having 2 body elements (one inside a textarea element) is not valid HTML and is quite probably the cause of your problem.
Do you want the content inside your TEXTAREA to be editable text OR/ part of the DOM in the parent document?
<body>
<div id="Header" style="display:block; float:left; width:100%; clear:both;" >
</div>
<div class="tabber" id="tab1">
<div class="tabbertab">
<h2><a name="tab1">Templates</a></h2>
<div class="tabber" id="tab1-1">
<div class="tabbertab">
<h3>Landing Page</h3>
<textarea class="HTMLArea" name="EditLandingPage" >
<link href="Theme/Flexblue.css" rel="stylesheet" type="text/css">
<link href="Theme/en.css" rel="stylesheet" type="text/css">
<br>
<body class="BODYLanding">
<table title="Menu Bar" class="TABLELogoBar" id="TABLELogoBar" width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px dotted red">
<tr>
<td> </td>
</tr>
</table>
<table title="Tool Bar" id="TABLEToolBar" style="height:32px;border:1px dotted red" width="100%" border="0" cellspacing="0" cellpadding="0" summary="Tool Bar">
<tr>
<td> </td>
</tr>
</table>
<div id="DIVNavPane" class="DIVNavPane" style="height:600px;border:1px dotted red" title="Left Pane" >
<script language="javascript1.2">
document.getElementById('DIVNavPane').onclick = function() {
alert('DIVNavPane');
fnGetId();
}
</script>
</div>
<div id="DIVTaskArea" class="DIVTaskArea" style="height:600px;border:1px dotted red" title="Task Area" >
</div>
</body>
</textarea><br>
i am able to get the alert msg... but when it comes to calling the function.. it gives me an object expedted error...
the JS function is below...
function fnGetId() {
alert("DIVNavPane");
}