I have an asp.net application(MVC) that run on blackberry.In this I have a grid and when user click on a row of the grid i get value from a column that is hidden and i want to show in a textarea.
This is the control that i should click:
Code:
<td colspan="3">
<a id="ModelS<% = Model.Id %>" href="#" onclick ="javascript:ShowBody('B<% = Model.Id %>')">
<%=Model.Subject%>
</a></td>
This is the code for control that i shoult read :
Code:
<td id="B<%=Model.Id%>" style="display: none; " >
<%= Model.Body%>
</td>
When I click i run function :
Code:
function ShowBody(stringId) {
var obj1
var obj2
obj1 = document.getElementById(stringId);
obj2 = document.getElementById("BodyMessDetailed");
obj2.value = obj1.innerText;
}
and here must arrive the information:
Code:
<textarea id="BodyMessDetailed" readonly="readonly" cols="1" rows="10" name="TT"
style="width:98%;height:90%; overflow:scroll;"
>
</textarea>
I checked and if i put a string instead obj1.innertext goes ok .But If I let obj1.innertext ,doesn't put anything.I try with value, textcontent but also doesn't work.
Can somebody help me ?