03-24-2009 09:41 PM
Hi all. I'm pretty new to the Blackberry, I'm trying to do a fairly basic web page and have been struggling to get it to display the way I'd like ont he Blackberry. The first part is a toolbar constructed of a single row table, four cells, first two with button images, third with text, fourth with another image.
Looks fine and dandy in IE but on the Blackberry (9500) simulator it is all over, gap at the left before the first image, the image ont he right sticks over the end of the table and off the screen..
So.. can anyone suggest any nicely formatted pages that I could maybe use as a reference point for creating a decent looking template for my Blackberry pages? Is it really that tough? I'm not using anything fancy, really just basic HTML.
Any tips or guidance would be much appreciated.
Solved! Go to Solution.
03-25-2009 10:00 AM
03-25-2009 12:08 PM
Okay... so I ripped my page apart and got down to zero errors and zero warnings but... it looks like junk
Can I really not use a width parameter on a TD tag?
align="center" doesn't seem to work...
I can't use nowrap? Really?!
What I find curios is if I put width="100%" in my table tag the table fills the page but, on the 8900 simulator at least, I get scroll bars - it makes the page bigger than the screen, would you expect that?
All I want is a single row table, four cells, the first two have image buttons and should be the size of the images, the third will be text and should use all available space, the last one another button, kid of liek this:
|BTN1|BTN2| Page Title Here |BTN3|
Any help appreciated!
03-25-2009 02:43 PM
03-25-2009 03:13 PM
Thanks Xandrex, I had been trying to avoid CSS as I understood it has to be switched on per Blackberry so I've been using inline styles, I guess I should be able to accomplish the same thing. I just find it suprising that there aren't more examples out there, I am building for the iPhone and Blackberry in parallel and it is suprising that there are far more materials around for the iPhone already and practically nothing other than reference materials for the BB.
Live and learn, I really appreciate your help, thanks.
03-26-2009 04:31 AM
03-26-2009 11:56 AM
Thanks Xandrex. My desire is to present pages formatted to fit the device screen, rather than a well formed web page that can be used by all. For example if I am displaying a chart I'd like it to fill the screen of the device you are using, as such I'm thinking I should detect the device and prepare content appropriately.
For example I understand some BB's have a 320x240 screen, as such I'd probably want to display an image that is say 300x200 to allow for the header. If you have a BB that will do a different resolution then I'd like to display appropriately. This doesn't look like it'll be too tricky for the standard devices as I should be able to determine the resolution from the device name in the user-agent header, correct?
In the case of the newer touch screen units however that allow for rotation do you know if it is possible to:
a) Capture the current resolution, which will vary by rotation.
b) Capture the rotate event such that I can jump to another page that displays more appropriate content?
In comparison to the iPhone the browser has events that are triggered when the device is rotated and these can be intercepted to manipulate the display.
03-26-2009 02:40 PM