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

New Contributor
Posts: 5
Registered: ‎01-12-2011
My Device: Javenlin 8900

conflict: SVG image & x-blackberry-on event


I have 2 pieces of code:

    <div class="chart" style="display:block; padding-top: 5px; padding-bottom: 5px;">
                            <object id="chart_image" data='test.svg' style="z-index: 10000;" width="380" height="260" type="image/svg+xml"></object></div></div>

    <div id="price_bar"
                 x-blackberry-focusable="true" x-blackberry-onLeft="navigatePriceLeft()"
                x-blackberry-onLeft="navigatePriceLeft()" ></div>

when press left, I got exception:

> ReferenceError: "navigatePriceLeft" is not defined.
    Running  at line    1: navigatePriceLeft().

above ReferenceError is because of object with svg. before, I use PNG image instead of SVG document, the navigation work normally.

so how do I use svg image with blackberry navigation.

thanks for your time

Trusted Contributor
Posts: 152
Registered: ‎02-12-2011
My Device: Not Specified

Re: conflict: SVG image & x-blackberry-on event

Were you able to figure this out?