1. mikeo007's Avatar
    I've scoured the github, but I can't find a decent sample of bb.pushscreen (part of bbui.js).

    Specifically, I'm looking for info on passing parameters. Tim Neil posted a sample that will pass a variable and display it in a popup box from bb.init. But I can't find a way to access these parameters outside of bb.init.

    Anyone have any experience with this?
    01-14-13 07:29 PM
  2. Bla1ze's Avatar
    I have no idea but I tweeted this thread for you in case someone will see it and offer up some help.
    mikeo007 likes this.
    01-14-13 07:52 PM
  3. chadtatro's Avatar
    Hey Mike,

    So here's one way that you can do this (I'm not at a computer I can test this on, but it *should* work. If not let me know)

    When you do pushScreen you can specify a 3rd optional parameter, as you already know.

    bb.pushScreen('thePage.html', 'theID', 'myParams');
    You're correct that you have to read this 3rd param inside the bb.init method. You should be able to set this as a global variable from there however, like so...

        onscreenready: function(element, id) {
        ondomready: function(element, id, params) {
            console.log('html page: ' + element);
            console.log('id: ' + id);
            console.log('params: ' + params);
            // set params as a global variable so you can access it from wherevs...
            myPageParams = params;
    mikeo007 likes this.
    01-14-13 08:16 PM
  4. mikeo007's Avatar
    Thanks Bla1ze and Chad, this is exactly what I was looking for!

    If anyone else turns up this topic during a search, I also found some more useful info about bb.init here: Using bbUI's onscreenready and ondomready to Dynamically Change Your HTML
    01-14-13 08:28 PM

Similar Threads

  1. Looking for specific app
    By shedrock in forum BlackBerry OS Apps
    Replies: 10
    Last Post: 07-15-09, 06:05 AM
  2. Looking for specific game
    By BBA in forum Storm 3rd Party Apps
    Replies: 1
    Last Post: 05-06-09, 05:22 AM
  3. Looking For Specific Wallpapers...
    By ucsdgirl04 in forum BBOS Wallpapers
    Replies: 11
    Last Post: 12-16-08, 06:49 PM
  4. looking for specific Bold background
    By deuceap610 in forum BlackBerry Bold 9000
    Replies: 1
    Last Post: 11-04-08, 07:22 PM
  5. Looking for specific TODAY theme criteria - Have SEARCHED!
    By jbradley2093 in forum BlackBerry Curve 83xx Themes
    Replies: 7
    Last Post: 08-31-08, 07:42 PM