Jquery SimpleDialog 未加载

发布于 11-29 22:10 字数 1164 浏览 1 评论 0原文

我正在使用 Jquery simpleDialog。我正在观看 fidler,它告诉我它正在成功加载 js 文件。我在我看来正确地引用了这些文件,并且做出了正确的调用。我束手无策,不知道该怎么办。在过去的几个小时里我一直在查看这段代码,但我无法改变它。

    <asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">
    <link href="<%=ResolveClientUrl("~/Content/simpleDialog/jquery.simpledialog.0.1.css")%>" rel="stylesheet" type="text/css" />
    <script src="<%=ResolveClientUrl("~/Scripts/simpleDialog/jquery.simpledialog.0.1.js")%>" type="text/javascript"></script>
    <script src="<%=ResolveClientUrl("~/Scripts/simpleDialog/jquery.form.js")%>" type="text/javascript"></script>
    <script type="text/javascript">

    $(document).ready(function () {

        $('a.tempDlg1').simpleDialog({
            opacity: 0.3,
            duration: 200,
            width: 950,
            useTitleAttr: true,
            closeLabel: '<img src="../../Content/simpleDialog/CloseButton2.gif" border="1"/>',
            showCloseLabel: true
        });
    </script>

simpleDialog 窗口就是打不开。 UIDialog 工作得更好吗?我在这个对话框中确实有 datePicker 。这会影响它吗?我不知道,我已经连续工作了16个小时。我需要睡一会儿。

I am working with Jquery simpleDialog. I am watching fidler and it is telling me that it is loading the js files successfully. I reference the files correctly in my view and I make correct calls. I am at my wits end and I can't quite figure out what to do. I have been looking at this code for the last couple of hours and I haven't been able to budge it.

    <asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">
    <link href="<%=ResolveClientUrl("~/Content/simpleDialog/jquery.simpledialog.0.1.css")%>" rel="stylesheet" type="text/css" />
    <script src="<%=ResolveClientUrl("~/Scripts/simpleDialog/jquery.simpledialog.0.1.js")%>" type="text/javascript"></script>
    <script src="<%=ResolveClientUrl("~/Scripts/simpleDialog/jquery.form.js")%>" type="text/javascript"></script>
    <script type="text/javascript">

    $(document).ready(function () {

        $('a.tempDlg1').simpleDialog({
            opacity: 0.3,
            duration: 200,
            width: 950,
            useTitleAttr: true,
            closeLabel: '<img src="../../Content/simpleDialog/CloseButton2.gif" border="1"/>',
            showCloseLabel: true
        });
    </script>

The simpleDialog window just won't open. Does UIDialog work better? I do have datePicker inside of this dialog. Could that be affecting it? I don't know, I have been working for 16 hours straight. I need some sleep.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

痞味浪人2024-12-06 22:10:46

结束语。

});

您缺少$(document).ready(function() { 块的

You're missing a closing

});

for the $(document).ready(function() { block.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文