Cascades WebView control

Hello

I want to load a Web page in a Web view control. I create the WebView, set the url, and finally add the WebView to the container, but nothing appears.

Am I missing something?

Thank you

The Web view in the current version of cascades makes only a blank page on the Simulator.

Since the available;

The interface component user Cascades WebView does not on the Simulator BlackBerry 10 Dev Alpha. If a user Cascades interface uses the WebView component, the user expects to see a web page loaded into the simulator using WebKit. The WebKit running on the Simulator is not compatible OpenGL 2.0 right now. All stunts user interfaces calling WebView will continue without errors, however, the web page will not be displayed.

https://bdsc.webapps.BlackBerry.com/DevZone/resources/releasenotes

Fredrik

Tags: BlackBerry Developers

Similar Questions

  • I can do my custom cascading text control?

    Hello

    I need a control of custom text in my application and I am wondering if it is possible to do in the Cascades:
    1. There must be a custom cursor appearance - a rectangular area of colours reversed on a character (like the slider on the old VT100 terminals).
    2. must have neither borders nor 'X' sign to clear the text.
    The text control uses the monospaced font.

    I realized there is AbstractTextControl, but you're not supposed to subclass it, you must use CustomControl for all custom controls. So I would say that I have to build my control from the basic text and Rectangle elements in Qt Quick, but they are absent in the Cascades. I just found QRect but the documentation says only: "the QRect class defines a rectangle...". ». Is it really to draw something on the screen? Can I use QRect in my custom control, I have write in C++ and register in QML?

    Can I make a custom control that contains the label and captures the events of virtual keyboard to add characters of the label?

    Thanks for help.

    (1) no custom cursor is currently possible, reverse color could possibly be done by a custom font or using HTML in the text control (or WebView so you need not display just to input from the user)

    (2) not possible to remove the borders at the present time, the X can be enabled or disabled programmatically.

    Yes you are right, I would say WebView to watch if it's screen only, otherwise you're looking at your own writing.

  • Cascades WebView and embedded Youtube videos

    Hello

    I created a simple application using the latest Beta 4, which contains 1 tablet containing a webview cascading.

    The webview load a html file that uses the Youtube Javascript API to load and play a video.

    When I run the app, everything seems fine and the Youtube player is present and load the title of the video. However, after that he tries to load the video, it displays this message inside

    "Video is currently unavailable.

    I am positive that my javascript is correct (I can open the same html file in my browser and it works very well). The video is certainly available as well.

    Any ideas why this happens?

    Thank you

    Imad

    10.1.0.273 on a Z10 using you can play YouTube videos in a WebView Cascades. It is the same on a Dev Alpha C 10.1.0.1485 running.

  • CORS for Webview in Cascades

    The Web view is not able to make ajax requests to Web sites or in the api that do not have the same original disabled policy. There is no problem with phonegap or webworks, but with waterfalls.

    Here is an article with a workaround which unfortunately no longer works, maybe one of you guys can do it help me:

    http://wesquire.ca/blog/2013/03/BlackBerry-10-Cascades-WebView-CORS

    @anzor_b @Kareem_ELSayed @Pumano

    Thank you for your time and help me with this problem. You are both well it seems that the api isn't really compatible CORS. The funny thing is that I can consume with XmlHttpRequest API in stunts, but not from the Web view. Do not know why.

    There is a fairly simple solution for all the APIs that do not support the HORNS, there is a small proxy here site: http://jsonp.jit.su which allows you to access the API of 4chan and other APIs with no problems directly from the Web view with jQuery.

  • [Issue] Make WebView with transparent background instead of the white background color

    I'm developing something in Cascades and use WebView control.

    By default, the background of WebView is white.

    I put WebView in a container.

    I want WebView has no white color background and need to be transparent and show the image in the container.

    Anyone has same experience?

    Thank you.

    Joe

    Inside your Webview, just set:

    WebView {}
    Settings.Background: Color.Transparent
    }

  • Tap not triggered if the interaction has begun the upper bezel of the events

    Hello

    I develop a HTML5 / game WebWorks. The user must touch and move items to complete the game.

    I noticed, that when touch starts from the upper bezel and the finger moves down on the screen, no key event is fire.

    If something is near the top of the screen, it is actually quite common, the Unit considers that a key started the bezel, and the app is completely unaware on the finger movement.

    Is there a way to tell the webworks engine not to consume the events if they left the upper bezel?

    They all get fired if I touch the bezel left / right.

    I would appreciate greatly any help!

    Just as a reference: I managed to make it work, so that I have revceive touch events even if the interaction begins the upper bezel.

    I've converted the hybrid application and push touch events form cascades to the WebView control. There is a lot of work, but it can be done .

    Best regards !

  • navigator_open_file or another method for opening the local html file

    Hello

    Open file .html resourses app that I tried to use the navigator_open_file function.

    The problem is that the browser cannot open it because of the access denied error.

    So my question is how can I do this (open the location of application resources html file) in the other direction, or how to avoid the access denied error (I don't want to copy this file to another SD card or somwhere).

    Can be in NDK also available something like webview control that can be used inside the application (this can solve the problem with access denied so )

    Many thanks in advance,

    Vitali

    Hi vitali,.

    I'll you link to a previous post on the same topic. Read it all, and you will understand what your options are, and what are the limits.

    http://supportforums.BlackBerry.com/T5/native-development/using-Navigator-invoke-to-view-local-file-...

    This thread should answer many of your questions. That being said, there is apparently a WebView control in stunts that could accomplish what you're looking for. However, I have never used, so I can't provide a lot of help. In addition, it requires BB10, which means it is for device Dev Alpha. If you develop for the PlayBook, you do not have a WebView available, and you will have to use methods that I mentioned in the link above.

    Hope that helps.

  • JavaFx 2.0 Layouts

    Hello

    In JavaFx 1.3, the behavior of nodes to its parent, or shrinkage, size etc., could be changed through its layoutInfo property.

    How can this be achieved in Javafx 2.0?

    I noticed the default behavior of this aspect is different from some nodes to others, for example, the page layouts grow by default. So, if a want my layout of the scene to be a StackPane that contains a GridPane centered with other stuff, I can't do this because the inner pane will grow to fit the whole scene.

    PS: do not use only the GridPane and the setAlignment (Pos.CENTER); because it will still technically be the size of the stage, and I wouldn't be able to paint by css as a Center Panel.

    PS2: there should be a new category called JavaFX 2.0 or something.

    Thank you...

    In the end the size of a resizable node (region, WebView control) will depend on two things:
    (1) there are preferences own pref/mini/maxi size
    (2) the sizing of its parent policy

    (2) you must consult the documentation for the component layout, but for example, a FlowPane will resize itself still nodes to their preferred sizes, while a StackPane will attempt to resize its children to fill its area (up to a limit of maximum size of the child). Which means the size of a default node MAX has everything to do with how it is resized. It has attempted to set the default size values max based on how you would usually controls behave for the implementation:

    All aspects of page layout and most of the controls have a size max unlimited, which means that a StackPane them will expand. Exceptions:
    -Label, Hyperlink, cursor, buttons, ProgressBar returns pref size max (so they stretch by default)
    -Menu bar, TextBox back pref for max height (width is unlimited)
    -Separator, toolbar, scroll bar are unlimited in their orientation, but attached to the pref dimension in the other

    If you don't want a GridPane to be stretched beyond its preferred size, tighten it just:

    gridpane.setMaxSize (Region.USE_PREF_SIZE, Region.USE_PREF_SIZE);

    If you want to than the width of a button to be flexible:

    button.setMaxWidth (Double.MAX_VALUE);

    We did have all the classes to return a max boundless for 'coherence' (so they would behave the same in each pane layout), but we discovered that causes the opposite frustration - you constantly set the max value when you don't want something to grow. So, we tried to give reasonable default values, knowing that sometimes you will have to replace them.

    Published by: aim on June 23, 2011 20:58

  • Simulation of control loops in cascade

    I built a simulation of a control system of the engine using LabVIEW Simulation 8.2.  The controller has the traditional loop of current-speed-position cascading where each loop runs at a different speed.

    The online help for the Simulation said the subsystems of simulation to inherit the timing of the main diagram.  How to set the speed of the internal unlike loops that loop main external?

    In fact, I solved the problem by using a block zero order hold at the beginning of the diagram subsystem and time of sampling in the required period setting.

  • Control the Webview fonts dynamically

    I'm trying to allow the user to control the size of the font in a webview. The settings.minimumFontSize attribute does nothing.

    Any ideas?

    Thank you

    I recommend that you inject some CSS styling forand/or

    using evaluateJavaScript(). There are instructions for setting the size of the text for different items here.

    wantoun wrote:

    I'm trying to allow the user to control the size of the font in a webview. The settings.minimumFontSize attribute does nothing.

    Any ideas?

    Thank you

  • How to return the QML C++ bb::cascades:Control as a property object?

    Hi all

    I need to return the value of the property QML in C++ code, problem is that this value is object of bb::cascades:Control

    Look at the example:

    import bb.cascades 1.2
    
    Page {
     property NavigationPane currentNavigationPane: tab1.navHandle
     property int testprop:0
    }
    

    In C++, I need to retrieve the value of currentNavigationPane property (I suppose it must point to NavigationPane *)

           QVariant const   prop=__current_page->property("currentNavigationPane");
            NavigationPane* nav_p=prop.value();
            if (nav_p!=NULL){
                qDebug()<<"nav_p is not NULL";
            }
            qDebug()<
    

    As a result of this code: nav_p is the null pointer and app crashes without any note of debugging on qDebug()<>

    I found the solution by Exhibitor class c ++ in QML and I can call its methods with pointer to bb::cascades:Control as a parameter

    QML

    Page {
    id:this_page
        onCreationCompleted: {
            mainCPP.UpdatePage(this_page);
        }
    }
    

    C++

    Q_INVOKABLE void UpdatePage(bb::cascades::Page *call_back_page){
    if(call_back_page){
    qDebug()<<"Page is valid";
    }
    }
    

    By this method, I can use control of Cascade in C++

     

  • Using WebEngine + WebView rich HTML control?

    Someone has already tried using WebEngine/WebView to create (static) content, which can combine text with images?

    What I would like is a control capable of reflow where I can put in text style (different styles, sizes, fonts) and some pictures go hand in hand and that the text nicely reflow around the images. Since HTML has been able to do this for centuries, and since I donot think that even a new RichText control will be able to mix images and text (and certainly not to offer all other features in HTML, such as tables, etc...), I think the Web view could fill this gap.

    Get the page HTML itself inside the control is easy, using the loadContent methods... but what about pictures? I would need some kind of hook to provide Images directly (from a database or memory, no intermediate download URL step) for the WebEngine, but it seems not to be.

    I guess I could put up a local Web server and point my "img src" tags to get what I want, but there may be an easier way?

    Let me know.

    I've been kicking around the idea of pair components WebView/WebEngine with an http server embedded in my application. I saw something as the pier. It is probably overkill for your application.

    Since you mention only static images residing in a database, I think that you can embed the image directly in the HTML code as an object of data with the appropriate mime type.

    This link has a discussion about it:

    http://rifers.org/blogs/gbevin/2005/4/11/embedding_images_inside_html

    and so for this:

    http://www.campaignmonitor.com/blog/post/1761/embedding-images-in-email/

    If you need an example of this, just check your email SPAM. These guys are experts.

    I think it goes something like this:

    -Pat

  • How to get a bb:cascades:Control object size?

    It is sometimes necessary to retrieve the size of a control (a button, a label... etc).

    I had a hard time finding a property or method that would allow me to read the current size of the control.

    It is possible at all?

    Thank you.

    Since we need for a subset of custom controls, we decided to use the LayoutUpdateHandler after all.

    If anyone needs for a similar feature - here how we did it.

    Our orders have a currentBounds of QRectF private; members.

    In the control's constructor, we added the following

    LayoutUpdateHandler::create(this).onLayoutFrameChanged(this, SLOT(onLayoutFrameChanged(QRectF)));
    

    Then set up a private location onLayoutFrameChanged (QRectF & limits) and updating the private member currentBounds.

    It is not pretty and, more importantly, should not be really necessary in our view, but it works and we can always access the "currentBounds" property to get the actual limits.

  • Conversion of QObject to respective control object (App Development with Cascades API Native)

    I am accessing a control object (button) defined in QML as an object of type QObject in my app.cpp file.

    QObject * click_btn = root->findChild ("click_button");

    Can I convert this type of button so that I can make its use in the connect method. Is this possible?

    It should be simple:

    Button * click_btn = root->findChild ("click_button");

    Or:

    QObject * click_btn = root->findChild ("click_button");

    Button * b = qobject_cast(click_btn);

    On qobject_cast:

    He's trying to drive up his argument to the pointer specified in sharp brackets - type, returning a pointer not no if the object is of the appropriate type (determined at runtime), or 0 if the object type is not compatible. So is it also useful to check if the type is correct.

  • Incorporation of a control "web view" in a native application

    Something I wanted to say to ask the NDK experts this week but I forgot: it is now possible to integrate a web browser in a native application, similar to how this can be done via a web control in Adobe AIR applications?

    Cascades is currently provided as part of the SDK BB10.  The plan announced publicly, is that BB10 will be available on the PlayBook sometime after that BB10 phones are released later this year.  I can't speculate on dates.

    And can't I speculate on the question of if the waterfalls will appear publicly in a version of the pre-BB10 PlayBook software.  We know only what is known

    I asked webview native non-Cascades and I was told that is not available today.

    See you soon,.

    Sean

Maybe you are looking for

  • iMac late 2013 - Windows 10 questions

    Hi, this is my first post so please bear with me I am trying windows 10 pro on my iMac end of 2013, (2.7 GHz, Intel Pro Iris, 8 GB ram). I've always used assistant boot camp to create a removable USB with windows 10 and download windows support softw

  • Digital output of 6289 wiring diagram

    Hello I was unable to find a schema for the digital i/o pins of my PXI6289 data acquisition card.  I want to know the components of pull-up/pull-down. Thank you The f

  • 4 monitors with X 220?

    Yes, Yes, I know.  But it seems that the new X 220 will be robust enough and even if it is the bridge of the integrated graphics, sand looks promising. The configuration of my favorite would be to use ports, displayport and vga on the ban for two of

  • Windows Remote Desktop connection

    Good day, the team Please, I have 2 computers, COM A [Windows 7] and COM B [Windows 8.1]. I would like to have remote desktop connection Windows on both computers with the B COM is the controller and the COM has being the controlled. If please be inf

  • Cisco SG500 and VLAN

    OK so here is what I try to accomplish with 3 switch Cisco SG500-52. I created 4 VLANS on a SG500 I call my central office switch and it is set in routing mode. My VLAN is thus 400 (Infrastructure ESXI hosts, firewall, etc.), 401 (VoIP), 402 (users)