URL get chopped during blackberry.invoke PlayBook OS 2

In PlayBook OS 2, I see a strange phenomenon where my URLs are getting chopped to the comma.  If I go the following URL:

http://maps.Google.com/maps?q=38.93333333333333,-77.40 & zoom = 13

in this code as the url variable

var args = new blackberry.invoke.BrowserArguments(url);
blackberry.invoke.invoke(blackberry.invoke.APP_BROWSER, args);

the url in the browser on PlayBook OS 2 becomes:

http://maps.Google.com/maps?q=38.93333333333333

In OS 1 this was never a problem, so I think that the browser updated to OS 2 is to cut out the URL to the comma.  Everyone knows this?  Any advice on how to work around this problem?

How about using escape()?

http://maps.Google.com/maps?q=38.93333333333333%2c-77.40&zoom=13

I'm "guessing" something like this will work...

var args = new blackberry.invoke.BrowserArguments(escape(url));
blackberry.invoke.invoke(blackberry.invoke.APP_BROWSER, args);

Tags: BlackBerry Developers

Similar Questions

  • Could not get the pins of the PlayBook tried everything!

    Hello

    I went in all forums about this and tried everything but I can not yet read pin code of my Playbook.

    I'm developing an app (HTML + JS) with Webworks and test on my Playbook.

    Here's my config.xml file:

    (I put the different version of the statements of my functions in comment)


    http://www.w3.org/ns/widgets ".
    "xmlns:RIM ="http://www.blackberry.com/ns/widgets"
    version = "2.6.1.0" >

    WeBWorK App
    Kadabra

    WebWorks, playBook App


    read_device_identifying_information
    access_shared










    Here's how I tried to access the PIN in my js file:

    function getIdentityData() {}
    $.ajax({)
    type: 'get ',.
    URL: ' http://localhost:8472 / blackberry/identity/get, "
    success: {function (msg)}
    Alert ("in the successful" + msg);
    $('#myIdentityDiv').populate (JSON.parse (msg) .data);
    },
    complete: function() {}
    Alert ("Complete");
    }
    });
    }

    I have that 'Complete' alert, it is not in the success.

    function setImei() {}
    {if (BlackBerry.Identity.pin)}
    Alert ("BlackBerry.Identity.pin =" + BlackBerry.Identity.pin);
    } else
    Alert ("doesn't");

    }

    Here alone "does not work" alert.

    I would really appreciate the help.

    Thank you

    Kadabra

    Ok. I have just to succeed!

    Solution: Be WARY of the WebWorks SDK for Tablet 2.0 does not support the blacberry.identity.pin!

    I built with the 2.1 and finally it worked!

    On the other hand the service "http://localhost:8472 / blackberry/identity/get" still does not work

  • TypeError: Result of expression 'new blackberry.invoke' [undefined] is not an object. Application of bbUI

    I am facing an error during the use of the blackberry and the blackberry.invoke feature, invoke. BrowserArguments

    I have a group of items in an imageList, an element is defined as this line

    Minutes from anywhere

    function openUptownCairoLink() {}

    try {}

    var args = new blackberry.invoke.BrowserArguments ('http://blackberry.com');

    BlackBerry.Invoke.Invoke (blackberry.invoke.APP_BROWSER, args);

    } catch (e) {alert (e)}

    }

    and when I click on the element, it warns the error as in the subject of this topic.

    I'm using BB Bold 9900 with OS 7

    You will need to do the following:

    http://192.168.0.140:8888" subdomains="true">
      
      
      
      
      
      
      
      
      
      
    
    
  • BB10 - blackberry.invoke.invoke - set up an application to receive the data passed

    Hello

    because there is not any application on the Alpha of Dev BB10 I wanted to create a few test-app to do similar things. Is there documentation on how to set an application to receive and process the 'data' past object with the code according to from here:

    // open another application that understands custom data
        blackberry.invoke.invoke({
            target: "another.app.that.handles.custom.json.data",
            type: "text/plain",
            data: "{'myData': 'A string I pass to another app'}"
        }, onInvokeSuccess, onInvokeError);
    

    Kind regards.

    Hello

    thx a lot to connect me to this example. That's really what I was looking for. It would be nice to have these resources pinned in the documentation of the API as well.

    Kind regards.

  • Is it the blackberry.invoke in the external JS file work?

    Hello

    The object blackberry.invoke cannot be called since in BB widget, i.e. in the js stored in your Eclipse BB Widget project file or files outside/external file, stored on http?

    Thank you

    Barbara

    You cannot add API to wildcards because it opens gaps in security. You need to add APIs to a defined origin

  • Could not find the feature with Id: blackberry.invoke.message arguments

    Hi, I am using the message application, while the building, I have an error to BB 10 WebWorks SDK

    failed to find the feature with Id : blackberry.invoke.message arguments
    

    This is supported in this beta version of the SDK, simiarly there are also some features that are not available with this beta SDK release. Where can I find abt it.

    Concerning

    Rakesh Shankar.P

    The blackberry.invoke.messages API is not currently supported in the BB10 WebWorks SDK BETA.

    At the time of writing, the following APIs are currently supported in the BETA release:

    • BlackBerry.Connection
    • BlackBerry.Event
    • BlackBerry.Identity
    • BlackBerry.Invoke
    • BlackBerry.app
    • BlackBerry.System
    • BlackBerry.UI.Dialog

    For the complete list and to update the supported APIs, see the WebWorks API reference guide

    https://developer.BlackBerry.com/HTML5/APIs/

  • Change an old URL Get

    Hello

    I'm going to lose my mind, and this can be a very easy solution that I forget, but I'm just trying to change the URL get something I did a long time ago. When I open the file, I found 2 cases where I put in the new URL instead of the old, but when I test the movie, it continues to send to the old address. I cleared my cache in the browser, etc.

    Someone has an idea of what I might be dominant in trying to change the URL? I created a fade to the top a film icon and I changed the address on the timeline and on the film itself, which were the only 2 places I could find the URL to be replaced.

    You can see the Web site at http://www.dirtcad.com

    Is the erase icon Blue Cross on the bottom just after loads of movie that needs to be changed. I created this movie in Flash MX and I opened it in Flash 8 and I'm just trying to make a single change.

    Thanks for your suggestions.

    Kregg wrote:
    > Hello,
    >
    > I feel that I'm going to lose my mind, and this can be a very easy solution that I am
    > dominant, but I'm trying to simply change the URL get something
    > I did a long time ago. When I open the file, I found 2 cases where I
    > put in the new URL instead of the old, but when I test the movie, it remains
    > sent to the old address. I cleared my cache in the browser, etc.

    There's really no magic when comes to getURL action, simply edit you bad instance
    and old action remain attached. You remove just the action in a bad spot so he
    no entry into force.
    Download the file and send it to check, is much easier than trying to guess from here

    --
    Concerning

    Urami

    --

    Happy new year guys - all the best there is in the 2006 :)


    http://www.Flashfugitive.com


    http://www.Firefox.com

  • I can get it for blackberry playbook

    I have a playbook and a z10. Is there a download for me to get firefox?

    Firefox does not work on Blackberry, Android only, sorry to other operating systems

  • Get-9860 torch blackBerry Smartphones stuck during the update

    Hello

    I bought a new unit of bb now I'm updating everything and he's stuck during the update wat to do?

    Following currently being held in the screen for half an hour now

    Now it finally works

    glad to see that it works for you

  • Launch of the URL in the browser of the Playbook

    I must say, this complete package of the Playbook is a fascinating move by RIM. Seems really captured some interest. He certainly got I'm working on my application that I've been a bit lax to watch for a while! Also forced me pick up cocos2d-x in my todo list, as my android app used native code for graphics, so thanks for the help I needed

    In any case, a question which I hit to date can come from my lack of understanding of the Playbook as a device. Is it possible (and it's a workflow accepted) for launching native browser of the Playbook since an application SDK? So if I want to link my dev blog / facebook page / G + page / whatsoever of in app I just wish I could call some URL launches the function. If it's in the docs I apologize, but I look through and cannot see an obvious reference to this type of action.

    Function called navigator_invoke draws bps

    See docs here

    https://bdsc.webapps.BlackBerry.com/native/beta/reference/com.QNX.doc.bps.lib_ref/com.QNX.doc.bps.Li...

  • How to get the length of the (playbook) video?

    How to get the length of the video?

    I need a maximum value for use with mmr_seek() or mmrenderer_event_get_position().

    If you like in the file system on your PlayBook, you will see this:

    / pps/services/multimedia/converter/context.

    There should be a directory with the name of the conext you use with mmrender. Under this directory the file called metadata. For an mp3 player, I see this:

    [n]@metadata
    md_title_album::Sublime
    md_title_artist::Sublime
    md_title_bitrate::192000
    md_title_comment::
    md_title_duration::290812
    md_title_genre::Alternative
    md_title_mediatype::4
    md_title_name::Get Ready
    md_title_samplerate::44100
    md_title_track::14
    url::file:///accounts/1000/shared/music/Media Sync/Sublime/Sublime/Sublime - 1996 - Sublime - 14 - Get Ready.mp3
    

    You could write a simple parser to get the data you need.

  • Why get error during execution the FPGA VI?

    Hello world

    I have a lot of sense of wrong during execution of a program that has been correctly executed previously. I don't know what I did wrong.

    Now, whenever I run this FPGA VI, I get an error (in the attachment). And, then runs the FPGA VI, but it does not give the data required those he supposed to give as output.

    Any help or recommendations would be appreciated also.

    Thank you.

    Hi auree123,

    There are a few reasons for this error
    may occur.  Could you tell us more about what's going on?

    You are
    I get this error when you compile and if so, at what stage?

    It looks like
    as you may be running it in Interactive Mode, which means that you are viewing
    the front of the FPGA VI on the development computer that you are running - is
    that correct?  If so, you could try to create a VI on your host
    Open a FPGA reference and communicate with the FPGA programmatically rather than interactively.

    Thank you

    Morgan S

    Technical sales engineer

  • Can't get messages on blackberry

    Original title: e-mail question with msn on blackberry messages

    all of a sudden cannot get messages on my blackberry. re-installed msn on blackberry but can't find a way to find mail preferences so I can check an option to leave emails on the serverRemember - this is a public forum so never post private information such as numbers of mail or telephone!

    Ideas:

    • You have problems with programs
    • Error messages
    • Recent changes to your computer
    • What you have already tried to solve the problem

    Hi elspeth,.

    We found a similar question on Blackberry forums. See does not receive e-mail messages do not

    See I can not send or receive e-mails on my device

    For further assistance, we recommend that you send your query to Blackberry Support Forums

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Classic BlackBerry get a new blackberry id - registration page does not work

    Hello

    I'm trying to put my wife up wth a balckberry I'd tried a dozen times to register.

    I no longer get;

    -No error message, just the password field repeat blanked

    -A message to the shortfall in the number of characters provided (no idea as to which the field is referenced here)

    I checked the passwords I enter for the length AND rules. When the screen comes the first password field is 13 points of time as opposed to 11 points, when I entered the password.

    There is no link help for anyone having to save.

    There is a link contact us, but which leads quite simply to the page of enterprise software. So even if it is not classic specific BB that I post here.

    Can someone provide me with a direction or a clue of what I'm doing wrong?

    Thank you

    BBID.com is a web address that will direct you to the sign BBID to the top of the page depending on your location.

    It's a legitimate site

    As long as you didn't setup a BBID on this unit, followed by wiping pf accordingly enter the wrong password 10 times, you will need to contact your point of sale and ask that they unlock the device, or request a refund because they sold with Anti - Theft Protection enabled

    For more details on the revision of the Protection against theft that suite:

  • Get it at BlackBerry App World Logo

    Where can I find the logo referenced in this PDF file?

    http://www.BlackBerry.com/developers/resources/appworld/BlackBerryAppWorldNamingAndLogoGuidelines%20...

    Can't seem to find anywhere... even not using google image search.

    Thank you

    Connect to the provider portal and scroll down. It is related to the first page, that you get.

Maybe you are looking for