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
New Contributor
Posts: 5
Registered: ‎09-13-2010
My Device: Bold 9700
My Carrier: Rogers

Re: Tips, Quirks and Solutions

Hi Tim, thanks for the quick reply. That would really suck if the version number is why, but I find it slightly hard to believe that something like this gets fixed between 5.0.0.442 and 5.0.0.469.

 

Also, can you point me to the example you said you added to the "Some Cool UI Examples" thread? I'm wondering if it's because of the HTML element I'm using (button).

New Developer
Posts: 12
Registered: ‎10-06-2009
My Device: Not Specified

Re: Tips, Quirks and Solutions

[ Edited ]

Hi Tim,

 

Regarding:

 

Issue: In the widget, the browser will not render the full background color to where your content does not exist.

 

Solution:

 

Add the following to something like onLoad

 

 

document.body.style.height = screen.height;

 

 

Is this solution valid? I have tried it as instructed but it has no impact!?

 

Thoughts?

 

PS: Thanks for all of the advice on this forum!!!

 

Art

document.body.style.height = screen.height;
Retired
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Tips, Quirks and Solutions

Have you tried:

 

document.body.style.height = screen.height + 'px';
Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
New Developer
Posts: 12
Registered: ‎10-06-2009
My Device: Not Specified

Re: Tips, Quirks and Solutions

Hi Tim,

 

That did it, specifying the 'px' value fixed the problem. Thank you!!!

 

You are a great help, we appreciate all of the effort that you are putting into getting us up and running.

 

Art

Highlighted
New Developer
Posts: 5
Registered: ‎01-16-2011
My Device: Not Specified

Re: Tips, Quirks and Solutions

Installation of Blackberry WebWorks SDK for Playbook requires installing the Adobe Air 2.5 SDK.

 

If you get an error message "Incorrect Air Version Installed" in the Webworks installer make sure the path you chose for the Air SDK does not have a space in it.

 

Just spent about 20 mins working this one out Smiley Sad

Developer
Posts: 71
Registered: ‎02-04-2011
My Device: Blackberry Bold & Pearl
My Carrier: Telecom NZ

Re: Tips, Quirks and Solutions

I've been using Chrome as a test platform for some aspects of my application, but Chrome seems to be very buggy, for instance I couldn't get webDB to work within my app, could get data in and out in no time outside of my app but no matter what I did within my application I could not get it to work, I've spent abuot a week on this, and ended up abandoning it and going down the road of a pretty convoluted key system for the key value store, as well as json files that index relavent keys for quick lookup, highly ineficient and not scalable at all. I eventually got mad at this and decided to comment my javascript framework (about 600 lines of code) one method at a time until I found the culprit.

 

The culprit it turns out was an alert  in the Window onload event, it was there just to tell me that the javascript has loaded OK and has no errors, removing the alert has fixed all DB problems.  

 

Therefore my advice is that in lew of proper tools for debugging your app don't treat Chrome as gospel, its just as failable as anything else. 

New Contributor
Posts: 3
Registered: ‎03-03-2011
My Device: Not Specified

Re: Tips, Quirks and Solutions

The +'px' should be added to this solution.  It doesn't seem to work without.

 

ie)

 

 

document.body.style.height = screen.height+'px';

 

Developer
Posts: 213
Registered: ‎10-02-2010
My Device: Z10 and Z30
My Carrier: Play and Plus

Re: Tips, Quirks and Solutions

Area: WebWorks

Found on: OS 5 and OS6

 

Problem:

How to use Database on BlackBerry smartphone or Playbook

 

Solution:

On my github account you can find simple example how to use it: https://github.com/ddluk/WebWorks-Database

 

Information to Note:

Database usage requires the device to either have a built-in eMMC card (common on Bold and Storm devices) or an inserted SD card. 

 

Playbook have a built-in memory.

Developer
Posts: 16
Registered: ‎10-18-2010
My Device: Not Specified

Re: Tips, Quirks and Solutions

A number of the posts and replies here have been helpful and fascinating. I want to thank everyone for taking their time to share what they've found and for being willing to give their input when we need assistance.

 

Thank you

Tsudeily

Contributor
Posts: 11
Registered: ‎03-29-2011
My Device: Bold 9700
My Carrier: Developer

Re: Tips, Quirks and Solutions

This method doesn't works in new SDK version.

For playbook i using 

<rim:orientation mode="landscape"/>

 But I can't find any workaround for smartphones.