BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 07-14-2009, 10:30 AM   #1 (permalink)
New Member
 
Join Date: Jul 2009
Location: Glasgow
Model: 8900
PIN: N/A
Carrier: O2 UK
Posts: 2
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Detecting user is accessing via a BB ?

Please Login to Remove!

Hi all,

I have some code, in Javascript, which will detect if a user visits a site on a BB device.

Any advice on how I do this if the user does not have JS enabled? The only other solution I can find is using PHP, which is not an option for me.

thanks

David
Offline  
Old 07-18-2009, 06:50 AM   #2 (permalink)
New Member
 
Join Date: Jul 2009
Location: Glasgow
Model: 8900
PIN: N/A
Carrier: O2 UK
Posts: 2
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I take it that it can't be done?
Offline  
Old 07-18-2009, 09:01 AM   #3 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

I'm guessing that nobody understands the question.

The Blackberry device is identified in the User-Agent field, contained in the HTTP request. This is not dependant on JS.

Every web-side development tool I know of allows you to access the User-Agent field.

Anyway, this is a BlackBerry java development forum, you should probably take this question to one of the web forums.
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.