Hi,
I am using a PDA containing Windows Mobile 5.0 for my client application in JAVA (JSP & SERVLET).There i am using a dropdown menu on a page.There are 3 different values (A,B,C) in that drop box.My question is that....when i select/change any value from that dropdown menu,color of this row (the row containing dropdown menu)should be changed.There is different color for each value in that dropdown menu.(green for A,red for B,gray for C)
I am using following JAVASCRIPT code in my JSP page,that is working successfully on Desktop PC.
-------------------------------------------------------------------------------------------------------------------
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
<script language = "javascript">
function check(aa)
{
document.getElementById("glow").bgColor=document.g etElementById('abc').value;
}
</script>
</head>
<body>
<form method="POST" action="--WEBBOT-SELF--">
<p> </p>
<p> </p>
<table border="1" width="100%">
<tr id="glow">
<td width="324" > </td>
<td><select size="1" name="D1" onchange="check(this.value)" id="abc">
<option value="green">A</option>
<option value="red">B</option>
<option selected value="gray">-C</option>
</select></td>
</tr>
<tr>
<td width="324"> </td>
<td> </td>
</tr>
<tr>
<td width="324"> </td>
<td> </td>
</tr>
</table>
</form>
</body>
</html>
-------------------------------------------------------------------------------------------------------------------
This code is working successfully on Desktop PC but it is not working on Windows Mobile 5.0.(Colors are changed on Desktop but not on my PDA (WM 5.0)).
Can anyone please guide me how can i achieve this?
Regards:
Rohit