[ECSide] ecside在struts2环境下与datepicker冲突
ziyi
2007-06-13
下面代码,会令IE没有相应,在FireBug控制台下发现加载dojo.js的时候有冲突存在,要求停止脚本运行,当然停止以后就可以继续运行,只是那个Datepicker没有显示
<%@ include file="/pages/common/taglibs.jsp" %> <html> <head> <%@ include file="/pages/common/meta.jsp"%> <title>LOT2 Information</title> <%@ include file="/pages/common/ecfiles.jsp"%> <link href="<c:url value="/styles/app/page.css"/>" type="text/css" rel=stylesheet> <link href="<c:url value="/styles/app/messages.css"/>" type=text/css rel=stylesheet> <script src="<c:url value="/scripts/app/page.js"/>" type="text/javascript"></script> <s:head/> <script type="text/javascript"> function validate() { var valid = true; return valid; } function init(){ var ecside=new ECSide(); ecside.init(); } </script> </head> <body onload="init()"> <div id="title"> <table class="headerTitle"><tr> <td style="width: 350px;"><div id="pageTitle">LOT2 Information</div></td> <td><%@ include file="/pages/common/messages.jsp" %></td> </tr></table> </div> <!-- Search Criterias START --> <div id="search"> <s:form action="lot2Info.action" onsubmit="return validate();"> <table class="searchBar"> <tr> <td class="labelImg"><img style="cursor: pointer; cursor: hand;" id="hideImg" onclick="hideSearch('<c:out value='${ctxPath}'/>')" src="<c:url value="/images/icon/16x16/up.png"/>" border="0" /></td> <td class="labelSearch">Search Criterias</td> <td style="text-align: right;"><div id="searchButt"> <input class="buttSearch" type="submit" value="<fmt:message key='butt.search'/>" name="search"> <input class="buttSearch" type="reset" value="<fmt:message key='butt.reset'/>" name="reset"> </div></td> </tr> </table> <div id="criteria"> <table class="criteria"> <tr> <td>From Date</td> <td><s:datetimepicker name="from" label="from" displayFormat="yyyy-MM-dd"/></td> <td>To Date</td> <td><s:textfield name="to" size="10" /></td> <td>Judge</td> <td> <s:select name="judgeCnt" headerKey="" headerValue="Cnt" list="#{'1':'1', '2':'2', '3':'3', '4':'4', '5':'5'}" /> </td> <td>Judge(Pv)</td> <td> <s:select name="judge" headerKey="" headerValue="All" list="#{'G':'G', 'I':'I', 'V':'V', 'O':'O', 'LR':'LR', 'PR':'PR', 'SC':'SC', 'HL':'HL', 'PB':'PB', 'OV':'OV', 'AA':'AA', 'A':'A', 'B':'B', 'D':'D', 'E':'E', 'N':'N'}" /> (<s:select name="pvJudge" headerKey="" headerValue="All" list="#{'G':'G', 'I':'I', 'V':'V', 'O':'O', 'LR':'LR', 'PR':'PR', 'SC':'SC', 'HL':'HL', 'PB':'PB', 'OV':'OV', 'AA':'AA', 'A':'A', 'B':'B', 'D':'D', 'E':'E', 'N':'N'}" />) </td> </tr> </table> </div> </s:form> </div> <!-- Search Criterias END --> <!-- Search List Start --> <div id="result"><table class="result"><tr><td> <ec:table items="viewData" var="lot2Info" action="${ctxPath}/ceda/lot2Info.action" csvFileName="LOT2Info.csv" minColWidth="25" resizeColWidth="true" maxRowsExported="60000" pageSizeList="100,500,1000,all" sortable="false" useAjax="false" doPreload="false" nearPageNum="0" width="100%" listWidth="100%" listHeight="100%"> <ec:row> <ec:column width="35" property="_0" title="Sn" sortable="false" value="${GLOBALROWCOUNT}" /> <ec:column property="pfcd"/> <ec:column property="orderId"/> </ec:row> </ec:table> </td></tr></table></div> <!-- Search List End --> </body> </html> 不过从页面拿掉以下代码后能够正常显示dojo datepicker,不知道是何原因?求解,谢谢 <ec:table items="viewData" var="lot2Info" action="${ctxPath}/ceda/lot2Info.action" csvFileName="LOT2Info.csv" minColWidth="25" resizeColWidth="true" maxRowsExported="60000" pageSizeList="100,500,1000,all" sortable="false" useAjax="false" doPreload="false" nearPageNum="0" width="100%" listWidth="100%" listHeight="100%"> <ec:row> <ec:column width="35" property="_0" title="Sn" sortable="false" value="${GLOBALROWCOUNT}" /> <ec:column property="pfcd"/> <ec:column property="orderId"/> </ec:row> </ec:table> |