Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
Posts: 304
Registered: ‎08-14-2012
My Device: PlayBook, Z10, Dev C
My Carrier: Rogers
Accepted Solution

_contentView.URL with webView

Im trying to call _contentView.url from my xml file

 

WebView {
        id: myWebView
        url:_contentView.url
     }

 im sure that the wrong way because its not working how would i do this.

 

Iv looking at the sample stampcollector and found a simliar idea

ImageView {
                imageSource: _contentView.URL
    }

 which makes sense but im trying to have _contentView.URL pull my google.com, and other in.

BlackBerry 10 game reviews for the unknown, small and indie developers. Little games with big dreams. VeryBerryGames.com | Follow @VeryBerryGames | TwoCasualCoders.com | never casual on quality
Developer
Posts: 304
Registered: ‎08-14-2012
My Device: PlayBook, Z10, Dev C
My Carrier: Rogers

Re: _contentView.URL with webView

i got some help and figured it out 

 

 WebView {
                                id: myWebView
                                url: _contentView.html
}

 and the xml string is

 

html="http://google.com"/>

 

BlackBerry 10 game reviews for the unknown, small and indie developers. Little games with big dreams. VeryBerryGames.com | Follow @VeryBerryGames | TwoCasualCoders.com | never casual on quality