BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 09-11-2007, 09:26 AM   #1 (permalink)
New Member
 
Join Date: Sep 2007
Location: England
Model: 8707
PIN: N/A
Carrier: Vodafone
Posts: 3
Post Thanks: 0
Thanked 0 Times in 0 Posts
Question Newbie 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>

<BODY>
<input id="btnAprove" name="btnApprove" type="button" value="Approve" LANGUAGE=javascript onclick="return btnApprove_onclick()"></td>

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 ! I have tried using VBscript & JavaScript. Please help
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

New HP Proliant DL380 Gen4/ML370 Server Intel Xeon Processor 311584-B21
$56.99
New HP Proliant DL380 Gen4/ML370 Server Intel Xeon Processor 311584-B21 pictureHP ProLiant ML350 G4p 5U Server DUAL XEON 3.20Ghz, 12GB, 6x 146.8GB Drives, KEYS
$299.0
HP ProLiant ML350 G4p 5U Server DUAL XEON 3.20Ghz, 12GB, 6x 146.8GB Drives, KEYS pictureDell Electronics PowerEdge 2950 Server (9424)
$49.95
Dell Electronics PowerEdge 2950 Server (9424) pictureLOT OF 2 INTEL XEON SLACB CPU/MICROPROCESSORS E5310
$19.99
LOT OF 2 INTEL XEON SLACB CPU/MICROPROCESSORS E5310 pictureDell PowerEdge R910 4x 1.86GHz Quad Core E7520 64GB ram 2x146GB HDD
$779.95
Dell PowerEdge R910 4x 1.86GHz Quad Core E7520 64GB ram  2x146GB HDD picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.