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
egillot
Posts: 3
Registered: ‎07-30-2008
My Device: Not Specified

Layout - Tables

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/journals/jan_2005/XHTML_in_depth.jsp#tables

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.

Problem 

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.

 

Please use plain text.
New Developer
olafdunn
Posts: 4
Registered: ‎07-25-2008
My Device: Not Specified

Re: Layout - Tables

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.

Please use plain text.
New Developer
egillot
Posts: 3
Registered: ‎07-30-2008
My Device: Not Specified

Re: Layout - Tables

Unfortunately, this is not my problem because I have already activated the support of HTML tables on my simulator and on my blackberry...

 

Please use plain text.
Administrator
MSohm
Posts: 14,528
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: Layout - Tables

There are some table rendering issues in some BlackBerry handheld software versions of 4.2.1 and 4.2.2.  These should be resolved in BlackBerry handheld software version 4.5.0.  Please check your carrier's web site to see if an upgrade is available for your BlackBerry.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.