Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
06-02-2012 07:38 PM
First and foremost, here's the HTML:
<img class="HC_centered" id="login_logo" src="images/dir/tst.png" alt="" x-blackberry-focusable="false" />
Notice the src tag. It's two directories deep - images/dir. Now, this code does *not* work with my playbook running the new beta 188.8.131.520.
when i change the src tag to either
However, images loaded via JS - specifically bbUI.js - work properly even when 2 direcotries deep.
example of working:
<div id="app_row_1" data-bb-type="item" data-bb-img="images/component/icon1.png" data-bb-title="Input Controls" onclick="app_click(this.id);" data-bb-accent-text="Accent Text" data-bb-image-placeholder="images/component/placeh
older.png">I have accent</div>
this works, although, when i set the data-bb-img attribute to an image that i know is not there, the data-bb-image-placeholder does not work.
So, *sometimes* images that are 2 levels deep work with the playbook, sometimes they dont.
I DO NOT HAVE THIS ISSUE on bb 6 or 7 devices.
Thoughts / how to i file this as an official bug?
06-03-2012 02:31 PM
I have enabeled web inspector, and here;s the funny thing....
if you look at the resources tab, it lists the image just as it's supposed to.
here's the URL for the image that won't load
Now, that matches the folder structure perfectly.... so there is *something* preventing images that are two direcories deep from loading. It may be BBUI related, as the html page that uses this image *is* loaded up through bbUI.html.
Here's the error that shows up in the console:
GET local:///images/icon/image.png Couldn't read a file:// file
but why does this happen *only* on the playbook? i don't have this problem with BB devices...
06-04-2012 05:49 AM
03-16-2013 12:37 PM
Atleast your <img> tag is working somehow. Can you help me, I have looked everywhere but couldnt find a solution.
In FLEX, I have a "lock.png" situated under the "src" folder. No complicated structure there.
Label.htmlText = "<img src="lock.png" />
I am unable to produce any results. Any hints what is wrong ?
(Tested on a simulator as well as on Playbook, using multiple combinations of "src/lock.png", "/lock.png", etc etc)
03-16-2013 01:47 PM
Sorry i have not been focusing on Playbook application development as of late.
I would use web inspector to idenitfy *why* your image requests are failing.
You may not have the proper URI prefix (local:/ or file://).
Good luck! In thr future, though, for issues that are not directly related to the parrent post, please create a new thread .