开发者

JQuery Mobile not working in Eclipse Blackberry project

<!DOCTYPE html> 
<html> 
    <head> 
    <title>Page Title</title> 
    <link rel="stylesheet" href="jquery.mobile-1.0b1.min.css" />
    <script type="text/javascript" src="jquery-1.6.1.min.js"></script>
    <script type="text/javascript" src="jquery.mobile-1.0b1.min.js"></script>
</head> 
<body> 

<div data-role="page">

    <div data-role="header">
        <h1>Page Title</h1>
    </div><!-- /header -->

    <div data-role="content">   
        <p>Page content goes here.</p>      
    </div><!-- /content -->

    <div data-role="footer">
        <h4>Page Footer</h4>
    </div><!-- /footer -->
</div><!-- /page -->

</body>
</html>

This code works as expected in IE. However when I drop the exact code into my Blac开发者_StackOverflow中文版kberry project in Eclipse the JQuery does not seem to pick up. The css and js files are local int he root directory of the eclipse project. I've searched the internet, but have found nothing related to this. Any ideas?


Did your LogCat turned on? I'm getting same problem with you (but in Android apps). LogCat says : SyntaxError: parse error at file:///android_asset/www/js/libs/jquery.mobile-1.4.1.js:3195.

I just comment line 3195 on that file, and the jQuery Mobile styles shows up

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