эта функция работает в одном из моих файлов, но не работает в другом, я проверил все имена и т.д., но не смог найти .....
в первом файле
<script type="text/javascript" >
function fillDataInCommand()
{
// var abc = document.myApp.getDataForCommand();
var abc ="heelo syed ammar hassan is here";
document.getElementById("commandtextarea").value = abc;
}
</script>
<form id="form1" name="form1" method="post" action="">
<label>
<textarea name="commandtextarea" style="background-color:#CCCCCC" cols="80" rows="20" wrap="off" id="commandtextarea"></textarea>
</label>
</form>
и в другом;
document.write ("<div align='center'><textarea name='commandtextarea' style='background-color:#EFEFEF' cols ='70' rows='20' rap='off' id='commandtextarea' readonly='readonly'>abc</textarea></div>");
alert(document.getElementById("commandtextarea").value.toString());