Hi -
I hope this is the correct newsgroup! (If not, which would be more
appropriate?)
I am developing on a Sprint 6600 running JScript 5.5.5207, PocketPC 2003,
PIE 6.0.
Consider the following: (Drop.html)
<html>
<body>
<script language="JScript">
function getVersion() {
txtVersion.value = ScriptEngine() + " version " +
ScriptEngineMajorVersion() + "." + ScriptEngineMinorVersion() + "." +
ScriptEngineBuildVersion()
}
function setVal (OBJ, VAL) {
if (VAL=="Yes" || VAL == "No") {
alert ("Old: " + OBJ.name + ".value =" + OBJ.value + "; " + OBJ.name +
".selectedIndex = " + OBJ.selectedIndex )
OBJ.value = VAL;
alert ("New: " + OBJ.name + ".value =" + OBJ.value + "; " + OBJ.name +
".selectedIndex = " + OBJ.selectedIndex )
}
}
</script>
<p align="center"><textarea rows="7" cols="33"
name="txtVersion"></textarea></p>
<select class="DRP002" defaultvalue="No" name="DROP1" readonly="true"
size="1" style="COLOR: #ffffff; FONT-STYLE: normal; BACKGROUND-COLOR:
#787878">
<option selected="selected" value="No" x9="636">No</option><option
value="Yes">Yes</option></select>
<p align="center">
<input type="button" value="Version" name="btnVersion"
onclick="getVersion()"></p>
<input type="button" value="Set Yes" name="btnYes" onclick="setVal(DROP1,
'Yes')"></p>
<input type="button" value="Set No" name="btnNo" onclick="setVal(DROP1,
'No')"></p>
</body>
</html>
On my PC, when I run it with IE 6.0 (Windowx XP), I click the button "Set
Yes", the value of DROP1 is set to "Yes" (from "No"), DROP1's selectedIndex
gets set to 1, and Yes get's displayed in the drop down.
On my PDA, when I run it, I click the button "Set Yes", the value of DROP1
is set to "Yes" (from "No"), DROP1's selectedIndex DOES NOT get set to 1,
and No remains displayed in the drop down.
In essence, selectedIndex never get's changed when the value for the drop
down gets changed.
Is this an issue with PIE? Or, is there something I need to do differently
in the PIE version of the script?
Thanks for any help!
Regards,
Mike