BlackBerry 5.0 userAgent from the unit detects no not Blackberry OS

BlackBerry 8520 OS 5.0 navigator.userAgent detects no Blackberry OS, it shows that the windows instead of blackberry. Here is the code

$(document).ready(function(e) {
    var ua = navigator.userAgent;
    alert(ua);
    if (ua.indexOf("BlackBerry") >= 0) {
        if (ua.indexOf("Version/") >= 0) { // ***User Agent in BlackBerry 6 and BlackBerry 7
            Verposition = ua.indexOf("Version/") + 8;
            TotLenght = ua.length;
            alert("BB6.0 above");
        }
        else {// ***User Agent in BlackBerry Device Software 4.2 to 5.0
            var SplitUA = ua.split("/");
            alert("BB5.0 below");
        }
    }
    else
    {
        alert("No Support");
    }
});

In the code above I'm alerting the useragent.

I get a message like below. Please help me get the blackberry instead of windows.

BlackBerry OS 5.0 browser has the ability to impersonate other user agents.  This feature has been removed since the browser from BlackBerry 6.

Looks like the browser sends a Firefox user agent.  Here's how to restore this setting config for BlackBerry.

  1. Open the menu and select "browser Configuration".
  2. Scroll down the page until you see "browser Identification".
  3. If this value is set to "Firefox", change it to 'BlackBerry '.

Tags: BlackBerry Developers

