zOrder on QNXStageWebView

We seem not to be able to get the zOrder on QNXStageWebView property - has anyone had luck with it?

We can define the order of a negative value (-1 for example), which successfully sends the HTML behind the scene (at least we assume that this is where it ends by) but we have not been able to hide the rest of the content in order to be able to see.

CSS transparency and color on the MobileApplicationSkin settings only appear to have an effect in the Office Viewer but are not implemented in the Simulator.

This property has been implemented? Does anyone have advice or tips or examples of work?

Thank you very much - Nils

[Edit: changed the title to use the "zOrder", rather incorrect "zIndex" property]

No, I meant blackberry - tablet.xml, which is an optional file that can be used to specify a few properties that the ordinary app.xml file cannot.  It must be called exactly that.

You can probably search the forum or google to learn more.  I have no links very practice.

Tags: BlackBerry Developers

Similar Questions

  • QNXStageWebView: New problem since update the OS of the PlayBook!

    Hello

    In my Air application, I use QNXStageWebView to make a help section. So I'm used to my pages help form in my folder bar; in order to open with the QNXStageWebView component.

    It works well before the OS PlayBook last updated. I store my HTML pages:

    file:///accounts/1000/APPDATA/PlayCloud.Debug.testDev_Cloud_debugXXXXXXX/app/air/help/index-en.html

    It seems that now, I can't open my file

    What is the change of OS? How can I deal with now? Can I continue to use HTML pages? I have to convert my HTML pages in the Air?

    Nicolas

    Hello

    According to me, in my first version, my window is not correct and I can shoot my QNXWebView out my container.

    Here, my class:

    package
    {
        import flash.display.Sprite;
        import flash.display.Stage;
        import flash.events.Event;
        import flash.filesystem.File;
        import flash.geom.Rectangle;
    
        import qnx.media.QNXStageWebView;
    
        public class HelpView extends Container
        {
            private var webview:QNXStageWebView;
    
            private var _filePath:File;
    
            public function HelpView(rect:Stage, locale:String='en')
            {
                super();
                super.setSize(rect.stageWidth, rect.stageHeight);
    
                trace("[HelpView]", "width = " + rect.stageWidth + " height = " + rect.stageHeight);
    
                webview = new QNXStageWebView("LocalVP");
                webview.stage = rect;
                webview.viewPort = new Rectangle(0,0,rect.stageWidth,rect.stageHeight);
                webview.visible = true;
                webview.blockPopups = true;
                webview.enableJavaScript = true;
                webview.enableLocalAccessToAllCookies = true;
                webview.zOrder = 1000;
    
                var appPath:File = File.applicationDirectory.resolvePath('help/index-' + locale + '.html');
                _filePath = new File(appPath.nativePath);
    
                webview.loadURL(_filePath.url);
    
                if (!webview.hasEventListener(Event.COMPLETE))
                    webview.addEventListener(Event.COMPLETE, onDownloadComplete);
            }
    
            public function setLocale(locale:String):void {
                var appPath:File = File.applicationDirectory.resolvePath('help/index-' + locale + '.html');
                _filePath = new File(appPath.nativePath);
    
                webview.loadURL(_filePath.url);
    
                if (!webview.hasEventListener(Event.COMPLETE))
                    webview.addEventListener(Event.COMPLETE, onDownloadComplete);
            }
    
            public function onDownloadComplete(event:Event):void {
                trace('[HelpView]', 'onDownloadComplete:');
    
                webview.removeEventListener(Event.COMPLETE, onDownloadComplete);
            }
    
            public override function setSize(width:Number, height:Number):void
            {
                trace("[HelpView]", "setSize: widthxheight = ", width, 'x', height);
    
                super.setSize(width, height);
    
                if ((width > 0) && (height > 0)) {
                    webview.viewPort = new Rectangle(0,0,width,height);
                }
            }
    
            public override function destroy():void
            {
                webview.visible = false;
                webview.stage = null;
                webview.dispose();
                webview = null;
    
                super.destroy();
            }
        }
    }
    

    Nicolas

  • QNXStageWebView and javascript window.open

    So, it seems that QNXStageWebView must have the support of javascript window well. I've implemented the following:

    webView.enableJavaScript = true;
    webView.blockPopups = false;
    webView.zOrder = 0;
    

    But the window.open event does not seem to be opening on their own. It was then that I noticed the OpenWindowEvent class and included:

    webView.addEventListener(OpenWindowEvent.OPEN_WINDOW, handleOpenWindow);
    private function handleOpenWindow(event:OpenWindowEvent):void {
        trace(event.url);
        trace(event.name);
    }
    

    think about it, it was how you were supposed to manage the new windows. Unfortunately event.name always returns correctly and event.url is STILL empty, so I can't even handle the event manually.

    Am I missing something? Anyone had any experience windows javascript with the new class of QNXStageWebView of handling? I'm pulling my hair out trying to understand how these are supposed to be treated and there is very little information about this class right now.

    I just had a quick glance at the documentation here:

    http://www.BlackBerry.com/developers/docs/airapi/1.0.0/QNX/media/QNXStageWebView.HTML#eventpenWindow

    It seems that the url is actually put in capital letters: URL, although the name is not.  Try this.

    ... Jim

  • AS3 navigateToURL() v QNXStageWebView

    I want to send a user to an external webpage for my application, can I use / rely on the AS3 navigateToURL to open the native or what browser should I use QNXStageWebView in my application?

    :-)

    Able to identify an Adobe platform evangelist tonight, apparently using navigateToURL() is supposed to work to launch a URL on the native browser, but until the browser is in the Simulator, nothing has been officially confirmed to Adobe (or they are just to play safe and do not give a clear answer:-P)

    :-(

  • QNXStageWebView turn on drive mode?

    Is there anyway that I can activate "drive" for items using QNXStageWebView mode

    Looking at the API, I can't find anything... https://developer.BlackBerry.com/air/APIs/PlayBook/QNX/media/QNXStageWebView.html

    All the world is that the AIr before? Am I missing something? Thank you!

    A look at the API of waterfalls and the and Webplatform WebView API, I couldn't find anything there either.  I open up the browser to see how to work the drive mode, and it slips in a new screen, leading me to believe that it is a separate view entirely.  However, I could be wrong.  As far as I can tell, there is no drive for WebViews mode toggle.

  • QNXStageWebView all of a sudden does not work

    My application has been live for some time on the shelf.  All of a sudden I get emails and critical users wrong by saying that it doesn't.  It uses QNXStageWebView and the problem seems to have been reduced it.  Were there changes in system in recent weeks that have caused this?  Thanks for any info anyone can provide.

    Problem solved guys.  Nothing to do with BB PB.  It turns out that YouTube disapproved a api that I had used.

  • Fullscreen HTML5 video in QNXStageWebView

    When I select the option full screen for a HTML5 in a QNXStageWebView video is not full screen. This should work?

    I just got this from Max Feil here at RIM software developer:

    "In GR2.x.x mode full screen must be implemented by the application of AIR. If you implement it, mode full screen does not work. SDK WebWorks has a class of FullScreenView available to help WebWorks applications in it. Writers not WebWorks AIR app can use it for ideas. When the QNXStageWebView object is built, you'd call ActionScript such as:

    fsView = new FullScreenView (this, fullscreenClientGet());

    Unfortunately in GR2.x.x WebKit always takes into account the mode full screen is available (it does not check). So if no widget fullscreen is implemented by the AIR application, you will get the situation you describe where only part of the preparation for the full screen has been made and you can't get out. This problem is fixed in BB10. In the meantime, AIR app writers need to have at least a skeleton of a widget in full screen in place which, at a minimum, allows the user to get out, or simply mode full-screen output immediately. »

    I hope this helps.

  • BB10 QNXStageWebView shows nothing

    Hi all!

    I adapted one of my apps for Playbook to BB10 and I found that QNXStageWebView does not show anything, it seems to work, events are dispatched, but there is no content that is displayed.

    It works fine on BB10?

    Is there a significant change? I looked at the api and it seems to be the same.

    You do not have any problem with QNXStageWebView?

    It works very well on the new OS version 10.0.9.

  • To access local files of QNXStageWebView

    Hello community,

    I need help in the understanding of the capabilities of webkit playbook.

    My AIR application creates images and save them in File.applicationStorageDirectory or File.applicationDirectory and QNXStageWebView must take these images and show.

    QNXStageWebView displays some html with javascript that takes pictures of the url I give to him.

    And for now webview can show that stored pictures in the folder root CBC in my project as "src/appicon.png" and I saw this image in this way "local:///appicon.png" Web view, otherwise, it produces an error such as the failed to load Document [NetworkErrorEvent type = "error" bubbles = false cancelable = false eventPhase = 2 text = "could not read a file file://" errorID =-10037 url=file:///accounts/1000/appdata/com.xxx.PRPlaybook.debug.testDev_ybook_debug63d6f35d/app/air/142676836_2_0_0.png.]

    Please can someone explain, where I can store the images to display in Web mode?

    Thank you.

    Hello. Laptop more, I saved an image in the same directory as the HTML I was working. Say that my .html file is in File.documents I put that image there too and then he referred to simply as "appicon.png" without the file:///blahbblahblah.

  • QNXStageWebView broken for local files now?

    Hi all

    I try to load a string as html in a QNXStageWebView and having difficulty doing so. The code looks like this:

    entryWebView = new QNXStageWebView();

    entryWebView.enableCookies = true;

    entryWebView.addEventListener (Event.COMPLETE, loadEntryWebView);

    entryWebView.loadString (string);

    It does not; I see a webView white, white window. Furthermore, entryWebView is a variable of class declared as follows:

    private var entryWebView:QNXStageWebView = null;

    OK, I think loadString could not be implemented. So, I try the following, I've read these tips very as a solution to need to load local files. Now, because this is a dynamic content, I would have to save an html file and then load it. Obviously not a long term solution, but good enough, until that loadString works.

    entryWebView = new QNXStageWebView();

    entryWebView.enableCookies = true;

    entryWebView.addEventListener (Event.COMPLETE, loadEntryWebView);

    entryWebView.loadURL (File.applicationDirectory.nativePath + "upploadare");

    When the file is of course named upploadare and stored in the src folder in my project.

    This will display an error message in the web view, which reads: error. The browser doesn't know how to manage this web page. Try again.

    I think that HTML in my file may be malformed. Yet any html I try, this same error pops up.

    Just to make sure that I do everything else right, I check if the entryWebView will be responsible for google based on the url. He does.

    What I am doing wrong?

    Thanks in advance.

    EDIT: Tried again a thing. I specified an invalid path and the same error message as above is received.

    I currently have the same problem during the test with loadString(), so I decided to find the source of the problem with the loadURL() and local files.

    As you have discovered, QNXStageWebView can't handle app: or app-storage: URL.  For local stuff, therefore, give him a file: URL.

    Unfortunately, when you use File.applicationDirectory as basis (whether by incorrectly simply concatenating ' / upploadare ' or properly using resolvePath ("file.html)), the prefix of the url that is stuck in there rest app.:

    What you are doing by entering the nativePath are a start, but you're going to all this trouble, technically.  This is not to say it won't work in your particular case... just that it might not work always and there are a few alternatives that are safer.

    It is not because the URLS are encoded, while native paths are not.  When you use either one, you will probably run in disorders whenever you have special characters, such as spaces.

    Here's a safe alternative.  Use File.applicationDirectory.resolvePath ('file.html') to get an app: refer to the file, and then take the native path and use it to construct a new file object:

    var appPath:File = File.applicationDirectory.resolvePath('file.html');
    var filePath:File = new File(appPath.nativePath);
    webView.loadURL(filePath.url);
    // Note: use  of "new File()" and filePath.url
    

    Another option is to find the relative path to the current directory of the application when it runs.  To do this, you must do this:

    // in your constructorNativeApplication.nativeApplication.addEventListener(InvokeEvent.INVOKE, onInvoke);
    
    // use current dir from event, and PB-specific relative path
    private function onInvoke(e:InvokeEvent):void {
        var path:File = e.currentDirectory.resolvePath('app/air/file.html');
        webView.loadUrl(path.url);
    }
    

    I don't like it, because it depends on currently undocumented (except available to sandbox of Elena post) where the file would be.

    As it turns out, however, there is another approach, you might like: ;-)

    var content:String = "

    test page

    "; webView.loadStringWithBase(content, '');

    Well Yes, you guessed it.  Although loadString() fails for reasons unknown, using the above and any base (none that I tried, including an empty string) seems to work.  Yay for me!

  • QNXStageWebView to download files

    Is there a way to QNXStageWebView to download files (if possible with the internal Download Manager)?

    There is an event

    downloadRequest Event  

    Hello

    If you want to use a custom download manager, you must create one yourself. Currently, there is no way to exploit another native download manager that invoke the browser with the download URL, which probably is not desirable.

    Kind regards

  • QNXStageWebView and self-signed certificates

    I use the QNXStageWebView control to load HTML pages in my AIR application. I'm testing with OS version 1.0.7.3133 and version 2.7 AIR and Tablet OS SDK 1.1.0.  When I use https and try to access a web site that uses a self-signed certificate (which is not approved on the device), the object of QNXStageWebView does not throw error events. How can I detect that the user tries to access a unreliable website and warn (as the native browser)? I saw the newspapers of Wireshark and I see an error "the handshake failed".

    Hello Kiran,

    After further investigation, the dialog box for the certificate that is popped up by the WebKit is made under the covers. The issue which is seen is actually a bug in sdk. However the bug has been fixed and the fix will be available in the next version of the blackberry Tablet sdk.

    Let me know if you have any questions, and I'll be happy to answer them for you.

  • QNXStageWebView

    Hello world

    I have a problem with QNXStageWebView, his work very well in the Simulator, but doesn't show is not something in the deveice, OS 1.0.8.

    My code like this.

    webView = new QNXStageWebView;
    this.webView.assignFocus ();
    webView.enableCookies = true;
    webView.enableJavaScript = true;
    this.webView.viewPort = new Rectangle (0, 0, 500, 500);

    webView.loadURL ("http://www.google.com");

    Is there something wrong? Please help me I hit here, I'm waiting for your answer.

    Thank you.

    Hello

    Try this:

    webView.stage = this.stage;

  • Question by QNXStageWebView: "browser can not handle web page.

    Has anyone seen this behavior before / can anyone suggest a remedy.

    An HTML page I show in a QNXStageWebView component (with all the properties to values by default, for example, allow JavaScript, allow plugins, etc.) has a link to this URL:

    http://appworld.BlackBerry.com/WebStore/content/41285/

    Click on the link leads to failure. IIRC, I saw both of these messages in the exception dialog boxes:

    "The browser can not handle web page.

    and

    (something like) "Unknown protocol".

    This behavior occurs in both debug and release build (OS 2.0.1.358) and works very well in a regular web browser.

    Hello

    I just revisited this question yesterda. take a look at QNXStageWebView HTML API documentation, I noticed the unknownProtocol event and implementation of the following (check my particular URL of interest not shown):

        private function onUnknownProtocol(event:UnknownProtocolEvent):void
        {
            _webView.stop();
            event.preventDefault();
            flash.net.navigateToURL(new URLRequest(event.url));
        }
    

    That does the trick.

  • SDK Beta 3 command line compile errors with code QNXStageWebView

    Any help appreciated: this code compiled perfectly with Beta 2:

    import flash.display.Sprite;
    import flash.events.MouseEvent;
    import flash.filesystem.File;
    import flash.geom.Rectangle;
        
    Import qnx.media.QNXStageWebView;
    Import qnx.ui.buttons.LabelButton;
       
    [SWF (width = "1024" height = "600", backgroundColor = "#333333", frameRate = "30")]
    SerializableAttribute public class extends Sprite Complete
    {
            
    private var webView:QNXStageWebView = null;
            
    public void Rollback()
    {
                
              
    webView = new QNXStageWebView();
    webView.stage stage =;
    webView.autoFit = true;
    webView.viewPort = new Rectangle (0,0,stage.stageWidth,stage.stageHeight-50);
    webView.enableJavascript = true;
    webView.enableScrolling = true;
    webView.useCache = true;

    ..... }

    but with the beta 3, we get a lot of errors like this:

    amxmlc Complete.as

    Col: error 12: property may not set auto adjustment through a reference with static type qnx.media:QNXStageWebView.

    webView.autoFit = true;

    and once again for each of the other properties webView.  What should do?

    The QNXStageWebView class previously entirely undocumented has changed (as everyone should have expected).  Fortunately, there are actually the documentation for it now in new documents online.  First check here and update your code and see if it works again (it did for me).

Maybe you are looking for

  • Update is not installed after a reboot

    The update tells me that I have to restart my computer to complete the update. After that I restarted the computer updating is not yet complete. What should I do? Thank you

  • Do we need an anti virus for Mac?

    A friend of mine sent me this link on Intego anti virus. https://www.Intego.com/Mac-Security-blog/the-State-of-Mac-security-in-2016/?UTM _ medium = email & utm_source = macsecurity2016 & utm_campaign = m_content macsecurity2016_offer_en & ut = blog H

  • ThinkPad 13 - OSD - no boot pxe with ethernet dongle?

    We have just received a new kind of model in our catalog and I know it is not built-in ethernet port, so we use a usb dongle ethernet. On the machine, it has 3 x USB 3.0 ports. I put the Intel USB 3.0 driver 10.0.10.255 (eXtensible Host controller) a

  • Replacing the keyboard on Equium P300-16 t

    Dogs had a fight today and now the two keys need to be replaced I have the keys and the plastic two locks but sure if poor place and part Tower must be in two bits. Tried many things to get the keys back, but failed. Have found a place to buy a new k

  • previous info showing on the activation screen wrong?

    I tried to contact the number on my lock of activation screen, but this number is wrong. You guys could tell me how to contact the previous owner?