07-31-2008 06:04 AM
Hello,
I'm just starting to developp a web site for Blackberry, I've got a question about the layout of the tables. I try to access to the following code with a blackberry browser :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Mobile 1.0//EN"
"http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>BB Tests : Layout</title>
</head>
<body>
<table>
<caption>Table Example</caption>
<tr bgcolor="yellow" align="right">
<td>Row 1, Column 1</td>
<td>Row 1, Column 2</td>
<td colspan="2">Row 1, Column 3</td>
</tr>
<tr>
<td colspan="2" bgcolor="red">
Row 2, Column 1</td>
<td>Row 2, Column 2</td>
<td>Row 2, Column 3</td>
</tr>
</table>
</body>
</html>
This sample is gived in the blackberry documentation: http://na.blackberry.com/eng/developers/resources/
My problem is the fact that I don't have the same output than in the documentation, the table is all display in one column.
If you want to test, the previous code is accessible to this url:
http://labs.amadeus.com/checkin/test_BB_table.html
I have test both on a simulator and on a blackberry
My configuration :
Blackberry 8820
v4.2.2.124 (platform 2.4.0.58)
I try to change the emulation mode but it was the same issue.
Have you got any ideas ? Perhaps about my code or about my setup ?
Thanks in advance.
07-31-2008 09:05 AM
Hi,
It seems like you may have tables turned off in the browser options.
This is default behaviour on almost all Blackberries.
It can be turned on using:
-Options
-Browser Configuration
-Support HTML Tables
Not only are tables turned off by default, but so is CSS, which is the most painful feature of the Blackberry browser.
07-31-2008 09:20 AM
Unfortunately, this is not my problem because I have already activated the support of HTML tables on my simulator and on my blackberry...
07-31-2008 02:22 PM