Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Posts: 17
Registered: ‎02-14-2011
My Device: 9700
My Carrier: O2

not able to open Links in Playbook Browser



I'm Searching the Forum for quite a while now, but I'm running still into the same problem everytime I'm trying to open a simple weblink in the Playbook Browser and not in the app...


Thats the Script I found here in the forums:


function followLink(address) {
    var encodedAddress = "";
    // URL Encode all instances of ':' in the address
    encodedAddress = address.replace(/:/g, "%3A");
    // Leave the first instance of ':' in its normal form
    encodedAddress = encodedAddress.replace(/%3A/, ":");
    // Escape all instances of '&' in the address
    encodedAddress = encodedAddress.replace(/&/g, "\&");
    if (typeof blackberry !== 'undefined') {
            // If I am a BlackBerry device, invoke native browser
            var args = new blackberry.invoke.BrowserArguments(encodedAddress);
            blackberry.invoke.invoke(blackberry.invoke.APP_BROWSER, args);
        } catch(e) {
             alert("Sorry, there was a problem invoking the browser");
    } else {
        // If I am not a BlackBerry device, open link in current browser
        window.location = encodedAddress;


But the Links are only opened in the Webworks app, not in the Browser...


Hope anyone can help me....





Posts: 466
Registered: ‎04-11-2012
My Device: Bold 9900
My Carrier: Rogers

Re: not able to open Links in Playbook Browser

[ Edited ]

ya i think it is disabled.. you can just try <a href="www.blackberry.com">link</a> and it should not open. Ive tried it a few times... A bad but working-workaround.. iframes work Smiley Wink

Developer for easyDial for BlackBerry Bold & inLink for BlackBerry PlayBook
Find me online via twitter, or on the techfruits.com webpage. Please hit the like button below if what I said helped!