BrowserField + OS6. O

Hello everyone

I have an application that uses a browserField to display local html content.

Everything works fine with the OS.5 Simulator curve, storm, etc...

Drunk as soon as I test this app on OS 6 Simulator, nothing appears in the BrowserField.

I run my application on the 6.0.0337 9800simulator

Does anyone have an idea?

I had problems on OS 6.0 BrowserField test simulators.  They don't seem to work properly.  Try it on a device to see if the problem is just a matter of Simulator.

Tags: BlackBerry Developers

Similar Questions

  • IllegalStateException to displayContent() on browserfield

    Hello

    I need someone's help.

    I IllegalStateException when calling displayContent() on browserField (os6).

    Thanks in advance

    Hello

    It's my resolution. He is very good at the moment.

    public void in documentCreated (BrowserField browserField,
    ScriptEngine scriptEngine, documents)
    throws Exception {}
    If (document.getBaseURI () .startsWith ('http://www."" ")) {

    Browser.getDefaultSession (.displayPage)
    document.getBaseURI ());
    UiApplication.getUiApplication (.invokeLater)
    new Runnable() {}
    public void run() {}
    Manager manager = ads.getManager ();
    System.out
    .println ("managergggggggggggggg ="
    (+ Manager);
    Manager.Delete (ADS);
    ads = new BrowserField();
    ads.addListener (listener);
    Manager.Add (ADS);
                                       
    ads.displayContent (adsV, "");
    }
    });

    }

    ads.addListener (listener);
    Add (ADS);

    ads.displayContent (adsV, "");

  • Anchor of OS6 jump

    I want to jump to a specific anchor tag in a web view.  It works on OS5 but on 6 it always of the links to the top of the view.

    Here's a simple example:

    content...

    When I exit the document.location OS6 value + #page2, I get:

    App: / #page2

    but on OS5 there:

    App: #page2

    I solved the problem by adding the page to anchor at the end of the 'name' where the subject of BrowserField opens the HTML code.

  • dataURI in HTML in BlackBerry BrowserField OS5.0

    Hello

    I tried to get a browserField to analyze the HTML within a dataURI.

    It is quite difficult to post an example in this forum , but basically, simply using this generator in the dataURI... http://software.hixie.ch/utilities/CGI/data/data

    Although I can display images in base64 format in regular HTML, I can not get a full HTML page crawled.

    Can someone point me in the right direction of resources or ideas?

    Thank you

    PS: He works at OS6.0 - I guess that WebKit has a better engine for this sort of thing. But I need for 5.0

    Ah-Ah!

    If you use a URI of the data, you must convert all the semicolons in the Unicode equivalent.

    ; = % 3B

    This means dataURI images or style CSS in the original dataURI.

    Hope this can be useful to someone.

  • How upgrade to OS6?

    Hi guys,.

    I use air book Mac running OS 5.8. I have the USB of OS6 key but I can't install it open the application. Should I press something when you turn on the machine? Thank you.

    Hello

    I use air book Mac running OS 5.8.

    Do you mean OS X 10.5.8?

    I have the key USB of OS6

    This is OS X 10.6 (Snow Leopard)?

    So, if it's an installation drive of authentic, connected on the Macbook Air, and then start the computer by holding down the Option key. You can then select the installation disc.

  • OS6 improved ReadyNAS 3200 cable - USB DOES NOT

    So I've updated several different brands ReadyNAS units models and so far, everything is fine. However, I have a system mounted 3200 rack which has been upgraded, but will not recognize a USB key inserted into the rear USB (a port). I tried several approaches, including reformulating them with the installed USB. I reinstalled the upgrade. The light on the USB flashes quickly when I first install it, and then it stops flashing after a few seconds.

    The main reason I installed the upgrade, it's that I need to encrypt the volume, which requires the USB. The 'box' style ReadyNAS unit seems to work very well. It gives me headaches.

    I know that this is not a supported upgrade, but I need to find a way to make it work.

    Any ideas?

    Thank you.

    Scott

    I suspect that the system is looking for some paths hard-coded when looking USB key containing the encryption key, and these are not defined for the 3200 on OS6.

  • Mount iSCSI file in OS6 OS4

    I recently ran the upgrade of the community on my ReadyNAS Pro 6 for ReadyNas OS 6.

    I am running firmware 6.5.0 - T338.

    I know that my device is support, so I hope someone would be kind enough to help me out here.

    Of OS4, I supported files real iSCSI which are found in /c/.iscsi/* with the file ietd.conf in/etc.

    Upgrade to OS6, the iSCSI subsystem seems completely revamped, but I was hoping to get records of iSCSI to extract some data off them, or even to present as an iSCSI target to migrate data off them.

    If someone could provide a suggestion or some advice, I would really apprecaite it.

    I'm still open to running a Virtual Machine with ReadyNas OS4, if someone could tell me how to get there.

    Thank you.

    I think I have found a solution to my problem.

    I found a picture of the Raidiator 4.2.23 virtual box. to https://community.netgear.com/t5/Community-Add-ons/RAIDiator-x86-4-2-23-VirtualBox-image-notsupporte...

    Thanks to Kurdistan for the creation of this back in the day.

  • How to set iSCSI CHAP Username with OS6

    Hello.

    I upgraded my loan NAS Pro 4 to OS6 ready (thanks to Netgear, great support!) and want to use CHAP on my iSCSI on debian virtual computer connection. Before with OS4, I can put some user name with OS6 I don't find something to set it. Somewhere I must have missed the adjustment necessary.

    See you soon,.

    Nils

    Hi augur.

    The user name is the same as the name of the local initiator system defined by your initiator iSCSI or one known as IQN (name of the initiator). Try and tell me if it works.

    Kind regards

    BrianL
    NETGEAR community team

  • Browserfield generates the internal server error

    Hello

    I've implemented an example usage of the guide on this link and its working quite right, but then I saw something. If I click on a link within the browserfield to a non html resource, say mp3 for example http://site.com/file.mp3 or the server redirects or a survey non - response to the browserfield html, I get an internal server error.

    I tried the same in the native browser and everything works fine.

    So I think, it is possible to intercept a request when the user clicks on a link and open the native browser instead when a particular url scheme is detected?

    In addition, im having trouble changing the user-agent the browserfield, here is what Ive wrote

    ===========

    BrowserFieldConfig config = new BrowserFieldConfig();
    config.setProperty (BrowserFieldConfig.VIEWPORT_WIDTH, New Integer (Display.getWidth ()));
    config.setProperty (BrowserFieldConfig.INITIAL_SCALE, new Float (1.0));
    config.setProperty (BrowserFieldConfig.USER_SCALABLE, Boolean.FALSE);
    config.setProperty (BrowserFieldConfig.ENABLE_COOKIES, Boolean.TRUE);
    config.setProperty (BrowserFieldConfig.JAVASCRIPT_ENABLED, Boolean.TRUE);
    config.setProperty (BrowserFieldConfig.NAVIGATION_MODE, BrowserFieldConfig.NAVIGATION_MODE_POINTER);
    config.setProperty (BrowserFieldConfig.USER_AGENT, "MyCustomUAString");

    BrowserField browserField = new BrowserField (config);

    ==============

    Also, I would also like to be able to hide the Progress bar when the browserfield does not load any page, so that it shows only when it is needed (IE when a link is clicked)

    Thank you

    A code example.  If you can't understand what it is supposed to do, please ask. Put shaped went squiffy, sorry about that.

    BTW, I really struggle to test BrowserField treatment on simulators, they seem flaky and sometimes I can't debug.  The one I usually use is actually a 5.0 OS simulator 9300.

    / public final class BrowserFieldScreen extends screen

    implements BrowserFieldConnectionManager {}

    Private BrowserField _bf2;

    Private BrowserFieldConnectionManager standardBFConnectionManager;

    public BrowserFieldScreen() {}

    Super();

    _bf2 = new BrowserField();

    This.Add (_bf2);

    our ConnectinManager hook

    standardBFConnectionManager = _bf2.getConnectionManager ();

    BrowserFieldConfig bfconfig = _bf2.getConfig ();

    bfconfig.setProperty (BrowserFieldConfig.CONNECTION_MANAGER, this);

    _bf2.requestContent ("http://www.google.co.uk");

    }

    Implementation of the BrowserFieldConnectionManager

    public InputConnection makeRequest (application BrowserFieldRequest) {}

    String requestURL = request.getURL ();

    System.out.println ("request:" + requestURL);

    Boolean toBrowser = false;

    If {(requestURL.endsWith ("mp3"))

    toBrowser = true;

    }

    If (requestURL.indexOf ("bbc.co.uk") > 0) {}

    toBrowser = true;

    }

    If {(toBrowser)

    Private browserSess = Browser.getDefaultSession ();

    If (! requestURL.startsWith ("http")) {}

    requestURL = "http://" + requestURL;

    }

    browserSess.displayPage (requestURL);

    String codehtmla =

    "" +

    "


    View in browser

    " +

    "";

    return new BrowserFieldResponse (requestURL, htmlToDisplay.getBytes (), HttpProtocolConstants.CONTENT_TYPE_TEXT_HTML);

    }

    try {}

    Return standardBFConnectionManager.makeRequest (request);

    } catch (Exception e) {}

    System.out.println ("Exception:" + try ());

    }

    String codehtmla =

    "" +

    "


    Exception

    " +

    "";

    return new BrowserFieldResponse (requestURL, htmlToDisplay.getBytes (), HttpProtocolConstants.CONTENT_TYPE_TEXT_HTML);

    }

    BackMenuItem MenuItem = new MenuItem ("Back", 110, 10) {}

    public void run() {}

    _bf2. Back();

    }

    };

    ForwardMenuItem MenuItem = new MenuItem {("Forward", 110, 10)

    public void run() {}

    _bf2. Forward();

    }

    };

    protected void makeMenu (menu Menu, for example int) {}

    If (_bf2.getHistory () .canGoBack ()) {}

    menu. Add (backMenuItem);

    menu.setDefault (backMenuItem);

    }

    If (_bf2.getHistory () .canGoForward ()) {}

    menu. Add (forwardMenuItem);

    menu.setDefault (forwardMenuItem);

    }

    }

    }

  • Invisible OS6 search result

    Hi all

    Simply play with Theme Studio 6, I created a theme for the Bold 9700 OS6 running

    Everything looks perfect, apart from a bug: when using universal search feature all the results are invisible! I am able to scroll down the 'blind' and click on a random outcome, but unable to see the icons, be they in short or not

    Any ideas what area of the topic, I changed to this break? Can't find it in Theme Studio for the life of me!

    See you soon
    Jim

    Is me... already arrived, it's a bug...

    It happened to me when I changed just Carret color back to default and ready...

  • I can't update the Smartphones from blackBerry bold 9700 to OS6

    I'm trying to update my bold 9700 OS6, but I can't.

    If you really want to update your device, I would say that do you a 'new' OS installation according to the following instructions:

    1. Use Desktop Manager to backup your device.
    2. Close the Desktop Manager and disconnect your device.
    3. Download an application on your computer called BBSAK (BlackBerry Swiss Army Knife). You use it to wipe the operating system of your device. You can get it here: www.bbsak.org
    4. Download the latest OS for your device, you can get here. https://swdownloads.BlackBerry.com/downloads/entry.do?code=9461CCE28EBE3E76FB4B931C35A169B0.------
    5. Connect your device to your PC and start BBSAK. It will ask you a password. If you don't have a game for your device, simply click OK.
    6. Choose the option to wipe device. Once completed, you will be left with a blank screen and an app 507 error, which means that the wipe has been a success.
    7. Unplug your unit.
    8. On your PC, navigate to C:\Program Files\Common research in Motion\AppLoader. Delete the file in the lower part called vendor.xml.
    9. Connect your device.
    10. In this same folder as shown above, there is an executable file called Loader (has a small telephone next to him). Double click on that and it will start loading your OS.

    You have to reinstall and 3rd party applications you have, keeping in mind that if you're under OS 5 now, some of your applications may not be not compatible with OS 6, in which case you will also need to update those which in addition to the resettlement.

    Please post back and let us know how it goes!

  • BUG: OS6 / JavaScript 'onclick' event when pulling ball control to help

    Hello

    I'm developing a web application targeting OS6 devices (torch and no key, for example Curve 9300). The problem is that an 'onclick' event does not fire when you use a Trackball to click on the object (torch and Curve 9300).

    It seems to be a bug (browser) OS6 as an "onmouseover" works without problem.

    ......
    
    var submitButton = document.getElementById('submit-button');submitButton.onclick = testOnClick;
    
    function testOnClick() {    alert('onclick never gets triggered by trackball, but when you touch the button it does!');}
    

    This causes a problem deploying the application to a mixed environment of OS6 devices.

    Someone else has a similar problem, or miss me something?

    Thank you

    Hi Sasha,

    I tried the code on the following simulators below:

    Torch 9800: 6.0.0.227, 6.0.0.246, 6.0.0.337

    Style 9670: 6.0.0.309

    NOTE: I couldn't find a simulator of 9300 with 6.0

    This code, everything seems to work properly on those built using the trackpad to move the pointer over the button and click it.

    Are maybe run you document.getElementById () in a script page that is not related to a document loaded event online?  I wonder if the purpose of the document is not yet loaded until you take a reference to it?

    
    
        
            
            Untitled Page
            
        
        
            
        
    
    
  • Why BrowserField demo does not use BrowserField?

    I had some problems getting the BrowserField object to display all images on a page. When you search the formus, it was suggested to use the BrowserFieldDemo included in JDE for example. I tried and it works, but the back button does not work and you can not click on one of the links. Then I discovered that it does not actually use a BrowserField object as in

    net.rim.device.api.browser.field2.BrowserField
    

    Does anyone know how to make the browserField to work... WITH a functional back button and no image broken?

    I'd appreciate all point in the right direction.

    In fact, I realized that BrowserField demo uses OS 4.0 components while the BrowserField object is only OS 5.

  • BrowserField BlackBerry: How to get the value of the existing cookie

    Hello

    First of all, I want to let you know that I have to create a Web page at www.mydomain.com/whois.html

    then I put a cookie with javascript named 'user name = adrian' on this page

    In my Aplication BB I declare browserfield to load "whois.html".

    Here is the code

    Import net.rim.device.api.browser.field2.BrowserFieldCookieManager;
    Import net.rim.device.api.browser.field2.BrowserFieldConfig;
    Import net.rim.device.api.browser.field2.BrowserField;
    Import net.rim.device.api.ui.component.Dialog;
    Import net.rim.device.api.ui.container.MainScreen;

    / public final class BrowserDemoScreen extends screen
    {
    public BrowserDemoScreen()
    {
    setTitle ("BrowserFieldScreen");

    BrowserFieldConfig config = new BrowserFieldConfig();
    config.setProperty (BrowserFieldConfig.USER_AGENT, ' MyApplication 1.0 "');
    BrowserField _bf2 = new BrowserField (config);

    _bf2.requestContent ("http://www.mydomain.com/whois.html");
    Cookie String = _bf2.getCookieManager ().getCookie("__http://www.mydomain.com__").valueOf ("username");

    Dialog.Alert ("Cookie1 value =" + cookie);
    Add (_bf2);
    }
    }

    and if I run the code it does not get the "username" value, what's wrong with my code? Thank you

    Aaah... I have the cookie Manager to mydomain.com/whois.html instead of mydomain.com it prints all the information in "Add (new RichTextField (existingCookie));"

  • html5_init.js creates different behaviors of DB on OS5 and OS6! Help!

    Hello

    I am trying to create an application that runs on OS5 and OS6 and uses the html5_init.js scripts provided by RIM around the fact that os5 runs synchronously on gears and asynch OS6 on HTML5...

    After a lot of refactoring and rewrite, it remains now to the next obstacle. On OS5, it works as I hope as follows BUT on OS6 it doesn't, it behaves quite differently

    Example, I create an array of objects and itterate over them and insert them into a table of test.

    function insertTestData() {
        db.transaction(function(tx) {
            var testData = [];
            for (var i = 0; i < 3; i++) {
                var testCodeValue = new Object();
                testCodeValue.code = "code" + i.toString();
                testCodeValue.value = "value" + i.toString();
                testData.push(testCodeValue);
            }
    
            for (var y = 0; y < testData.length; y++) {
                var code = testData[y].code;
                var value = testData[y].value;
    
                alert(code);
                alert(value);
    
                tx.executeSql("INSERT INTO test(code,value) VALUES (?,?)", [code, value], rowInserted, function(tx, err) { alert("Error!"); });
            }
        });
    }
    

    the end result is:

    Hello

    Check out this post on loops in transactions for the asynchronous callbacks. He can help out you.

    for loops

    See you soon

    Andrew

Maybe you are looking for

  • I wish to see the sender's name first column when you view the Inbox before the subject? How can I fix this?

    I have been using Outlook for awhile now. I stayed at thunderbird recently. I feel good. However, I would like to know how to set the column first as the column message sender. I don't know that there should be a way to customize that? Help the mozil

  • Increasing problems to access web pages in Safari or Chrome

    Hello. I have a Mac Mini 2.5 GHz, 4 GB RAM, 500 GB HD; running Mac OS x 10.11.2; Safari 9.0.2; Sophos AntiVirus Home Edition 9.4.1; Chrome 49.0.2593.0 dev (64-bit). Several months ago, I started to have problems of access to some web sites, namely Op

  • Windows folder popup

    I would like to launch a popup folder from my code CVI. I tried to use LaunchExecutableEx ("c:\\data"), but it does not work. Does anyone know how to make a popup folder?

  • difficulties to download Vista service Pack 1

    Hi there; my computer keeps trying to download service Pack 1 for Vista upgrade and still not included in the download. any ideas how to fix? the error code is 80070002 What do I need to install vista service pack 1 first? or can I go ahead and try a

  • Paths in illustrator get distorted when turned.

    I created a path in illustrator that gets seriously distorted with applied transformations (resizing, think and even to swap the foreground and background color). Is this a known issue?1 original path 2 way after exchanging the bg and fg color a few