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
Regular Contributor
jPush
Posts: 56
Registered: ‎01-18-2013
My Device: No device
Accepted Solution

Canvas 3d & jQuery

Simple site works well in browser but app does not work !

Regular Contributor
jPush
Posts: 56
Registered: ‎01-18-2013
My Device: No device

Re: Canvas 3d & jQuery

any link  ? for .. list of supported / non supported technologies 

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

Re: Canvas 3d & jQuery

Both browser and WebWorks apps are based off the same WebKit rendering engine.  As long as the libraries being used support Web standards, they will have the same level of supported in both environments.

 

Can you do a quick check using remote web inspector to identify what the runtime error is?

http://developer.blackberry.com/html5/documentation/web_inspector_overview_1553586_11.html

 

 

  • What "doesn't work" - library fails to load, initialize, or is there just a specific function that is problematic?
  • Does the app try to load remote content (if so it may need an access element in config.xml)?
Follow me on Twitter: @n_adam_stanley
-------------------------------------------------------------------------------------------------------------------------
Your app doesn't work? Use BlackBerry remote web inspector to find out why.
Regular Contributor
jPush
Posts: 56
Registered: ‎01-18-2013
My Device: No device

Re: Canvas 3d & jQuery

Tried one flip effect as in http://tympanus.net/Development/FlipboardPageLayout/ workes well in browser but does not work as webworks app.. getting error

 

access to "http://fonts.googleapis.com/css?family=Open+Sans+Condensed:700,300,300italic" not allowed

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

Re: Canvas 3d & jQuery

That explains the problem. This is a white listing error.  WebWorks applications need to explictly declare <access> elements for domains of any remote content they wish to access within their config.xml file.

 

More:

 

http://developer.blackberry.com/html5/documentation/working_with_config_xml_file_1866970_11.html

 

http://developer.blackberry.com/html5/documentation/access_element_834677_11.html

Follow me on Twitter: @n_adam_stanley
-------------------------------------------------------------------------------------------------------------------------
Your app doesn't work? Use BlackBerry remote web inspector to find out why.
Regular Contributor
jPush
Posts: 56
Registered: ‎01-18-2013
My Device: No device

Re: Canvas 3d & jQuery

Copied all http:// links (files) to local app folder replace required code now seems working .. still testing..

Regular Contributor
jPush
Posts: 56
Registered: ‎01-18-2013
My Device: No device

Re: Canvas 3d & jQuery

these includes some js files some css files some images & some woff files ...

 

all these link are under style.css or index.html 

Regular Contributor
jPush
Posts: 56
Registered: ‎01-18-2013
My Device: No device

Re: Canvas 3d & jQuery

hmm missed will try...