日历设置不起作用

时间:2013-09-26 22:23:43

标签: javascript calendar

Calendar.setup不起作用,日历控件不会在点击时填充。

  ===This is code in aspx file
    <style type="text/css" media="all">
@import "includes/ui.all.css";
@import  "includes/calendar-win2k-1.css";
@import  "includes/style.css";
   </style>
===
<script type="text/javascript" src="includes/jquery-ui-1.8.custom.min.js"></script>
<script type="text/javascript" src="includes/calendar.js"></script>
<script type="text/javascript" src="includes/lang/calendar-en.js"></script>
<script type="text/javascript" src="includes/calendar_stripped.js"></script>
<script type="text/javascript" src="includes/calendar-setup.js"></script>
<script type="text/javascript" src="includes/calendar_stripped.js"></script>


 <script type="text/javascript">
    Calendar.setup({
        inputField: "<%=search_start_date.ClientID%>",     // id of the input field
        ifFormat: "%m/%d/%Y",      // format of the input field
        button: "calendar_start_date",  // trigger for the calendar (button ID)
        align: "bR",           // alignment (defaults to "Bl")
        singleClick: true
    });
 </script>

      <asp:TextBox Runat="server" ID="search_start_date" CssClass="TextBox"                 Columns="15" MaxLength="10" />

     <img src="Images/SmallCalendar.gif" border="0"     onmouseover="this.style.cursor='pointer'" onmouseout="this.style.cursor='default'"  id="calendar_start_date" alt="Pick Date" />

所以问题是当我点击图像按钮时它不会弹出。我想我已经包含了所有必需的脚本和样式表。有人知道我在这里遗失了什么吗?

0 个答案:

没有答案