My biggest problem with DOM is getting to the elemnts on my page. Consider this structure;
Code:
<body>
<table id="header"><tr><th></th></tr></table><br>
<div id="btnBar">
<table id="btntbl">
<tr><form id="tblTree" >
<th align="left" width="30%"></th>
<th align="left" width="30%"></th>
<th width="40%></th>
</tr></form>
</table>
</div>
<Div id="DBStruct" >
<table id="tblList">
<form id="tblColForm" >
<input type=>
<input type=>
<input type=>
<input type=>
</form>
</table>
</div>
<iframe id="displayframe" name="displayframe">
getIt.asp gets loaded here via javascript and contains this form
<form name="dataEdit" id="dataEdit" >
<table id=""displayTable"" >
<input id="thisOne" type="text" Value="" />
</table>
</form>
</iframe>
</body>
I am trying to get to the fields on the form inside the iframe. I have tried this code but it wont execute the second alert.
Code:
function DoButton(which){
alert("Doing button");
alert(document.getElementById("dataEdit").name);
}
I have cut all the garbbage out so you can see thiis clearly. So how would you get the value or place the value of the field "thisOne"?
Thanks, I hope someone sees this in this forum. I just thought it was more appropriate to the DOM forum.