BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 10-05-2007, 11:54 AM   #1 (permalink)
New Member
 
Join Date: Aug 2007
Model: 8300
PIN: N/A
Carrier: T-mobile
Posts: 3
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default How to Detect CSS setting?

Please Login to Remove!

Since the Blackberry browser has style sheets and html tables disabled by default, we wanted to figure out a way to detect those settings so on our mobile site we could display a link to a help file withinfo on how to set the settings. I noticed the browser user agent displays the same information regardless of the configuration.

I saw this on the ESPN mobile site for blackberry but I am not sure how they detected that the style sheets setting was off.

So what can we do on our mobile site to detect if CSS or HTML Tables are already enabled?
Offline  
Old 10-05-2007, 12:18 PM   #2 (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

I'm not sure, but css maybe possible by making an object with the instruction link hidden using css (set its display: none) that way it only shows up if css is off.
__________________
www.petermac.ca - Photo wallpapers only in BlackBerry Internet Browser
www.BBeXtras.com - Photo wallpapers sent to your BlackBerry
BlackBerry Themes
Offline  
Old 11-30-2007, 02:35 PM   #3 (permalink)
New Member
 
Join Date: Nov 2007
Model: 7130e
PIN: N/A
Carrier: Verizon
Posts: 1
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

In my testing, display:none doesn't work, but visibility:hidden will produce an effect similar to what is seen on ESPN's WAP site.
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.