Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
New Developer
incarnis
Posts: 20
Registered: ‎02-18-2009
My Device: Not Specified
Accepted Solution

CHECKED radio button never unchecks

[ Edited ]

Hi

 

I am developing a browser-based portal for managing field service engineers. It is mostly designed for PC-based browsing, but I need to make sure some parts work on the BlackBerry (9000/Bold).

 

The problem I am having is that I have a group of four radio buttons, one of which is CHECKED by default. On the BlackBerry, I can never uncheck the default one, regardless of which radio button is selected. If I don't default it to checked, all radio buttons work fine.

 

This all works OK on other browsers - just not on the BlackBerry.

 

(my software version is v4.6.0.162 (platform 4.0.0.155))

 

Here is the HTML source when viewed on Firefox (you can see option 1 is checked):

 

 

<tbody><tr>
<td class="Heading1WithBackground" colspan="2" align="center">
Update Your Status
</td>
</tr>
<form method="post" enctype="multipart/form-data" action="ustatus.php"></form>
<tr><td><br></td></tr>
<tr>
<td class="Heading1" colspan="2" align="center">Select new status:</td>

</tr>
<tr>
<td colspan="1" align="left"><p>
<input id="statavail" name="newstatus" value="1" checked="checked" type="radio">
available
</p></td>
</tr>

<tr>
<td colspan="1" align="left">

<input id="enroute" name="newstatus" value="3" type="radio">
enroute
to incident
</td>

<td colspan="1" align="left">
<select name="enroute_task">

<option title="Something is wrong with my equipment. Please fix it." value="SJ030002">SJ030002</option>
</select>
</td>
</tr>


<tr><td><br></td></tr>
<tr>
<td colspan="1" align="left">
<input id="occup" name="newstatus" value="4" type="radio">
working on incident
</td>
<td colspan="1" align="left">
<select name="workingon_task">

<option title="Something is wrong with my equipment. Please fix it." value="SJ030002">SJ030002</option>

</select>
</td>
</tr>
<tr>
<td colspan="2" align="center">Lone worker on site?&nbsp;
<input name="loneworker" type="checkbox">
</td>
</tr>

<tr><td><br></td></tr>

<tr>
<td colspan="1" align="left">
<input id="unavail" name="newstatus" value="2" type="radio"> unavailable
</td>
</tr>
<tr>
<td colspan="2" align="center">
<input name="form_result" value="submit" type="submit">

</td>
</tr>

</tbody>

 

 The html looks a little different when viewed on the Blackberry using ALT-RBVS, but I couldn't figure out how to grab the source from there!

 

I would appreciate any help - this is driving me crazy!

 

Message Edited by incarnis on 02-18-2009 06:47 AM
Developer
Posts: 107
Registered: ‎09-25-2008
My Device: Not Specified

Re: CHECKED radio button never unchecks

Try moving the /form tag to after the inputs and make sure they're all contained inside the form using alt+RBVS.
New Developer
incarnis
Posts: 20
Registered: ‎02-18-2009
My Device: Not Specified

Re: CHECKED radio button never unchecks

Hi

 

Thanks for the response.

 

The form tag is actually already after the inputs - Firefox is re-jigging the html!

 

The html is being created from php (which is why I didn't post the original source)...and the </form> is right after all the inputs.

Guru I
Xandrex
Posts: 18,404
Registered: ‎07-29-2008
My Device: Z30, Playbook, 9320BES
My Carrier: B&You _ SFR

Re: CHECKED radio button never unchecks

can you publish that webpage somewhere and give us the link ?
it'll be easier to debug.

moreover, be sure that your document is HTML 401 compliant by using http://validator.w3.org/



The search box on top-right of this page is your true friend, and the public Knowledge Base too:
New Developer
incarnis
Posts: 20
Registered: ‎02-18-2009
My Device: Not Specified

Re: CHECKED radio button never unchecks

Unfortunately I can't publish it externally - it's commercially sensitive.

 

I have tried the w3 validator and got a lot of slaps on the wrist about upper case tags. I am going to plough through the HTML and fix everything to the validator's standard (if possible).

 

 

New Developer
incarnis
Posts: 20
Registered: ‎02-18-2009
My Device: Not Specified

Re: CHECKED radio button never unchecks

Thanks for your help - I corrected problems found by the validator, which included the fact that it didn't like my form starting within a table, and trailing />'s on the end of each <input> tag. Once it validated OK, it worked! I guess the BB browser is very picky - not necessarily a bad thing! :smileyhappy:

 

Cheers

 

Simon