BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 10-05-2007, 10: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, 11:18 AM   #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

(2 pack) Dataproducts R5110 IBM 1299845 Compatible Typewriter Ribbon Sealed OEM
$8.99
(2 pack) Dataproducts R5110 IBM 1299845 Compatible Typewriter Ribbon Sealed OEM pictureIBM 1337765 Lift-Off CorrectionTape - Genuine OEM for IBM Wheelwriter
$9.99
IBM 1337765 Lift-Off CorrectionTape - Genuine OEM for IBM Wheelwriter  pictureIBM OEM DPES-31080 DPES31080 Drive Disk 1080MB
$160.3
IBM OEM DPES-31080 DPES31080 Drive Disk 1080MB pictureIBM Lenovo THINKPAD LAPTOP AC POWER ADAPTER 20V 3.2.5A OEM 92P1156 42T5282
$11.0
IBM Lenovo THINKPAD LAPTOP AC POWER ADAPTER 20V 3.2.5A OEM 92P1156 42T5282 pictureIBM #4 Y Cable Genuine OEM Long POS Cash Register 4A to 4B 10N1002 J96367
$24.99
IBM #4 Y Cable Genuine OEM Long POS Cash Register 4A to 4B 10N1002 J96367 picture






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