BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 11-21-2008, 08:27 AM   #1 (permalink)
New Member
 
elDiego's Avatar
 
Join Date: Nov 2006
Location: Santiago, Chile
Model: 8520
OS: 4.6.1.272
Carrier: Entel PCS
Posts: 10
Post Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy enable/disable objects with javascript

Please Login to Remove!

Hello

I have the following problem. I'm developing a very simple javascript page. There area a few checkboxes, and when the user checks/uncheks them a function has to enable or disable some radio buttons, which area disabled when the page is loaded.

The problem is that I can't change the value of the disabled property of the radio buttons when I use Blackberry Browser, although it does work when I use IE 7 or Firefox 3.0.4.

The piece of code I use to enable/disable the radio buttons is this:

var divAprobacion = document.getElementById("aprobacion");
var x = divAprobacion.getElementsByTagName("input");
for (j = 0; j < x.length; j++)
{
x[j].disabled = true;
for (l = 0; l < matIDTemp.length; l++)
{

if (x[j].value == matIDTemp[l]){
x[j].disabled = false;
}
}

}

I tried changing other properties and that works, it seems that only disabled can't be changed.

Does somebody know any kind of solution to this?

Thanks
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

Mitel 5320e Black VoIP IP Telephone LCD Display 50006474 Mitel-5320e Warranty
$119.0
Mitel 5320e Black VoIP IP Telephone LCD Display 50006474 Mitel-5320e Warranty pictureNEC DT700 Series Business Phone ITL-12D-1(BK)TEL ILV(XD)Z-Y(BK) *VOIP*
$25.0
NEC DT700 Series Business  Phone ITL-12D-1(BK)TEL ILV(XD)Z-Y(BK) *VOIP* pictureCisco Small Business SPA 509G VoIP Phone - Dark Gray
$59.0
Cisco Small Business SPA 509G VoIP Phone - Dark Gray pictureLOT OF 10 Cisco CP-7942G Unified IP Phone - voip phone - used
$329.0
LOT OF 10 Cisco CP-7942G Unified IP Phone - voip phone - used pictureCisco Small Business SPA508G 8-line VoIP PoE IP Phone SPA 508
$50.0
Cisco Small Business SPA508G 8-line VoIP PoE IP Phone SPA 508 picture






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