开发者

Why this HTML code is not working in Blackberry?

开发者 https://www.devze.com 2023-04-10 18:22 出处:网络
I am developing application which will run on mobiles like blackberry,iphone and android using phonegap framework. My simple code is :

I am developing application which will run on mobiles like blackberry,iphone and android using phonegap framework. My simple code is :

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8" />
        <title>Phonegap app with jQuery Mobile</title>
 开发者_如何学Python       <script src="phonegap.js">
        </script>
    </head>
    <body>
        <img src='http://l.yimg.com/a/i/ww/met/yahoo_logo_in_061509.png' />
    </body>
</html>

but the issue is, Image is not displaying in blackberry mobile

It works fine in Android,iPhone mobile but not in Blackberry, it just shows not found image sign...

First application freeze for 2-3 minutes then display following screen.

Why this HTML code is not working in Blackberry?

Please help me.

Thanks.


I think you might need to wrap this image in a table. It needs to have a container. Something like this:

<body>
    <table><tr><td><img src='http://l.yimg.com/a/i/ww/met/yahoo_logo_in_061509.png' /></td></tr>
</body>


add permission in comfig file


It's working for me, try to include this meta on the header, after the charset:

  <meta name="viewport"  content="width=device-width, height=device-height, 
initial-scale=1.0, 'maximum-scale=1.0, 'minimum-scale=1.0, user-scalable=no" 
/> 

I think this issue can be related with your other one here: Why this jquery code is not working on blackberry?

Please start a webserver in the www folder of your project and use the Chrome Plugin called Ripple to test the BB app, if the image works con the Ripple plugin and not in the simulator maybe is the conection to internet of the simulator the problem.

Good Luck!

0

精彩评论

暂无评论...
验证码 换一张
取 消