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
Manigovindarajulu
Posts: 10
Registered: ‎04-20-2011
My Device: Storm

Re: JavaScript Widget Extension to get Geo location coordinates

Neil, I saw the KB article to get the geo coordintates in the playbook.

 

I have one quick question .

      1. Does Playbook web works supports javascript extension jar?

      2. if not , Please tell me is there any way to post the http apart from jquery or XMLHttpRequest?

     3.  The problem which i am facing i have to do some encryption/deryption of my server request so i would prefer using jar (java script extension) instead of using java script library 

Retired
tneil
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: JavaScript Widget Extension to get Geo location coordinates

The PlayBook does not support Java and therefore doesn't support JavaScript extensions written in Java.  It "can" be extended using ActionScript but we haven't really documented that area yet as we are still undergoing changes that would affect extensions.

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
New Contributor
sajithvk
Posts: 2
Registered: ‎05-06-2011
My Device: Playbook

Re: JavaScript Widget Extension to get Geo location coordinates

Hi Tneil,

 

It will be helpful if you can provide some clue on extending using Action Script. We understand that this may change in future, But it will help us to workaround some of the current limitation of webworks API, such as take-a-picture.

Retired
tneil
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: JavaScript Widget Extension to get Geo location coordinates

Currently, the best way would be to look at one of our existing APIs to copy the way that they do it.  The source code for the APIs is in the WebWorks SDK install directory bbwp\ext directory.

 

A good one to look at would be BlackBerry_System.  You will need to create the JavaScript portion of the API and the ActionScript portion of the API.

 

You will see how we are actually layering ontop of AJAX to make our API calls.

 

Essentially create your own directory in this ext folder that has the same structure as one of the existing APIs and it should work.

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
New Contributor
sajithvk
Posts: 2
Registered: ‎05-06-2011
My Device: Playbook

Re: JavaScript Widget Extension to get Geo location coordinates

Thanks Neils. I will try this.

New Developer
rtholmes
Posts: 30
Registered: ‎04-21-2011
My Device: Playbook

Re: JavaScript Widget Extension to get Geo location coordinates

Are there any plans to enable webworks apps to just use the standard HTML5 geolocation capabilities?

 

My GPS code works fine in the browswer but once I deploy it to the tablet it no longer works; I suspect I need to add this to my blackberry-tablet.xml:

 

<permission>read_geolocation</permission>

 

But this is autogenerated for webworks applications. Is there an analog I can add to the config.xml to achieve the same thing?

 

Thanks,

 

--rth

 

Retired
tneil
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: JavaScript Widget Extension to get Geo location coordinates

It is coming as part of the mid-June Delta release of the WebWorks SDK for Tablet OS

 

https://github.com/blackberry/WebWorks/wiki/Roadmap

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter