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

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.

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

Bizarre file path issue with images and CSS on OS5

I'm struggling with a very odd bug on an OS5 emulator.

I have a page. The file structure is such:

images (folder)
- icon.png (image inside of the images folder)

In the head, I have a standard STYLE block with this:

#icon {background-image: url('images/icon.png')}

And in the body, I have a div with an ID of icon and, sure enough, that image is in the background.

Works fine.

Then, on that same page, in the body I and an IMG tag:

<img src="images/icon.png'" />

If I do that, the image breaks...both the inline image AND the background image previously spec'd in the STYLE block.

If I remove that image, the CSS image shows up again.

If I change the path in the inline image to this:

<img src="../../images/icon.png'" />

Then it works fine again.

Any clue? This is extremely weird.
New Contributor
Posts: 8
Registered: ‎03-29-2011
My Device: Not Specified

Re: Bizarre file path issue with images and CSS on OS5

So...I'm still not entirely sure what's going on but I think this is what's happening:


If, via CSS I apply a transparent PNG as a background to an element then any inline transparent gifs on the page end up with a broken image icon.


Does this make any sense at all? Are there known issues with transparent PNGs on OS5?


My OS6 simulators do not have these issues.