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

Web and WebWorks Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Developer
Posts: 64
Registered: ‎12-29-2012
My Device: None right now
My Carrier: BSNL

Opening inbuilt Youtube app or web browser from webworks app

I have some youtube links that I want to add in my html5 webworks BB10 app(jquery theme). I want to know whether directly tapping a hyperlink will open the web browser or Youtube app so that the video could be seen by the user. I am not able to run the simulator on my old PC.

So, can anyone confirm that?

 

Thanks

Highlighted
Retired
Posts: 203
Registered: ‎12-18-2012
My Device: Z10, Q10, Q5, Z30, Z3
My Carrier: Bell

Re: Opening inbuilt Youtube app or web browser from webworks app

Hi,

 

blackberry.invoke.invoke will open the URI in the browser or other appropriate application. Linking directly to the content will simply load that resource within your application.

 

Thanks,

Bryan

Bryan Higgins
BlackBerry WebWorks
@bryanhiggins
Developer
Posts: 64
Registered: ‎12-29-2012
My Device: None right now
My Carrier: BSNL

Re: Opening inbuilt Youtube app or web browser from webworks app

Thanks for your reply. Also, is there any possibility of a dedicated Youtube app on BB10?

Developer
Posts: 64
Registered: ‎12-29-2012
My Device: None right now
My Carrier: BSNL

Re: Opening inbuilt Youtube app or web browser from webworks app

[ Edited ]

Wil this code work properly?

<!----javascript---->
<script type="text/javascript">function openWebLinkInBrowser() {blackberry.invoke.invoke({
target: "sys.browser",
uri: "http://www.google.com"
}, onInvokeSuccess, onInvokeError);
}</script>
<!----html---->
<a href="#" data-role="button" data-inline="true" onclick="openWebLinkInBrowser()">Inline</a>