BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 11-28-2007, 02:29 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Nov 2007
Location: New Zealand
Model: 8320
Carrier: Vodafone NZ
Posts: 23
Post Thanks: 0
Thanked 0 Times in 0 Posts
Question Quick web development question..

Please Login to Remove!

Hi All,

I have been tasked with creating a Blackberry version of an ASP.NET web application and I have hit a bit of a brick wall with basic layout. Does anyone know of any way at all to produce a table-like layout that does not wrap within cells? ie. I want a row/column layout with a single line per row with text trimmed to fit within columns.

I have discovered that there is no real support for CSS positioning so I've resorted to HTML table layout using fixed table layout but I cannot find a way to prevent wrapping..

Any suggestions?
TIA!
BRuce
Offline  
Old 11-28-2007, 10:14 AM   #2 (permalink)
Thumbs Must Hurt
 
Join Date: Aug 2007
Model: 8100
PIN: N/A
Carrier: Rogers
Posts: 140
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok.. a couple of things...

One, by default Table, CSS, and JavaScript are disabled in the blackberry browser. Make sure you have them turned on by going to the Browser options.

And second, there isn't a registration for Blackberry in the ASP.NET mobile controls. Check out this KB article on how to register the BlackBerry browser capability for ASP.NET 2.0 Livelink - Redirection
Offline  
Old 11-28-2007, 12:29 PM   #3 (permalink)
Knows Where the Search Button Is
 
Join Date: Nov 2007
Location: New Zealand
Model: 8320
Carrier: Vodafone NZ
Posts: 23
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the reply, I have enabled those things.. I also created the blackberry browser file but I'm not really using built-in ASP.NET server controls, I'm creating custom server controls which render specifically for the blackberry, I have also read the developer guidelines PDF for the current blackberry browsers.. I was just surpirsed at how limited the CSS/Javascript support is.. I understand what the "Mobile View" is trying to achieve but I would have thought if I used media="handheld" in a stylesheet that a 2007 browser would be a bit smarter
Offline  
Old 11-28-2007, 01:44 PM   #4 (permalink)
BlackBerry Extraordinaire
 
Perfect Storm's Avatar
 
Join Date: Dec 2006
Location: Ottawa
Model: 8900
OS: 4.6.1.114
Carrier: Rogers
Posts: 2,467
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

As mentioned, by default stylesheets and javascript are off, so most users will not have them available.

The device does support SVG which when used correctly with a backend can create desktop-like pages which always display the same on the device right out of the box.
__________________
www.petermac.ca - Photo wallpapers only in BlackBerry Internet Browser
www.BBeXtras.com - Photo wallpapers sent to your BlackBerry
BlackBerry Themes
Offline  
Old 11-28-2007, 01:56 PM   #5 (permalink)
Knows Where the Search Button Is
 
Join Date: Nov 2007
Location: New Zealand
Model: 8320
Carrier: Vodafone NZ
Posts: 23
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for that, that was going to be my next question.. I know how to tell if Javascript is on but what about HTML table support? Is there any way to determine via javascript if tables are enabled?

SVG sounds like an interesting option but I think at that point I would probably just create a Java application instead. For now it looks like we are going forward with a pretty simple WAP-style layout.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.