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

Reply
New Contributor
Posts: 6
Registered: ‎05-12-2012
My Device: Bold 9900
My Carrier: Rogers

Ad banner interferes with focus-based navigation

Hello,

 

I have a webworks smartphone app that uses focus-based navigation.  The app also incorporates ad banners via the Banner object.  When I include an ad banner in a page, the focus-based navigation doesn't work.  If I exclude the Banner, focus-based navigation does work.  Here's a simple example :

 

<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width,height=device-height,user-scalable=no,initial-scale=1.0">
<script type="text/javascript" src="http://www.blackberry.com/app_includes/asdk/adBanner.js"></script>

</head>
<body>

<center><div id='bannerDiv'></div></center>
<script type="text/JavaScript">
      //only if the following line is commented out will focus-based navigation work 
      var bannerObj = new blackberry.advertising.Banner(<myZoneId>, "bannerDiv");
</script>

<!-- some controls that should receive focus on trackpad movement...
     but they don't when the ad banner is included -->
<a href="link" onMouseOver="this.focus();">link1</a><br/>
<a href="link" onMouseOver="this.focus();">link2</a><br/>
<a href="link" onMouseOver="this.focus();">link3</a><br/>

</body>
</html>

 

Has anyone else encountered this problem of ad banners interfering with focus-based navigation?  Any suggestions to work around the issue?


Contributor
Posts: 17
Registered: ‎01-30-2010
My Device: Bold 9900
My Carrier: Claro - Republica Dominicana

Re: Ad banner interferes with focus-based navigation

Oh my God yes. I've been running into this same issue. I'm using the bbUI framework tho and no, I haven't found a workaround, still waiting for suggestions. I would like to know if it's something wrong with how we configured our apps or if there's something broken with banners

Retired
Posts: 1,382
Registered: ‎07-02-2009
My Device: BlackBerry Bold 9900
My Carrier: Bell

Re: Ad banner interferes with focus-based navigation

I think this may be an unfortunate limitation of the Ad SDK for WebWorks.  I recall that the SDK was created to leverage certain characterstics of the underlying BrowserField web view.  I believe some of these features conflict with the focus mode navigation.

 

Can anyone conclusively confirm this?

 

In the meantime, would you please file an issue for this behavior in Github here?

https://github.com/blackberry/WebWorks/issues

 

 

Follow me on Twitter: @n_adam_stanley
-------------------------------------------------------------------------------------------------------------------------
Your app doesn't work? Use BlackBerry remote web inspector to find out why.
Contributor
Posts: 17
Registered: ‎01-30-2010
My Device: Bold 9900
My Carrier: Claro - Republica Dominicana

Re: Ad banner interferes with focus-based navigation

I already filed an issue in bbUI's github page issue #60

https://github.com/blackberry/bbUI.js/issues/60

but will gladly do it in the WebWorks' one if it's needed

New Contributor
Posts: 6
Registered: ‎05-12-2012
My Device: Bold 9900
My Carrier: Rogers

Re: Ad banner interferes with focus-based navigation

I'm not using github bbUI, so I've filed an issue in WebWorks:

https://github.com/blackberry/WebWorks/issues/114
Highlighted
Contributor
Posts: 17
Registered: ‎01-30-2010
My Device: Bold 9900
My Carrier: Claro - Republica Dominicana

Re: Ad banner interferes with focus-based navigation

Cool. I'll post there as well