02-18-2009 06:41 AM - edited 02-18-2009 06:47 AM
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?
<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!
Solved! Go to Solution.
02-18-2009 08:52 AM
02-18-2009 08:56 AM
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.
02-18-2009 10:43 AM
02-18-2009 10:45 AM
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).
02-19-2009 06:22 AM
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! ![]()
Cheers
Simon