当前位置: 代码迷 >> Java Web开发 >> 日历控件 js脚本的有关问题
  详细解决方案

日历控件 js脚本的有关问题

热度:5019   发布时间:2013-02-25 21:17:29.0
日历控件 js脚本的问题
<script src="js/[color=#0000FF]wpCalendar.js"></script>[/color]
  </head>
  <body>
  <form action="" id="form"></form>
  <div align="left"><h1>修改信息</h1> </div>
  <table align="center">
  <tr >
  <td>编号</td><td ><input type="text" readonly="readonly" name="id" value ="${requestScope.news.id }" > </td>
  </tr>
  <tr>
  <td>标题</td><td><input type="text" name="title" value="${requestScope.news.title }"> </td>
  </tr>
  <tr>
  <td>内容</td><td><textarea rows="" cols="17" name="title">${requestScope.news.content }</textarea> </td>
  </tr>
  <tr>
  <td>发表时间</td><td><input type=text id=text1 onfocus="showCalendar(this)" readonly></td>
</tr>



各位大大,为什么我无法调用到wpCalendar.js,总是提示缺少对象,到底缺少什么对象啊

------解决方案--------------------------------------------------------
<script src="js/wpCalendar.js"></script>
路径错了,改成如下:
<script src="${sessionScope.contextPath}/js/wpCalendar.js"></script>

------解决方案--------------------------------------------------------
具体点,把js代码还有第几行出错的贴出来
------解决方案--------------------------------------------------------
肯能要将日历控件的编码保存方式与你的软件工具的不一致吧!
  相关解决方案