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
Contributor
avdas
Posts: 17
Registered: ‎03-06-2013
My Device: Playbook
My Carrier: Fido

Ripple with WebWorks 10 and javascript

I am using `Ripple` plugin for Chrome to try out HTML5 app with webworks 10 sdk. I cannot seem to be able to download any external javascript, I tried to get

<script type="text/javascript" 
src="http://www.blackberry.com/app_includes/asdk/adBanner.js"></script>

 

and

<script type="text/javascript" 
src="http://media.admob.com/api/v1/google_mobile_app_ads.js"></script>

 

but neither works, it always says not able to load resource, get failed, etc.
I have this in the config.xml

<access subdomains="true" uri="http://www.blackberry.com/"> 
<feature id="blackberry.advertising" required="true" version="1.0.0" /> 
</access> 
<accesss subdomains="true" uri="http://media.admob.com" />

 


Any help would be appreciated. If there is any other better alternative and example of displaying ad in HTML5 and BlackBerry it'll be even better!
Thanks.

Please use plain text.
Administrator
astanley
Posts: 1,382
Registered: ‎07-02-2009
My Device: BlackBerry Bold 9900
My Carrier: Bell

Re: Ripple with WebWorks 10 and javascript

Can you open web inspector and verify what error messages you re seeing?

Follow me on Twitter: @n_adam_stanley
-------------------------------------------------------------------------------------------------------------------------
Your app doesn't work? Use BlackBerry remote web inspector to find out why.
Please use plain text.
Contributor
avdas
Posts: 17
Registered: ‎03-06-2013
My Device: Playbook
My Carrier: Fido

Re: Ripple with WebWorks 10 and javascript

[ Edited ]

Good suggestion. I have tried the BB10 simulator, I do not get the javascript error while using blackberry ad javascript, but I get a different error. Here's a screenshot.

 

https://dl.dropbox.com/u/43903708/BB10Errors/1.PNG

 

My config file is like this:

	<access subdomains="true" uri="http://www.blackberry.com/"> 
       <feature id="blackberry.advertising" required="true" version="1.0.0" /> 
    </access> 
    <accesss subdomains="true" uri="*" /> 

 

Please use plain text.
Contributor
avdas
Posts: 17
Registered: ‎03-06-2013
My Device: Playbook
My Carrier: Fido

Re: Ripple with WebWorks 10 and javascript

Please use plain text.