Hi there,
I am using a simple Javascript function to assign a value to a textarea. The code is something like this:
txtareaObj.value = '123';
However the textarea does not get the value assigned to it, for most simulators, except for a few. I'm testing it with simple HTML as below:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Test BlackBerry</title>
<script type="text/javascript">
function TestStampValues(){
TestStampValue('testinp','123');
TestStampValue('testtxt','123');
}
function TestStampValue(tag, value){
var a = document.getElementById(tag);
a.value = value;
}
</script>
</head>
<body>
<form action="ajax.html" method="post" id="testfrm" name="testfrm">
<input type="text" id="testinp" name="testinp" />
<textarea id="testtxt" name="testtxt" cols="10" rows="5"></textarea>
<a href="#" onclick="TestStampValues();">test</a>
</form>
</body>
</html>
I'm testing with several simulators and JDE. Here's the list:
Simulator 4.2.0.67 - 8100 Vodafone - ok
Simulator 4.2.1.90 - 8800 Vodafone - not ok
Simulator 4.2.2.114 - 8300 Vodafone - not ok
JDE 4.0.2 - <b>7290</b> - Not ok
JDE 4.1.0 - <b>7290</b> - Ok
JDE 4.2.1 - 8800 - Not ok
JDE 4.3.0 - 8120 - Not ok
Please help...