Mobilejquery在Internet Explorer上不显示任何内容

问题描述:

我是mobilejquery的新手,创建了一个试用页面,它在除Internet Explorer 8.0/7.0之外的所有浏览器中均能正常工作,两者均显示空白页面.并将错误抛出为:

I am new to mobilejquery, i made a trial page, it works fine in all browsers apart from Internet explorer 8.0/7.0, both are showing the empty page. and it throw the error as :

Webpage error details:

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C)
Timestamp: Wed, 8 Feb 2012 09:59:25 UTC


Message: Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus.
Line: 3175
Char: 6
Code: 0
URI: http://code.jquery.com/jquery.js

这也是我的代码:

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>Blufin-Mobile application</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css">
    <script src="http://code.jquery.com/jquery.js"></script>
    <script src="js/blufin-app.js"></script> 
    <script src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js"></script>
</head>

<body>
    <div data-role="page">
        <div data-role="header">
            <h1>Welcome to Blufin Game</h1>
        </div>
        <div data-role="content">
            <p>This is the sample work of the Blufin Game!</p>
        </div>
        <div data-role="footer" data-position="fixed">
            <h4>Page footer</h4>
        </div>
    </div>
</body>
</html>

我的代码有什么问题吗?或在jquerymobile中,如果有的话,可以解决此问题..

is there any issue on my code? or in jquerymobile, if so any workaround to fix it..?

如果我删除了jquerymobile.js,则没有发现错误.

In case i removed jquerymobile.js, no error found.

我遇到了同样的问题.事实证明,jquery mobile和jquery的最新版本的组合会导致ie问题.只需链接到jquery版本1.6.4,问题就应该消失了,至少对我有用.

I had the same problem. It turns out that the combination of jquery mobile and the latest version of jquery causes issues with ie. Just link to jquery version 1.6.4 and the problem should go away, at least it worked for me.