02-12-2012 10:29 AM - last edited on 02-12-2012 10:44 AM
Hi,
I tried to implement the BBAS in one Webworks application from me and kind of failed. I know its still in Beta, but just to provide some feedback what it broke when using the Example 1 from the documenation:
- in Example 1 in the documentation [1] you need to provide a height to the div where the ad should appear (nevertheless I couldnt manage to get a ad shown in the div) otherwise you get a white screen.
- The navigation mode "focus" was totally broken and not working anymore
- From time to time the application crashed when I opend and closed the menu with the blackberry key frequently.
When I configured some more details then the application was fine (Except that I could see a ad ![]()
var banner1 = new blackberry.advertising.Banner(XXXXX, "advertisingBanner", {
"bannerTransitions" : true,
"mmaSize" : "large",
"focusBorderColor" : "red",
"focusBorderWidth" : "1px",
"refreshRate" : 6000,
};
Sometimes when the application is coming to the foreground then the navigation mode is not working too and I need to restart the application.
Example:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <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"> <link rel="stylesheet" href="css/design.css" type="text/css"> <script type="text/javascript" src="js/action.js"></script> <script type="text/javascript" src="http://www.blackberry.com/app_includes/asdk/adBann er.js"></script> <body style="margin: 0em; padding: 0em; border-style: none;" onload="init();"> <div class="top"><img src="images/toplogo.png" style="padding: 5px;"/></div> <center><div id="advertisingBanner" style="height: 35px; background-color: green;"></div></center> <div id="text"></div> <script type="text/javascript"> //Adding Banner with default Banner properties // var banner1 = new blackberry.advertising.Banner(XXXXX, "advertisingBanner"); var banner1 = new blackberry.advertising.Banner(XXXXX, "advertisingBanner", { "bannerTransitions" : true, "mmaSize" : "medium", "focusBorderColor" : "red", "focusBorderWidth" : "1px", "refreshRate" : 6000, }; </script> </body> </html>
Any thoughts why this shouldnt show any banner? Added the necessary lines to the config.xml (nor error reported either). Using a Blackberry 9900 with 7.0.0.585.
[1] = https://bdsc.webapps.blackberry.com/html5/apis/bla