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 220.127.116.110.
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 03:32 AM
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 .