BBUI.js action bar problem press button menu contextual assessment "undefined is not an object.

I was updating my file bbui.js to the latest version and my screen splash action bar buttons are now broken when I deploy my Dev Alpha b with the updated OS 10.2. However, when I imitate the ripple app, there is no error message and everything works.

When I open web-insector to see what the console bed after I pressed a button:

"TypeError: 'undefined' is not an object (evaluation of"blackberry.ui.contextmenu.CONTEXT_ALL").

I have a button in the context menu which worked very well forward on each of the pages.

All my code is available for viewing at https://github.com/InnovateorDieOnline/BOTE

Thank you in advance.

Hi there, don't you update extension WebWorks (described in the components section required here.)
https://github.com/BlackBerry/bbUI.js/wiki/context-menus

The latest version of bbUI.js handles the Menu differently and you will need to make some changes, in addition to updating the script files.

Tags: BlackBerry Developers

Similar Questions

  • Problem of button Menu SE198WFP

    Hello, I'm having a problem with my SE198WFP with the key menu. When I press it, the menu does not appear. The difference, the brightness and contrast buttons, they work fine, it's just the menu button.

    Any help will be useful, thanks.

    You can try to reset it, but the monitor is 7 years old. The button may be defective.
    * Turn on the computer and monitor off
    * Disconnect each cable from the monitor (including the power cord)
    * Press and hold the monitor for 15 seconds power button
    * Plug the power cord into the monitor
    * Reconnect ONLY one video cable from the computer to the monitor graphic card
    * Turn on the monitor, then the computer
    * Test the monitor Menu button

  • "Back" button (Menu, info, etc.) does not work.

    Thanks for any assitance adavance! During the filming of today, the back function buttons (read, menu, info, delete, etc.) and the touchscreen on the rebel T5i has stopped working. I turned the camera on and out, replaced the battery and card SD and still nothing. It's a problem because I can not review the pictures taken, change your ISO, clear pictures, etc...

    The camera was not in contact with the water and has not lowered. When the problem happened today, I had only taken about 5 photos. The camera is less than 1 year.

    Hello reblair85!

    Welcome to the community of cannon.

    If several or all buttons at the back of the camera and the touch screen has stopped responding, the device must be repaired.  To start the repair process, you need to fill out a service request on our Web site.

  • 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">
      
      
      
      
      
      
      
      
      
      
    
    
  • Problem by placing the button in the action bar

    Hey

    I would like to add a button to the toolbar action and a few other actions menu antion. But the problem is that the button also appears in the action menu.

    Here is the code:

    actions:]
    {ActionItem}

    Title: "Option 1".

    onTriggered: {}
    page 1 of var = catalogue1.createObject ();
    Navigational.push (page 1);
    }
    },
    {ActionItem}
    Title: 'Option 2 '.

    onTriggered: {}
    page 2 var = history.createObject ();
    Navigational.push (page 2);
    }
    },
         
    ActionItem
    {
    Title: 'button '.
    ActionBar.placement: ActionBarPlacement.OnBar
                    
    onTriggered:
    {
    work here.
    }
                    
    }
    ]

    The button appeared on the action bar, as well as in the action menu.

    Can someone help me?

    This is 'normal' and what users would expect, this is why I would not recommend that you change it.

    Having said that trapping however the signal AnimatingToVisibleFull or VisibleFull in the menu then hide or remove the action would be the way to go if you must.

    http://developer.BlackBerry.com/Cascades/reference/bb__cascades__actionmenuvisualstate.html

    Of course, a by-product of this is that it will disappear from the bar thus (perhaps make your app look a bit unstable).

  • 29 - tabs in Firefox does not work, no menu bar or the button

    I turned on the computer to find firefox has automatically updated. I usually have to delay it as long as possible, because I am still having problems.
    This time, the first thing I noticed is that my tabs do not work. My 'new tab' button has disappeared, and even when I right click and press 'Open in a new tab', nothing happens.
    Then I thought that I would look for something bad in the menu bar - only he's not here. Is selected when I right-click. There is no orange button. There are no new button on the right of the search bar. Pressing the alt key is not bring it. He simply disappeared. Given all the solutions, I googled involve clicking on something in the menu bar, it's a big problem. I tried to restart.

    Do a clean reinstall and remove the Firefox program before (re) install a new copy of the current version of Firefox.

    If possible to uninstall your current version of Firefox to clean the Windows registry and settings in the security software.

    • Do NOT remove the "personal data" when you uninstall your current version of Firefox, because this will remove all profile folders and you lose personal data such as bookmarks and passwords including data profiles created by other versions of Firefox.

    Remove the Firefox program before installation newly downloaded copy of the Firefox installer.

    • (32-bit Windows) "C:\Program Files\Mozilla Firefox\"
    • (Windows 64 bit) "C:\Program Files (x 86) \Mozilla.

    Your bookmarks and other personal data are stored in the Firefox profile folder and will not be affected by a uninstall and (re) install, but make sure that 'delete personal data' is NOT selected when you uninstall Firefox.

    If you keep problems also create a new profile.

  • bbUI Q10 and Z10/Z30 Action Bar text title

    Dear community,

    I use the BBui.js with an action bar. I have 4 buttons in the action bar. With a Z10 or Z30 the application displays the button with the icon and text. Q10/Q5 only shows the icon, without the title text.

    Y at - it a solution for this problem?

    It is designed to allow the Q5 and Q10 to get more space for the actual content.

  • When you click on the 'Info' to the background action bar button, the application crashes.

    Hello

    Recently, we have brought successfully a BlackBerry 10 Android app.

    Everything worked fine, except the thing that when you click on the "Info" button in the action bar that appears at the bottom of the screen - the application crashes.

    I guess that this button should display a connection, or the help page. In our application, we have such a page (like an ActionItem in the ActionBar).

    Yes, is there a way we can fix it, so that when clicking on "Info" button to view our about page? Or at least to do something to prevent the application from crashing, for example hide this button.

    PS: We tested the app in the simulator of Alpha BB 10 Dev.

    Thank you.

    Hello

    Thank you for your comments. In fact, it is a known problem in the current Runtime Android on the Simulator release BlackBerry 10. It has nothing to do with your application, as this action bar fits into the Runtime Android and not your application. Normally when you section the 'Info' button you will see a screen showing you must use the gesture of back scanning used in applications Android Runtime. If you want your own topic button, you need to create your own menu.

    See you soon,.

    Matt

  • Help! My iPod Classic 120 G froze. Pale = 'Media-In' and display the screen = "OK to disconnect with a bar in the middle." Tried the reset procedure, press the "Menu and Center." Without success. Any ideas?

    Help! My iPod Classic 120 G froze. Pale = 'Media-In' and display the screen = "OK to disconnect with a bar in the middle." Tried the reset procedure, press the "Menu and Center." Without success. Any ideas?

    See Re: corrupted iPod classic. If she does not really have a reset set it aside and let the battery completely discharge. It should reset itself when you load again.

    TT2

  • bbui action bar is not displayed

    Hey guys,.

    I'm new to bbui and may not know how to work the stock bars.

    I just put a definition of simple screen that works with the exception of the action bar. It is not using firefox, chrome, or Simulator. Did I miss something?

    Players
    Matches
    Players
    BBM

    see you soon

    OK, first attachment.

    It's the triangle because it is subject to the approval process. as soon as it is approved, everyone will see, here's the example is approved:
    http://supportforums.BlackBerry.com/T5/Web-and-WebWorks-development/add-exception-pop-up-on-first-TI...

    and to do so in Rich Text, simply click on the 5th icon (tree), just before the movie icon, then click Browse, select your image, then click on insert image, made.

    I also develop something and I don't use firefox because I don't know how to use it in the debugger, instead, I use chrome/chrome to serve as an inspector to debug. I never use browser to see a preview of my application.

    application with webworks development takes a lot of time? Yes, you could be rite. but there is a way of development more effective and safe time, follow this:

    Update your BlackBerry WebWorks application without recompiling

    Basically, it works like this:

    1. Create your project as usual
    2. "in the config.xml file to replace with something like this: http://192.168.1.125/notes/index.html ' / > where 192.168.1.125 is my server local apache
    3. in my case/var/www/notes in my local server apache, I put all the file from www
    4. deploy the application on my Z10
    5. debugging
    6. When I need to change something, I just change some necessary in my local web server, never touch deployed Z10 app ever, unless I have to change something in the file config.xml or add/remove plugins

    naked in mine, it's the former article of 2009, but it works, read this article to the end also comments, one of the developer shows its implementation:
    http://dborba.com/wow-no-more-re-packaging-when-testing-HTML5-apps-on-your-device/

    good hunting

  • Is it possible to have different text in action on the action bar menu?

    I want to have the text in the action menu such as 'start my session' and have a title on the tab of the action bar that says only: "Meeting" from the beginning of that meeting is difficult to adapt. Is this possible?

    Thank you once again.

    The code...

    Page {
        actions: [
            ActionItem {
                id: aiFirst
                ActionBar.placement: ActionBarPlacement.OnBar
                title: qsTr("First")
            },
            DeleteActionItem {
    
            }
        ]
    
        onActionMenuVisualStateChanged: {
            if (actionMenuVisualState == ActionMenuVisualState.AnimatingToVisibleFull) {
                aiFirst.title = qsTr("First and still the best")
            } else if (actionMenuVisualState == ActionMenuVisualState.AnimatingToHidden) {
                aiFirst.title = qsTr("First")
            }
        }
    
        [ ... ]
    
    }
    
  • Spry menu bar: problems in IE and Firefox

    Hello! This is my first time writing the forum. I tried to fix this site and I'm about to break! I found a lot of help just brwosing here in the past and I hope that somone can point me in the right direction.

    I have validated successfully the site using the W3C CSS Validator thinking which might help, but no go. (In fact, everything what was spoil the vertical alignment of elements of menu in Safari, Chrome and other browsers in which the menu used to work properly). I tested on the latest version of Firefox for Mac and testing for IE using the Adobe browser lab.

    Here's what happens:

    • The menu is completely useless in all versions of Internet Explorer.

    • In Firefox the menu seems to work fine except the menu under flash items then disappear a site navigation very frustrating.

    Here is the site: http://oregapet.com/

    And here's my sections

    @charset "UTF-8";
    ul.MenuBarHorizontal {
              margin: 0;
              list-style-type: none;
              font-size: 80%;
              cursor: default;
              width:auto;
              font-family: Verdana, Geneva, sans-serif;
               [disabled]font: 11px;
    
    
              padding-top: 4px;
              font-weight: bold;
              padding-bottom: 2em;
    }
    ul.MenuBarActive {
              z-index: 1000;
    }
    ul.MenuBarHorizontal li {
              margin: 0;
              font-size: 100%;
              position: relative;
              text-align: left;
              cursor: auto;
              width: auto;
              float: left;
              background-color: #AAA;
              color: #FFF;
              padding-top: 0.3em;
              padding-right: 3.5em;
              padding-bottom: 0.3em;
              padding-left: 1em;
              min-height: 22px;
    }
    ul.MenuBarHorizontal ul {
              margin: 0;
              list-style-type: none;
              font-size: 90%;
              z-index: 1020;
              cursor: default;
              width: 0px;
              position: absolute;
              left: -1000em;
    }
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible {
              left: auto;
    }
    ul.MenuBarHorizontal ul li {
              width: 15em;
              margin-left: -12px;
               [disabled]color: #FFF;
    
    
    }
    ul.MenuBarHorizontal ul ul {
              position: absolute;
              margin: -5% 0 0 95%;
    }
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible ul.MenuBarSubmenuVisible {
              left: auto;
              top: 0px;
    }
    ul.MenuBarHorizontal ul {
              border: 0;
    }
    ul.MenuBarHorizontal a {
              display: block;
              cursor: pointer;
              background-color: #AAA;
              padding: 0.3em 0 0 0;
              color: #FFF;
              text-decoration: none;
    }
    ul.MenuBarHorizontal a:hover, ul.MenuBarHorizontal a:focus {
              background-color: #AAA;
              color: #FFF;
    }
    ul.MenuBarHorizontal a.MenuBarItemHover, ul.MenuBarHorizontal a.MenuBarItemSubmenuHover, ul.MenuBarHorizontal a.MenuBarSubmenuVisible {
              background-color: #AAA;
              color: #FFF;
    }
    ul.MenuBarHorizontal a.MenuBarItemSubmenu {
              background-repeat: no-repeat;
              background-position: 95% 50%;
              padding-top: 10px;
    }
    ul.MenuBarHorizontal a.MenuBarItemSubmenuHover {
              background-repeat: no-repeat;
              background-position: 95% 50%;
              text-decoration: none;
    }
    ul.MenuBarHorizontal ul a.MenuBarItemSubmenuHover {
              background-repeat: no-repeat;
              background-position: 95% 50%;
    }
    ul.MenuBarHorizontal iframe {
              position: absolute;
              z-index: 1010;
               [disabled]opacity:0.1;
    
    
               [disabled]filter:alpha(opacity=1);
      For IE8 and earlier 
    }
     @media screen, projection {
    ul.MenuBarHorizontal li.MenuBarItemIE {
              display: inline;
              f\loat: left;
              background: #FFF;
    }
    }
    
    

    Thank you very much!

    GRAMPS! Thank you very much. I really, really appreciate your help. In addition to your suggestion I changed all other instances of z-index that relate to the menu bar. I put them all to 10000 (more than the z-index of 1002 on the fadeslideshow.js). Now it works like a charm and is no longer hides behind the fadeslideshow. Yay!

    Thanks to Nancy O. for his suggestion as well. For anyone having problems woth Spry Menu bar in IE and Firefox especialy: The Spry Menu Bar 2.0 version works much better than the previous version.

    Melody

  • Problems with the menu bar

    Hello

    I have a problem with the menu bar

    Without explanation the menus disappear as in the first picture

    Hello
    I have a problem with the menu bar
    Menu disappears without explanation, as in the first picture

    Capture photoshop element 1.PNG

    I know access like this

    I can't access like this

    Capture photoshop element 2.PNG

    Pour to a normal bar I need to get a disk image, if I do a restore to the day before I still have the problem

    Do you have an idea

    Thanks in advance

    To return to a normal bar, I take a disc image, if I do a restore from the previous day, that I still have the problem

    Do you have an idea
    Thanks in advance

    Capture photoshop element 3.PNG

    Hello, jbr52. Read this:

    http://www.johnrellis.com/psedbtool/Photoshop-elements-FAQ.htm#_Setting_the_Windows

  • How to do a menu to display when the space bar is pressed?

    Hi, is it possible to make a menu display when the space bar is pressed, then disappear once selected a menu option and the SPACEBAR is released?

    Thank you

    Here's some code which will be a subject named appear/disappear with the space bar.  But it is not currently dependent on choosing something from the object, such as a menu option.

    stage.addEventListener (KeyboardEvent.KEY_DOWN, keyDownHandler);
    menu. Visible = false;

    function keyDownHandler(evt:KeyboardEvent):void {}
    If (evt.keyCode == 32 & evt.type == "keyDown") {}
    trace ("space key");
    stage.removeEventListener (KeyboardEvent.KEY_DOWN, keyDownHandler);
    stage.addEventListener (KeyboardEvent.KEY_UP, keyDownHandler);
    menu. Visible = true;
    } ElseIf (evt.keyCode == 32 & evt.type == "keyUp") {}
    trace ("space");
    stage.addEventListener (KeyboardEvent.KEY_DOWN, keyDownHandler);
    stage.removeEventListener (KeyboardEvent.KEY_UP, keyDownHandler);
    menu. Visible = false;
    }
    }

  • How to make a button to perform an action when you press return?

    I have a login button that I want to perform an action when you press return on the keyboard and I'm hoping to find someone in this forum can help me.

    To select the default activity you select the item , go to properties-> municipality you will find DefaultCommand. Here, you specify the ID of the control (button in your case) unit, which will be executed when you press on enter.

    Timo

Maybe you are looking for