Similar Questions

  • I want to remove my iTunes balance to change the country from the United States towards my country Jordan

    I want to remove my iTunes balance to change the country from the United States towards my country Jordan

    Only personnel of the iTunes Store can do that. Contact them at http://apple.com/emea/support/itunes/contact.html.

  • Camileo P100 screen is black, but the noise from the unit

    Hi all
    I just bought a Camileo P100 and fully charged.

    Although it seems to work when you take a picture the camera 'clicks', the video recording the LED flashes, the touch screen is black and I don't see anything.

    When you touch the screen, it doesn't seem to be working (there are noises from the unit when I touch the screen), but the screen is black.

    Can anyone help?

    Thank you
    Mark

    Hello

    Try, press and hold the button On / Off a few seconds.
    Also check if the opening of the camcorder is open

    But it looks a bit like a hardware problem.

  • Store changed from the United Kingdom to China using my old zip code. Now cannot get back. Payment type is NONE, but get requests by charging to add card details.

    Store changed from the United Kingdom to China the other day using my old zip code. Now can not return to the United Kingdom. Payment type is NONE, but get requests in billing add card details that they are not everything. Postal code is changed back to UK. Phone is iOS 4 s 9.2.1. Any ideas how to get back?

    Hi Sandyback,

    Thank you for your participation in the communities of Support from Apple.

    I see that you have changed the country associated with your Apple (iTunes Store account) ID, and now ask you to provide a method of payment. This happens when changing the country on an existing Apple ID, according to why I can't select None when I change my Apple ID payment information?

    If you have changed your country or region

    When you change the country or the region of an Apple ID, you must provide a payment method and update your billing options. If you want to delete your payment method after you change the country or region, you can change your payment information to none.

    You will not be able to see or select the no payment option for one of these reasons. If you don't want to use a credit card, you can use another form of payment, for example, a gift card.

    Sincerely.

  • I want to buy an iPhone that is from the United Kingdom, but I live in Lithuania - guaranteed?

    Hello, I had the opportunity to buy a new iPhone from Apple 6 from a person, but I live in Lithuania and that the phone is from the United Kingdom. How would it be with the guarantees? He said "guarantee international Apple from the moment wherever the phone is activated. I would be eligible to get the safeguards in Lithuania, or I will ship to UK and etc. ? Because I'm unwilling to do that, only in my country.

    The person trying to sell you a bill of goods. There is no international guarantee on iPhones, and you can even ship directly to Apple. It was probably stolen. Stay away from this person... don't believe what they say.

    Good luck

    GB

  • My browser is blocked for security reasons. Code error-QFR5000RT11C. My incoming connections in open State distance. Then I got the call from the United States 1 (866)986-3669, I picked up the phone, but they put the phone down. No matter what? Help, plea

    My browser is blocked for security reasons. Code error-QFR5000RT11C. My incoming connections in open State distance. Then I got the call from the United States 1 (866)986-3669, I picked up the phone, but they put the phone down. No matter what? Help, please.

    It's probably a SCAM.  Do not call these numbers.  Force Quit Safari and reopen it by holding down the SHIFT key.

    Ciao.

  • If I buy a master collection CS6 from the United States, can I use it in Europe?

    If I buy a collection master CS6-DVD version of the United States through ebay.com.  New collection master CS6-DVD version only for distribution in North America. An element that has never been opened or removed from the sealant manufacturer. Can I use this collection master CS6-DVD version starting from the United States and install it on my PC in Norway, because on the box containing the collection master CS6 - DVD it says "only for distribution in North America"?

    Post edited by: Kevin Monahan

    Reason: Your title is too long

    Hi Torganwalla,
    I moved your Creative message following the forum download, installation and commissioning for a better answer: If I buy a master collection CS6 - DVD

    In addition, please do not post multiple times on the same topic on several forums.

    Thread is locked.

  • Edit options are not available for PDF sent by email from the United Kingdom to the United States?

    I created documents in Word. On the printer option converted to format PDF and files can offer all change options (for me) but after send the PDF saved (from the United Kingdom to the United States and the United Kingdom to South Africa) or recipients could use editing options. It was confirmed that she has drive XI. Can someone explain why or how to fix?

    Bernd, I've created a public link, which is the shared - files Acrobat.com tell me if you can examine the file please?

  • Can I buy Lightroom 6 upgrade to the United States?  Not the creative cloud, but a record of /download to my computer.

    I have 5 Lightroom on my iMac computer.  I installed this program from a disc and do not subscribe to creative cloud.  I find download Lightroom 6 upgrade for the countries of South East Asia on the Adobe web page, but not for the United States.  Not sold in the United States?  What is available at Adobe or elsewhere?

    Hi richardwright123,

    Here is the link where you can order the stand-alone update 6 Lightroom:

    http://www.Adobe.com/products/catalog/software._sl_id-contentfilter_sl_catalog_sl_software _sl_mostpopular.html

    Click on buy next to Adobe Photoshop Lightroom and select the upgrade version.

    Once you have purchased, it can be downloaded from this link:

    Download Photoshop Lightroom

    Kind regards

    Claes

  • all of my photos in icloud were removed from the restoration (and did not find the album recently removed to icloud)



    all of my photos in icloud were removed from the restoration (and did not find the album recently removed to icloud)

    The opposite happened to me - in the opposite direction! I found all my pictures from Nokia mobile in icloud on my iPad a few days ago, had no blue cogwheels devices! The two devices + home phone is all about wireless internet of the contract with ORANGE in Europe! They will not help,

    I think my router - put in place by an expatriate for me - is hacked because of the problem. I didn't ask him to change my contract or warn of my move when I did 2 years ago - but he went ahead and made Orange disclose no information telling me his "confidential".

  • The unit type is not in pixels

    While I am using the following code in my Web form:

    trendScatterGraph.Width = new unit (80, UnitType.Percentage);

    She raised a System.ArgumentException exception is in NationalInstruments.UI.WebForms.dll.

    The exception message, said "the unit type is not in pixels.".

    Is it possible that I could use the width with percentage?

    Hi, gump996

    The help topic for the Width property explains that this is expected behavior: http://zone.ni.com/reference/en-XX/help/372636F-01/mstudiowebhelp/html/96e4115f/ . For convenience I have provided the online help topic as follows:

    Value of the property


    A Unit that specifies the width of the control. The default value is 200 pixels.

    Exceptions


















    Exception Condition
    ArgumentException The Type of the device is not Pixel.
    ArgumentOutOfRangeException The Unit value is less than 0.
    ObjectDisposedException The object is deleted.

    Remarks


    Images created on a Web server must have an explicit size. Therefore, the only Type which is allowed on the unit is Pixel.

    You can make this change on the client side of your web application using JavaScript. For example, if you make the change on the loading of the page, you could do something like the following:

    Window.OnLoad = function () {}
    var xyGraph = document.getElementById ('exampleContentHolder_xyDataGraph');
    xyGraph.style.width = 80%;
    };

  • How to remove a domain controller that was removed from the Internet works but not demoted

    How to remove a domain controller that has been remove from the Internet works but not demoted

    got two domain controllers and been deleted but not retrograde

    can help pls

    Hello

    Your Windows is better suited for the directory on TechNet Services. You can follow the link to ask your question: http://social.technet.microsoft.com/Forums/en-us/winserverDS/threads

    I hope this helps.

  • printer prints from the internet but does not print the document files

    My photosmart Hp 6510 series prints from the internet, but do not print documents saved in my Toshiba computer files. He did print before files. What should I do? This message has been incorrectly marked as the solution

    Are you connected via USB or you print wirelessly?

    I've included a few scareen shots below the best way to go about printing a word document. The icon of the file clicked at the top left, click on print and follow the screenshots below.

    Make sure the printer name is identical to the one that you want to print to. older printers may appear in the window also so do of course have chosen the right one.

  • To print from the computer, but can not scan from printer to computer. Tried everything. Disconnected power supply, etc, nothing works.

    Have no problem when you print a document from the computer. Can not scan from printer to computer. I don't know that I've scanned because I went from windows 7 to 10. Printer not repeat myself found computer.

    Hi, Rolland,.

    Welcome to the Microsoft community. I might help you.

    To better understand the issue, I would need more information on your side.

    1. What is the brand and model of the scanner?

    2. Do you get any error messages? If Yes, what is the full error message?

    This problem might have occurred because of these reasons:

    1. Corrupted driver.

    2. Hardware problem.

    Method 1:
    I suggest you to run hardware store and check if it helps.

    (a) press the Windows keyboard.

    (b) Troubleshooting type in the search box and press enter.
    (c) click on material and audio.

    (d) click on hardware and devices and follow the on-screen instructions.

    Method 2:
    If the problem persists, I suggest you to download and install the latest scanner driver\software on the manufacturer's Web site.

    Hope this information helps. Reply to the post with an up-to-date report of the issue so that we can help you more.

  • came from the DollarPhotoClub and can not find my unused downloads in Adobe Stock.

    I'm from the DollarPhotoClub and can not find my unused downloads in Adobe Stock.

    Last chance to migrate to Adobe Stock - don't miss out!

    Download 98 unused downloads for Adobe, which is valid for another year!
    Search for images, to access and manage their assets within your favorite Adobe Creative Cloud Desktop applications

    Hi SunlessNinja

    I checked your account and as you can see, there are 72 licenses available - 62 transferred to CPD and 10 of your new Adobe Stock plan.

    Sign in with your Adobe ID to stock.adobe.com and you should see available licenses.

    Let me know if you still have any questions.

    Thank you

    Bev

