Newbiee Question: Client vbscript\javascript not running
Please Login to Remove!
I have a simple web application that works fine in IE, but when I view it on a blackberry, the server side script runs - but no client side script. i.e. :
<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
<!--
function GetSelected() {
if (form1.txtRowCount.value!=1) {
iCnt=0
for (iCnt=0;iCnt<=form1.txtRowCount.value;iCnt++) {
if (form1.optSelect(iCnt).checked=true) {
form1.txtBAF.value=form1.optSelect(iCnt).value
}
}
}
}
function btnApprove_onclick() {
GetSelected()
result=confirm("Are you sure you want to aprove this: " + form1.txtBAF.value + " ?")
if (result=true) {
form1.txtAction.value="Approve"
form1.submit
}
}
//-->
</SCRIPT>
I have missed out some obvious tags and script but this is the core of what I am trying to do : set a hidden object (textbox) called txtAction on form1 (POSTing form) depending upon the which radial option is checked (optSelect)
On the blackberry - nothing happend when I click the button ! Please help
Last edited by SimonHulse : 09-11-2007 at 09:25 AM.
Reason: spelling
There may be some JavaScript clues in there of things that are or are not supported. I know there are limited things you can do around DHTML and what values you can set dynamically.