问题描述
我只是想改变我的jQuery UI的引用母版页。我得到上面只在Internet Explorer中的错误。
我没有得到Firefox和Chrome的错误。
这是jQuery的代码,其中在引发错误:
返回a.browser.msie(b = Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),C = Math.max(document.documentElement.offsetWidth,document.body.offsetWidth),b<?C?一(窗口).WIDTH()+PX:b +PX):A(文档).WIDTH()+PX},调整大小:函数(){VAR b = A([]);安装。每个(a.ui.dialog.overlay.instances,函数()
我有以下的母版页
<头ID =头像1=服务器>
<链接rel =样式表的href =http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/redmond/jquery-ui.css
型=文/ CSS/>
< ASP:的ContentPlaceHolder ID =ExtraHeadContent=服务器>
< / ASP:的ContentPlaceHolder>
< /头>
<表ID =窗体2=服务器>
< ASP:的ScriptManager ID =ScriptManagerService=服务器>
<脚本>
< ASP:的ScriptReference PATH =http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.jsScriptMode =自动/>
< ASP:的ScriptReference PATH =http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.jsScriptMode =自动/>
< /脚本>
< / ASP:ScriptManager的>
< /表及GT;
< /身体GT;
请让我知道在做我需要什么?
我试图把jQuery的引用头部分,但我的aspx文件中的jQuery代码似乎给出一个错误说没有定义或没有定义提示对象对话框中对象。我觉得jQuery库,当我尝试把引用头部分是没有得到加载。
的一直的(并使用1.10),因此,任何试图处理它作为一个对象(即,访问其 MSIE
属性)是注定要失败的。如果你仍然想使用它,包括插件使用jQuery
I just tried changing my jquery ui references to the master page . I get the error above only on Internet explorer.I dont get the error on Firefox and Chrome .
This is the jquery code where the error is thrown :
return a.browser.msie?(b=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),c=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth),b<c?a(window).width()+"px":b+"px"):a(document).width()+"px"},resize:function(){var b=a([]);a.each(a.ui.dialog.overlay.instances,function()
I have the master page below :
<head id="Head1" runat="server">
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/redmond/jquery-ui.css"
type="text/css" />
<asp:ContentPlaceHolder ID="ExtraHeadContent" runat="server">
</asp:ContentPlaceHolder>
</head>
<form id="form2" runat="server">
<asp:ScriptManager ID="ScriptManagerService" runat="server">
<Scripts>
<asp:ScriptReference Path="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js" ScriptMode="Auto" />
<asp:ScriptReference Path="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js" ScriptMode="Auto" />
</Scripts>
</asp:ScriptManager>
</form>
</body>
Please let me know what I need to be doing ?I tried putting the jquery references in the head section , but the jquery code within my aspx file seems to give an error saying 'dialog' object not defined or 'tooltip' object not defined. I think the jquery library is not getting loaded when I try to put the references in the head section.
jQuery.browser has been removed in jQuery 1.9 (and you use 1.10), so any attempt to process it as an object (i.e., access its msie
property) is destined to fail. If you still want to use it, include jQuery migrate plugin along with jQuery
这篇关于JavaScript的运行时错误:无法获取的未定义或为空引用属性“MSIE”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!