How to disable menu in Blackberry default browser - browser

I have to launch default blackberry browser in my application and display html page. But i do not want browser default menu items. I want to either disable default menu items or make them not selectable.

You can't supress the default MenuItems in the native browser application. You'll need to implement a BrowserField in your own application instead.

Related

Call "Select an element" from a sidebar button

I am developing a Google Chrome Extension for UI Web Testing. And I need to call the native Chrome selector of elements, which You can invoke by CtrlShiftC or via the toolbar:
But I want to call it after click on my button which located in the elements sidebar:
How can I do that from a javascript click event of a button?
There's no way to invoke the built-in element selector from within the extension. Well, except the weird method of writing a separately installable native OS application that communicates with your extension via nativeMessaging API and sends a click event to the toolbar or triggers the hotkey.
A workable solution though is to use a 3rd-party JavaScript library that imitates the element selector behavior and once the element is selected you can highlight it in the Elements panel.

Does chrome extension have listener for chrome toolbar like back/forward/refresh button and address bar?

I want to determine whether user used browser toolbar in chrome extension.
The closest there is is the webNavigation API.
With it you can discern forward-or-back events, and reload events.
However, it won't tell you that it was specifically the toolbar that was used and not, say, a hotkey or a mouse key.

Chrome app context menu on webview

Is there any way to enable context menus on webviews in a Chrome app? The app we have runs a webview in fullscreen mode and there doesn't seem to be a way to add to the context menu on the webview. If this is not possible, is there some way to add items to the application level menu for the app?

How to close/destroy chrome devtools ExtensionPanel programmatically?

I have recently created a extension for devtools, which adds a new ExtensionPanel on devtools. Since this panel is useful only on certain pages, I wanted to show it conditionally depending on contents of current page. I can create a panel dynamically,depending on context of the page, but I was unable to find any way to close it (I've tried window.close() and panel itself doesn't have any methods like this).
So my question: Is there any way to close ExtensionPanel programmatically?
This is not supported by DevTools at the moment -- if you add a panel or sidebar, it's for the life of DevTools front-end. All stock DevTools panels are displayed unconditionally and the rationale for the lack of API methods to remove panels is to avoid confusion created by panels coming and going. If a panel is not applicable to the page being inspected at the moment, you can perhaps display a banner explaining why it's not applicable.

What is the URL option to display a Mobile XPage App with iPhone theme?

When I load an xpages mobile application into desktop safari it displays the app with the default theming for an Android device. What do you need to do to get it to use the default iPhone theming?
I thought you needed add something like &iPhone=1 to the end of the url, but that's not working.
Thank you.
To quote the Mobile Controls tutorial:
A browser platform query string parameter is available for developers
to force the browser to takes precedence over one another. Just add
'?platform=iphone' or '?platform=android' to the URL and this will
force the correct theme for XPages mobile pages that match against the
xsp.theme.mobile.pagePrefix property.
Another option is to enable the Develop menu (Edit - Preferences, then on Advanced tab tick Show Develop menu in menu bar. Then from the Develop menu you can change the user agent or set your own.
You could use the sample application for the Extension Library from openntf.org. Go to the "Mobile" tab where you can "extract" the urls to show as iPhone, Android and BlackBerry.
With just a few changes you can add a url as a parameter to this application to show your own mobile app in the same context ;-) I use that for demo purposes.
/John

Resources