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

Posts: 222
Registered: ‎03-03-2012
My Device: Ripple, LE Z10, Dev Alpha _C, Playbook, Bold 9900
My Carrier: rogers

Playbook external links stopped working

[ Edited ]

this code has worked for quite some time...now it has ceased to function on Playbook.

it works in Ripple...


<script type="text/javascript">
		$('a[target="_blank"]').live( 'click', function() {

				if ( window.blackberry )


			 alert( 'Opening Site' );

			 var args = new blackberry.invoke.BrowserArguments( $(this).attr( 'href' ));

			 blackberry.invoke.invoke(blackberry.invoke.APP_BROWSER, args);

			 return false;


		 return true;






Posts: 1,561
Registered: ‎04-12-2010
My Device: BlackBerry Z10
My Carrier: Bell

Re: Playbook external links stopped working

Which part does not work? Are you getting inside of the if statement? Does the alert fire? What about placing an alert betweeen var args and blackberry.invoke? We need to narrow down exactly which line of code is failing.


What does this evaluate to at runtime?


$(this).attr( 'href' )


Have you connected Web Inspector to see if any errors / exceptions are being thrown? At the least, try wrapping in a try/catch and alert if an error occurs.


What does your config.xml look like? Which OS is the PlayBook running? 

Erik Oros | @WaterlooErik | eoros@blackberry.com | Developer Issue Tracker

If a reply has answered your question, please click Accept as Solution to help other visitors in the future.