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
Posts: 21
Registered: ‎12-01-2010
My Device: Not Specified

WebWorks HTML 5 Local Storage and JavaScript access Issue

JavaScript access to LocalStorage works fine in OS 6 devices, but  NOT in OS 5 (such as the Storm emulator)

 

Feature or bug?

Developer
Posts: 128
Registered: ‎08-01-2008
My Device: Bold 9900, 9810, 9780, 9650 and so many others
My Carrier: T-Mobile

Re: WebWorks HTML 5 Local Storage and JavaScript access Issue

OS 5 does not support localStoeage. Please use Google gears.
Contributor
Posts: 21
Registered: ‎12-01-2010
My Device: Not Specified

Re: WebWorks HTML 5 Local Storage and JavaScript access Issue

Thanks!

 

I've read various comments about gear on OS 6.  Do you see equivalent functionality on 5 and 6?

Developer
Posts: 128
Registered: ‎08-01-2008
My Device: Bold 9900, 9810, 9780, 9650 and so many others
My Carrier: T-Mobile

Re: WebWorks HTML 5 Local Storage and JavaScript access Issue

Just to get it straight; OS6 does not use Gears. OS6 uses HTML5. OS5 is not a HTML5 browser but does support Google Gears which you can use for localStorage. RIM has been nice enough to create a JS file which translates HTML5 calls to Gears calls. I use it and it works great. Just search for html5_init.js . You should find it.
Contributor
Posts: 21
Registered: ‎12-01-2010
My Device: Not Specified

Re: WebWorks HTML 5 Local Storage and JavaScript access Issue

Thanks for your post.  Very helpful!

 

I am trying to have a single WebWorks build that works on both platforms.  So are you saying that loading gears in OS 6 will interfere with the native HTML5 or does it disable itself in OS 6?

 

Sorry for the newbie questions.  We just didn't have to worry about this stuff in so many other smartphone builds.

Developer
Posts: 482
Registered: ‎10-24-2008
My Device: 9300
My Carrier: AT&T

Re: WebWorks HTML 5 Local Storage and JavaScript access Issue

leff, the HTML_init.js disables itself in an OS 6 device.

_________________________________________
www.jasonmace.com/blackberry