2011-08-18 131 views
1

我正在使用jquery simpleDialog。我正在看着Fidler,它告訴我它正在成功加載js文件。我在我的視圖中正確引用了文件,並且我撥打了正確的電話。我在我的智慧結局,我不知道該怎麼做。在過去的幾個小時裏,我一直在查看這些代碼,但我一直沒有把它變爲現實。Jquery SimpleDialog not loading

<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個小時。我需要睡眠。

回答

0

你缺少一個右

}); 

$(document).ready(function() {塊。

+0

你的權利,它不在那裏的例子。但它在我的代碼中。我正在切換jquery庫,以查看我是否不能以其他方式執行此操作。 – SoftwareSavant