Hello,
I have the following code, which displays some non-updateable information in a text box.
The problem is that the scroll bar is greyed out on the box. If I remove the "disabled=true" statement near the end of the code, I do get a working vertical scroll bar--but then the text within the box can be modified. I don't want that.
Is there some way I can activate the scroll bar, but still leave the text greyed out?
Thanks in advance...
I have the following code, which displays some non-updateable information in a text box.
Code:
document.write("<table> <tr><td class='cellTitleRow' align='center' >PLAN</td></tr>");
document.write("<tr><td>");
queryObj.setParam(2,1);
var worked = cmdApp.executeCommand();
var currentText;
if (worked) {
currentText = cmdApp.getValueByName("DESCR",1);
}
else {
appletExecutionError("Can't retrieve information from Database", document.cmdApp);
}
document.write("<TEXTAREA ROWS=4 COLS='72%' disabled=true>"+currentText+"</TEXTAREA>");
document.write("</td></tr> </table> <br>");
The problem is that the scroll bar is greyed out on the box. If I remove the "disabled=true" statement near the end of the code, I do get a working vertical scroll bar--but then the text within the box can be modified. I don't want that.
Is there some way I can activate the scroll bar, but still leave the text greyed out?
Thanks in advance...