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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Web and WebWorks Development

Reply
BlackBerry Development Advisor
tneil
Posts: 3,693
Registered: ‎10-16-2008
My Carrier: Rogers

Re: Tips, Quirks and Solutions

The fact that the devices are running older operating systems will likely be the reason

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Please use plain text.
New Contributor
m7zhao
Posts: 5
Registered: ‎09-13-2010
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).

Please use plain text.
New Developer
asosa
Posts: 12
Registered: ‎10-06-2009

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;
Please use plain text.
BlackBerry Development Advisor
tneil
Posts: 3,693
Registered: ‎10-16-2008
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
Please use plain text.
New Developer
asosa
Posts: 12
Registered: ‎10-06-2009

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

Please use plain text.
New Developer
ashleydb
Posts: 5
Registered: ‎01-16-2011

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 :smileysad:

Please use plain text.
Developer
ryanmc
Posts: 71
Registered: ‎02-04-2011
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. 

Please use plain text.
New Contributor
mlepird
Posts: 3
Registered: ‎03-03-2011

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';

 

Please use plain text.
Developer
ddluk
Posts: 208
Registered: ‎10-02-2010
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.



2sky.pl - Software development is our passion.
Please use plain text.
Developer
Tsudeily
Posts: 16
Registered: ‎10-18-2010

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

Please use plain text.