Maybe you are looking for

  • Recovery Media Creator does not create system recovery discs

    Recently purchased Toshiba Satellite C660-21Z and tried to create recovery discs, as recommended. Recovery media creator fails systematically on disk #1 and #2 with error messages when posting: Failed to read E:\sources\boot.wim (error Code 020150-20

  • I seem to have several operating systems on my computer, don't know how!

    I started off with Home Vista Basic now I NT 2003 SERVER FireFox doesn't know what windows platform Im running, so they cannot check my plugins every time that I reboot I get a blue screen I get updates, I really don't, but it will update when Iam a

  • PlayBook. WebWork. My application seems to be on a small screen.

    Hello everyone. I have an application that runs on the Simulator 0.9.3 but I tried the same app in the Simulator 0.9.4 and the application looks as if the screen is 800 x 600 px. Why? Does anyone have an explanation? I think it has changed the SDK ve

  • RV042G router - Inter VLAN

    RV042G router - Inter VLAN: Is this router supports 802. 1 q? Or do I have to connect to a router port by VLAN? for example. If I have 2 VLANS configured on a SINGLE SWITCH, do: (a) TRUNK VLAN switch and plug a port on the ROUTER? (b) connect a port

  • I can't go to 8.1 or download anything in store Windows 8

    Hello. Here's the problem: Windows Store tiles do not do. I click and nothing happens. So I can not download any new application or switch to 8.1 The solutions tried so far: 1. update of Windows 8. No new update pending. 2 reset the store with wsrese