jQuery ui-datepicker-trigger 错误:'J.inline'为 null 或不是对象(发生在鼠标悬停时)
我有两个使用相同部分的视图。该部分包含 jquery 日历。当单击日历图标并在一个视图中选择日期时,一切正常,但当在另一个视图中单击并选择日期时,我在 Visual Studio 中收到此错误:
Microsoft JScript runtime error: 'J.inline' is null or not an object
并且它跳转到 jquery-ui-1.8.13 中的此代码.custom.min.js
if(!d.datepicker._isDisabledDatepicker(J.inline?a.parent()[0]:J.input[0]))
以下是代码:
<p class="field date">
<label for="StartDate-1">Exam Date</label>
@DateEditor(new string[] { "StartDate", Model.ExamStart.ToString(),"UpdateDates();" })
@Html.HiddenFor(m => m.ExamStart)
@Html.ValidationMessageFor(m => m.ExamStart)
</p>
更新:当日历打开并且我将鼠标悬停在日历中显示的特定日期时,该错误仅发生在一个视图中。有什么想法吗?
I have two views that are using the same partial. This partial contains the jquery calendar. When the calendar icon is clicked and a date is selected in one view everything works fine but when clicked in another view and a date is selected I get this error in Visual Studio:
Microsoft JScript runtime error: 'J.inline' is null or not an object
and it jumps to this code in jquery-ui-1.8.13.custom.min.js
if(!d.datepicker._isDisabledDatepicker(J.inline?a.parent()[0]:J.input[0]))
Here is the code:
<p class="field date">
<label for="StartDate-1">Exam Date</label>
@DateEditor(new string[] { "StartDate", Model.ExamStart.ToString(),"UpdateDates();" })
@Html.HiddenFor(m => m.ExamStart)
@Html.ValidationMessageFor(m => m.ExamStart)
</p>
UPDATE: The error only occurs in one view when the calendar opens and I MOUSEOVER the specific days displayed in the calendar. Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
一些如果 1.816 ui.datepicker.css 主题导致此错误(我使用 REDMOND 得到它)
我更改了 ui-lightness jquery.ui.datepicker.css ,问题就消失了。
some if the 1.816 ui.datepicker.css themes are causing this error (i got it using REDMOND)
I changed ui-lightness jquery.ui.datepicker.css and the problem went away.