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

Posts: 93
Registered: ‎08-18-2011
My Device: 9550
My Carrier: At&T

How to open a new .qml page from .js



I created page in QML and I displayed a webpage in Cascade WebView. At some point of navigation we have our custom url

Ex: <a href="usercmd://doSomething""></a>


I can capture this custom url in  

                WebView {
                    id: webView
                    html: <html>..............</html>

                    onUrlChanged: {                               
                             MathFunctions.isUserCommand(); // Checking in .js if it a custom url



now my question is :

if it a custom url than i want to load another page not in NavigationPane.


Could you give me an example how to load a new page from .js onUrlChanged event





Shwarup Biswas