By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,458 Members | 1,215 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,458 IT Pros & Developers. It's quick & easy.

javascript not working on Windows Mobile 5.0

P: 8
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.
<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;


<form method="POST" action="--WEBBOT-SELF--">
<table border="1" width="100%">
<tr id="glow">
<td width="324" >&nbsp;</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>
<td width="324">&nbsp;</td>
<td width="324">&nbsp;</td>

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?

Attached Images
File Type: jpg TEST.jpg (14.4 KB, 135 views)
Mar 25 '09 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.